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 CreateVolumePermission
clone()
boolean
equals(Object obj)
String
getGroup()
The specific group that is to be added or removed from a volume's list of create volume permissions.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(String group)
The specific group that is to be added or removed from a volume's list of create volume permissions.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.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(String group)
The specific group that is to be added or removed from a volume's list of create volume permissions.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.
-
-
-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateVolumePermission clone()
-
-