public class CreateVolumePermission extends Object implements Serializable
Describes a permission allowing either a user or group to create a new EBS volume from a snapshot.
Constructor and Description |
---|
CreateVolumePermission() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getGroup()
The group that is allowed to create volumes from the snapshot
(currently supports "all").
|
String |
getUserId()
The user ID of the user that can create volumes from the snapshot.
|
int |
hashCode() |
void |
setGroup(PermissionGroup group)
The group that is allowed to create volumes from the snapshot
(currently supports "all").
|
void |
setGroup(String group)
The group that is allowed to create volumes from the snapshot
(currently supports "all").
|
void |
setUserId(String userId)
The user ID of the user that can create volumes from the snapshot.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateVolumePermission |
withGroup(PermissionGroup group)
The group that is allowed to create volumes from the snapshot
(currently supports "all").
|
CreateVolumePermission |
withGroup(String group)
The group that is allowed to create volumes from the snapshot
(currently supports "all").
|
CreateVolumePermission |
withUserId(String userId)
The user ID of the user that can create volumes from the snapshot.
|
public String getUserId()
public void setUserId(String userId)
userId
- The user ID of the user that can create volumes from the snapshot.public CreateVolumePermission withUserId(String userId)
Returns a reference to this object so that method calls can be chained together.
userId
- The user ID of the user that can create volumes from the snapshot.public String getGroup()
Constraints:
Allowed Values: all
PermissionGroup
public void setGroup(String group)
Constraints:
Allowed Values: all
group
- The group that is allowed to create volumes from the snapshot
(currently supports "all").PermissionGroup
public CreateVolumePermission withGroup(String group)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: all
group
- The group that is allowed to create volumes from the snapshot
(currently supports "all").PermissionGroup
public void setGroup(PermissionGroup group)
Constraints:
Allowed Values: all
group
- The group that is allowed to create volumes from the snapshot
(currently supports "all").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 group that is allowed to create volumes from the snapshot
(currently supports "all").PermissionGroup
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.