public class CreateVolumePermission
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the user or group to be added or removed from the permissions for a volume.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
group
The specific group that is to be added or removed from a volume's list of
create volume permissions.
|
private java.lang.String |
userId
The specific AWS account ID that is to be added or removed from a
volume's list of create volume permissions.
|
Constructor and Description |
---|
CreateVolumePermission() |
Modifier and Type | Method and Description |
---|---|
CreateVolumePermission |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getGroup()
The specific group that is to be added or removed from a volume's list of
create volume permissions.
|
java.lang.String |
getUserId()
The specific AWS account ID that is to be added or removed from a
volume's list of create volume permissions.
|
int |
hashCode() |
void |
setGroup(PermissionGroup group)
The specific group that is to be added or removed from a volume's list of
create volume permissions.
|
void |
setGroup(java.lang.String group)
The specific group that is to be added or removed from a volume's list of
create volume permissions.
|
void |
setUserId(java.lang.String userId)
The specific AWS account ID that is to be added or removed 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.
|
CreateVolumePermission |
withGroup(PermissionGroup group)
The specific group that is to be added or removed from a volume's list of
create volume permissions.
|
CreateVolumePermission |
withGroup(java.lang.String group)
The specific group that is to be added or removed from a volume's list of
create volume permissions.
|
CreateVolumePermission |
withUserId(java.lang.String userId)
The specific AWS account ID that is to be added or removed from a
volume's list of create volume permissions.
|
private java.lang.String userId
The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.
private java.lang.String group
The specific group that is to be added or removed from a volume's list of create volume permissions.
public void setUserId(java.lang.String userId)
The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.
userId
- The specific AWS account ID that is to be added or removed from a
volume's list of create volume permissions.public java.lang.String getUserId()
The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.
public CreateVolumePermission withUserId(java.lang.String userId)
The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.
userId
- The specific AWS account ID that is to be added or removed from a
volume's list of create volume permissions.public void setGroup(java.lang.String group)
The specific group that is to be added or removed from a volume's list of create volume permissions.
group
- The specific group that is to be added or removed from a volume's
list of create volume permissions.PermissionGroup
public java.lang.String getGroup()
The specific group that is to be added or removed from a volume's list of create volume permissions.
PermissionGroup
public CreateVolumePermission withGroup(java.lang.String group)
The specific group that is to be added or removed from a volume's list of create volume permissions.
group
- The specific group that is to be added or removed from a volume's
list of create volume permissions.PermissionGroup
public void setGroup(PermissionGroup group)
The specific group that is to be added or removed from a volume's list of create volume permissions.
group
- The specific group that is to be added or removed from a volume's
list of create volume permissions.PermissionGroup
public CreateVolumePermission withGroup(PermissionGroup group)
The specific group that is to be added or removed from a volume's list of create volume permissions.
group
- The specific group that is to be added or removed from a volume's
list of create volume permissions.PermissionGroup
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 CreateVolumePermission clone()
clone
in class java.lang.Object