public class CreateVolumePermissionModifications
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes modifications to the permissions for a volume.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<CreateVolumePermission> |
add
Adds a specific AWS account ID or group to a volume's list of create
volume permissions.
|
private SdkInternalList<CreateVolumePermission> |
remove
Removes a specific AWS account ID or group from a volume's list of create
volume permissions.
|
Constructor and Description |
---|
CreateVolumePermissionModifications() |
Modifier and Type | Method and Description |
---|---|
CreateVolumePermissionModifications |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<CreateVolumePermission> |
getAdd()
Adds a specific AWS account ID or group to a volume's list of create
volume permissions.
|
java.util.List<CreateVolumePermission> |
getRemove()
Removes a specific AWS account ID or group from a volume's list of create
volume permissions.
|
int |
hashCode() |
void |
setAdd(java.util.Collection<CreateVolumePermission> add)
Adds a specific AWS account ID or group to a volume's list of create
volume permissions.
|
void |
setRemove(java.util.Collection<CreateVolumePermission> remove)
Removes a specific AWS account ID or group from a volume's list of create
volume permissions.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateVolumePermissionModifications |
withAdd(java.util.Collection<CreateVolumePermission> add)
Adds a specific AWS account ID or group to a volume's list of create
volume permissions.
|
CreateVolumePermissionModifications |
withAdd(CreateVolumePermission... add)
Adds a specific AWS account ID or group to a volume's list of create
volume permissions.
|
CreateVolumePermissionModifications |
withRemove(java.util.Collection<CreateVolumePermission> remove)
Removes a specific AWS account ID or group from a volume's list of create
volume permissions.
|
CreateVolumePermissionModifications |
withRemove(CreateVolumePermission... remove)
Removes a specific AWS account ID or group from a volume's list of create
volume permissions.
|
private SdkInternalList<CreateVolumePermission> add
Adds a specific AWS account ID or group to a volume's list of create volume permissions.
private SdkInternalList<CreateVolumePermission> remove
Removes a specific AWS account ID or group from a volume's list of create volume permissions.
public java.util.List<CreateVolumePermission> getAdd()
Adds a specific AWS account ID or group to a volume's list of create volume permissions.
public void setAdd(java.util.Collection<CreateVolumePermission> add)
Adds a specific AWS account ID or group to a volume's list of create volume permissions.
add
- Adds a specific AWS account ID or group to a volume's list of
create volume permissions.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)
or
withAdd(java.util.Collection)
if you want to override the
existing values.
add
- Adds a specific AWS account ID or group to a volume's list of
create volume permissions.public CreateVolumePermissionModifications withAdd(java.util.Collection<CreateVolumePermission> add)
Adds a specific AWS account ID or group to a volume's list of create volume permissions.
add
- Adds a specific AWS account ID or group to a volume's list of
create volume permissions.public java.util.List<CreateVolumePermission> getRemove()
Removes a specific AWS account ID or group from a volume's list of create volume permissions.
public void setRemove(java.util.Collection<CreateVolumePermission> remove)
Removes a specific AWS account ID or group from a volume's list of create volume permissions.
remove
- Removes a specific AWS account ID or group from a volume's list of
create volume permissions.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)
or
withRemove(java.util.Collection)
if you want to override the
existing values.
remove
- Removes a specific AWS account ID or group from a volume's list of
create volume permissions.public CreateVolumePermissionModifications withRemove(java.util.Collection<CreateVolumePermission> remove)
Removes a specific AWS account ID or group from a volume's list of create volume permissions.
remove
- Removes a specific AWS account ID or group from a volume's list of
create volume permissions.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateVolumePermissionModifications clone()
clone
in class java.lang.Object