@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateVolumePermissionModifications extends Object implements Serializable, Cloneable
Describes modifications to the list of create volume permissions for a volume.
| Constructor and Description | 
|---|
| CreateVolumePermissionModifications() | 
| Modifier and Type | Method and Description | 
|---|---|
| CreateVolumePermissionModifications | clone() | 
| boolean | equals(Object obj) | 
| List<CreateVolumePermission> | getAdd()
 Adds the specified Amazon Web Services account ID or group to the list. | 
| List<CreateVolumePermission> | getRemove()
 Removes the specified Amazon Web Services account ID or group from the list. | 
| int | hashCode() | 
| void | setAdd(Collection<CreateVolumePermission> add)
 Adds the specified Amazon Web Services account ID or group to the list. | 
| void | setRemove(Collection<CreateVolumePermission> remove)
 Removes the specified Amazon Web Services account ID or group from the list. | 
| String | toString()Returns a string representation of this object. | 
| CreateVolumePermissionModifications | withAdd(Collection<CreateVolumePermission> add)
 Adds the specified Amazon Web Services account ID or group to the list. | 
| CreateVolumePermissionModifications | withAdd(CreateVolumePermission... add)
 Adds the specified Amazon Web Services account ID or group to the list. | 
| CreateVolumePermissionModifications | withRemove(Collection<CreateVolumePermission> remove)
 Removes the specified Amazon Web Services account ID or group from the list. | 
| CreateVolumePermissionModifications | withRemove(CreateVolumePermission... remove)
 Removes the specified Amazon Web Services account ID or group from the list. | 
public List<CreateVolumePermission> getAdd()
Adds the specified Amazon Web Services account ID or group to the list.
public void setAdd(Collection<CreateVolumePermission> add)
Adds the specified Amazon Web Services account ID or group to the list.
add - Adds the specified Amazon Web Services account ID or group to the list.public CreateVolumePermissionModifications withAdd(CreateVolumePermission... add)
Adds the specified Amazon Web Services account ID or group to the list.
 NOTE: This method appends the values to the existing list (if any). Use
 setAdd(java.util.Collection) or withAdd(java.util.Collection) if you want to override the
 existing values.
 
add - Adds the specified Amazon Web Services account ID or group to the list.public CreateVolumePermissionModifications withAdd(Collection<CreateVolumePermission> add)
Adds the specified Amazon Web Services account ID or group to the list.
add - Adds the specified Amazon Web Services account ID or group to the list.public List<CreateVolumePermission> getRemove()
Removes the specified Amazon Web Services account ID or group from the list.
public void setRemove(Collection<CreateVolumePermission> remove)
Removes the specified Amazon Web Services account ID or group from the list.
remove - Removes the specified Amazon Web Services account ID or group from the list.public CreateVolumePermissionModifications withRemove(CreateVolumePermission... remove)
Removes the specified Amazon Web Services account ID or group from the list.
 NOTE: This method appends the values to the existing list (if any). Use
 setRemove(java.util.Collection) or withRemove(java.util.Collection) if you want to override the
 existing values.
 
remove - Removes the specified Amazon Web Services account ID or group from the list.public CreateVolumePermissionModifications withRemove(Collection<CreateVolumePermission> remove)
Removes the specified Amazon Web Services account ID or group from the list.
remove - Removes the specified Amazon Web Services account ID or group from the list.public String toString()
toString in class ObjectObject.toString()public CreateVolumePermissionModifications clone()