public class CreateVolumePermission
extends java.lang.Object
implements java.io.Serializable
Describes the user or group to be added or removed from the permissions for a volume.
Constructor and Description |
---|
CreateVolumePermission() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String getUserId()
public void setUserId(java.lang.String userId)
userId
- 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)
Returns a reference to this object so that method calls can be chained together.
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 getGroup()
Constraints:
Allowed Values: all
PermissionGroup
public void setGroup(java.lang.String group)
Constraints:
Allowed Values: all
group
- 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)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: all
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)
Constraints:
Allowed Values: all
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)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: all
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 int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.