Class CreateVolumePermissionModifications
- java.lang.Object
-
- com.amazonaws.services.ec2.model.CreateVolumePermissionModifications
-
- All Implemented Interfaces:
Serializable,Cloneable
public class CreateVolumePermissionModifications extends Object implements Serializable, Cloneable
Describes modifications to the permissions for a volume.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CreateVolumePermissionModifications()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateVolumePermissionModificationsclone()booleanequals(Object obj)List<CreateVolumePermission>getAdd()Adds a specific AWS account ID or group to a volume's list of create volume permissions.List<CreateVolumePermission>getRemove()Removes a specific AWS account ID or group from a volume's list of create volume permissions.inthashCode()voidsetAdd(Collection<CreateVolumePermission> add)Adds a specific AWS account ID or group to a volume's list of create volume permissions.voidsetRemove(Collection<CreateVolumePermission> remove)Removes a specific AWS account ID or group from a volume's list of create volume permissions.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateVolumePermissionModificationswithAdd(CreateVolumePermission... add)Adds a specific AWS account ID or group to a volume's list of create volume permissions.CreateVolumePermissionModificationswithAdd(Collection<CreateVolumePermission> add)Adds a specific AWS account ID or group to a volume's list of create volume permissions.CreateVolumePermissionModificationswithRemove(CreateVolumePermission... remove)Removes a specific AWS account ID or group from a volume's list of create volume permissions.CreateVolumePermissionModificationswithRemove(Collection<CreateVolumePermission> remove)Removes a specific AWS account ID or group from a volume's list of create volume permissions.
-
-
-
Method Detail
-
getAdd
public List<CreateVolumePermission> getAdd()
Adds a specific AWS account ID or group to a volume's list of create volume permissions.
- Returns:
- Adds a specific AWS account ID or group to a volume's list of create volume permissions.
-
setAdd
public void setAdd(Collection<CreateVolumePermission> add)
Adds a specific AWS account ID or group to a volume's list of create volume permissions.
- Parameters:
add- Adds a specific AWS account ID or group to a volume's list of create volume permissions.
-
withAdd
public CreateVolumePermissionModifications withAdd(CreateVolumePermission... add)
Adds a specific AWS account ID or group to a volume's list of create volume permissions.
NOTE: This method appends the values to the existing list (if any). Use
setAdd(java.util.Collection)orwithAdd(java.util.Collection)if you want to override the existing values.- Parameters:
add- Adds a specific AWS account ID or group to a volume's list of create volume permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAdd
public CreateVolumePermissionModifications withAdd(Collection<CreateVolumePermission> add)
Adds a specific AWS account ID or group to a volume's list of create volume permissions.
- Parameters:
add- Adds a specific AWS account ID or group to a volume's list of create volume permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getRemove
public List<CreateVolumePermission> getRemove()
Removes a specific AWS account ID or group from a volume's list of create volume permissions.
- Returns:
- Removes a specific AWS account ID or group from a volume's list of create volume permissions.
-
setRemove
public void setRemove(Collection<CreateVolumePermission> remove)
Removes a specific AWS account ID or group from a volume's list of create volume permissions.
- Parameters:
remove- Removes a specific AWS account ID or group from a volume's list of create volume permissions.
-
withRemove
public CreateVolumePermissionModifications withRemove(CreateVolumePermission... remove)
Removes a specific AWS account ID or group from a volume's list of create volume permissions.
NOTE: This method appends the values to the existing list (if any). Use
setRemove(java.util.Collection)orwithRemove(java.util.Collection)if you want to override the existing values.- Parameters:
remove- Removes a specific AWS account ID or group from a volume's list of create volume permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRemove
public CreateVolumePermissionModifications withRemove(Collection<CreateVolumePermission> remove)
Removes a specific AWS account ID or group from a volume's list of create volume permissions.
- Parameters:
remove- Removes a specific AWS account ID or group from a volume's list of create volume permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateVolumePermissionModifications clone()
-
-