@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateVolumePermission extends Object implements Serializable, Cloneable
Describes the user or group to be added or removed from the list of create volume permissions for a volume.
Constructor and Description |
---|
CreateVolumePermission() |
Modifier and Type | Method and Description |
---|---|
CreateVolumePermission |
clone() |
boolean |
equals(Object obj) |
String |
getGroup()
The group to be added or removed.
|
String |
getUserId()
The AWS account ID to be added or removed.
|
int |
hashCode() |
void |
setGroup(PermissionGroup group)
The group to be added or removed.
|
void |
setGroup(String group)
The group to be added or removed.
|
void |
setUserId(String userId)
The AWS account ID to be added or removed.
|
String |
toString()
Returns a string representation of this object.
|
CreateVolumePermission |
withGroup(PermissionGroup group)
The group to be added or removed.
|
CreateVolumePermission |
withGroup(String group)
The group to be added or removed.
|
CreateVolumePermission |
withUserId(String userId)
The AWS account ID to be added or removed.
|
public void setGroup(String group)
The group to be added or removed. The possible value is all
.
group
- The group to be added or removed. The possible value is all
.PermissionGroup
public String getGroup()
The group to be added or removed. The possible value is all
.
all
.PermissionGroup
public CreateVolumePermission withGroup(String group)
The group to be added or removed. The possible value is all
.
group
- The group to be added or removed. The possible value is all
.PermissionGroup
public void setGroup(PermissionGroup group)
The group to be added or removed. The possible value is all
.
group
- The group to be added or removed. The possible value is all
.PermissionGroup
public CreateVolumePermission withGroup(PermissionGroup group)
The group to be added or removed. The possible value is all
.
group
- The group to be added or removed. The possible value is all
.PermissionGroup
public void setUserId(String userId)
The AWS account ID to be added or removed.
userId
- The AWS account ID to be added or removed.public String getUserId()
The AWS account ID to be added or removed.
public CreateVolumePermission withUserId(String userId)
The AWS account ID to be added or removed.
userId
- The AWS account ID to be added or removed.public String toString()
toString
in class Object
Object.toString()
public CreateVolumePermission clone()