Class CreateVolumePermission
- java.lang.Object
-
- com.amazonaws.services.ec2.model.CreateVolumePermission
-
- All Implemented Interfaces:
Serializable,Cloneable
public class CreateVolumePermission extends Object implements Serializable, Cloneable
Describes the user or group to be added or removed from the permissions for a volume.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CreateVolumePermission()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateVolumePermissionclone()booleanequals(Object obj)StringgetGroup()The specific group that is to be added or removed from a volume's list of create volume permissions.StringgetUserId()The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.inthashCode()voidsetGroup(PermissionGroup group)The specific group that is to be added or removed from a volume's list of create volume permissions.voidsetGroup(String group)The specific group that is to be added or removed from a volume's list of create volume permissions.voidsetUserId(String userId)The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateVolumePermissionwithGroup(PermissionGroup group)The specific group that is to be added or removed from a volume's list of create volume permissions.CreateVolumePermissionwithGroup(String group)The specific group that is to be added or removed from a volume's list of create volume permissions.CreateVolumePermissionwithUserId(String userId)The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.
-
-
-
Method Detail
-
setUserId
public void setUserId(String userId)
The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.
- Parameters:
userId- The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.
-
getUserId
public String getUserId()
The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.
- Returns:
- The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.
-
withUserId
public CreateVolumePermission withUserId(String userId)
The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.
- Parameters:
userId- The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setGroup
public void setGroup(String group)
The specific group that is to be added or removed from a volume's list of create volume permissions.
- Parameters:
group- The specific group that is to be added or removed from a volume's list of create volume permissions.- See Also:
PermissionGroup
-
getGroup
public String getGroup()
The specific group that is to be added or removed from a volume's list of create volume permissions.
- Returns:
- The specific group that is to be added or removed from a volume's list of create volume permissions.
- See Also:
PermissionGroup
-
withGroup
public CreateVolumePermission withGroup(String group)
The specific group that is to be added or removed from a volume's list of create volume permissions.
- Parameters:
group- The specific group that is to be added or removed from a volume's list of create volume permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PermissionGroup
-
setGroup
public void setGroup(PermissionGroup group)
The specific group that is to be added or removed from a volume's list of create volume permissions.
- Parameters:
group- The specific group that is to be added or removed from a volume's list of create volume permissions.- See Also:
PermissionGroup
-
withGroup
public CreateVolumePermission withGroup(PermissionGroup group)
The specific group that is to be added or removed from a volume's list of create volume permissions.
- Parameters:
group- The specific group that is to be added or removed from a volume's list of create volume permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PermissionGroup
-
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 CreateVolumePermission clone()
-
-