|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.ModifySnapshotAttributeRequest
public class ModifySnapshotAttributeRequest
Container for the parameters to the ModifySnapshotAttribute operation
.
Adds or remove permission settings for the specified snapshot.
AmazonEC2.modifySnapshotAttribute(ModifySnapshotAttributeRequest)
Constructor Summary | |
---|---|
ModifySnapshotAttributeRequest()
Default constructor for a new ModifySnapshotAttributeRequest object. |
|
ModifySnapshotAttributeRequest(String snapshotId,
SnapshotAttributeName attribute,
String operationType)
Constructs a new ModifySnapshotAttributeRequest object. |
|
ModifySnapshotAttributeRequest(String snapshotId,
String attribute,
String operationType)
Constructs a new ModifySnapshotAttributeRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAttribute()
The name of the attribute being modified. |
CreateVolumePermissionModifications |
getCreateVolumePermission()
Returns the value of the CreateVolumePermission property for this object. |
List<String> |
getGroupNames()
The AWS group names to add to or remove from the list of groups that have permission to create EBS volumes from the specified snapshot. |
String |
getOperationType()
The operation to perform on the attribute. |
String |
getSnapshotId()
The ID of the EBS snapshot whose attributes are being modified. |
List<String> |
getUserIds()
The AWS user IDs to add to or remove from the list of users that have permission to create EBS volumes from the specified snapshot. |
int |
hashCode()
|
void |
setAttribute(SnapshotAttributeName attribute)
The name of the attribute being modified. |
void |
setAttribute(String attribute)
The name of the attribute being modified. |
void |
setCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)
Sets the value of the CreateVolumePermission property for this object. |
void |
setGroupNames(Collection<String> groupNames)
The AWS group names to add to or remove from the list of groups that have permission to create EBS volumes from the specified snapshot. |
void |
setOperationType(String operationType)
The operation to perform on the attribute. |
void |
setSnapshotId(String snapshotId)
The ID of the EBS snapshot whose attributes are being modified. |
void |
setUserIds(Collection<String> userIds)
The AWS user IDs to add to or remove from the list of users that have permission to create EBS volumes from the specified snapshot. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
ModifySnapshotAttributeRequest |
withAttribute(SnapshotAttributeName attribute)
The name of the attribute being modified. |
ModifySnapshotAttributeRequest |
withAttribute(String attribute)
The name of the attribute being modified. |
ModifySnapshotAttributeRequest |
withCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)
Sets the value of the CreateVolumePermission property for this object. |
ModifySnapshotAttributeRequest |
withGroupNames(Collection<String> groupNames)
The AWS group names to add to or remove from the list of groups that have permission to create EBS volumes from the specified snapshot. |
ModifySnapshotAttributeRequest |
withGroupNames(String... groupNames)
The AWS group names to add to or remove from the list of groups that have permission to create EBS volumes from the specified snapshot. |
ModifySnapshotAttributeRequest |
withOperationType(String operationType)
The operation to perform on the attribute. |
ModifySnapshotAttributeRequest |
withSnapshotId(String snapshotId)
The ID of the EBS snapshot whose attributes are being modified. |
ModifySnapshotAttributeRequest |
withUserIds(Collection<String> userIds)
The AWS user IDs to add to or remove from the list of users that have permission to create EBS volumes from the specified snapshot. |
ModifySnapshotAttributeRequest |
withUserIds(String... userIds)
The AWS user IDs to add to or remove from the list of users that have permission to create EBS volumes from the specified snapshot. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ModifySnapshotAttributeRequest()
public ModifySnapshotAttributeRequest(String snapshotId, String attribute, String operationType)
snapshotId
- The ID of the EBS snapshot whose attributes are
being modified.attribute
- The name of the attribute being modified.
Available attribute names: createVolumePermission
operationType
- The operation to perform on the attribute.
Available operation names: add
, remove
public ModifySnapshotAttributeRequest(String snapshotId, SnapshotAttributeName attribute, String operationType)
snapshotId
- The ID of the EBS snapshot whose attributes are
being modified.attribute
- The name of the attribute being modified.
Available attribute names: createVolumePermission
operationType
- The operation to perform on the attribute.
Available operation names: add
, remove
Method Detail |
---|
public String getSnapshotId()
public void setSnapshotId(String snapshotId)
snapshotId
- The ID of the EBS snapshot whose attributes are being modified.public ModifySnapshotAttributeRequest withSnapshotId(String snapshotId)
Returns a reference to this object so that method calls can be chained together.
snapshotId
- The ID of the EBS snapshot whose attributes are being modified.
public String getAttribute()
Available attribute
names: createVolumePermission
Constraints:
Allowed Values: productCodes, createVolumePermission
Available attribute
names: createVolumePermission
SnapshotAttributeName
public void setAttribute(String attribute)
Available attribute
names: createVolumePermission
Constraints:
Allowed Values: productCodes, createVolumePermission
attribute
- The name of the attribute being modified. Available attribute
names: createVolumePermission
SnapshotAttributeName
public ModifySnapshotAttributeRequest withAttribute(String attribute)
Available attribute
names: createVolumePermission
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: productCodes, createVolumePermission
attribute
- The name of the attribute being modified. Available attribute
names: createVolumePermission
SnapshotAttributeName
public void setAttribute(SnapshotAttributeName attribute)
Available attribute
names: createVolumePermission
Constraints:
Allowed Values: productCodes, createVolumePermission
attribute
- The name of the attribute being modified. Available attribute
names: createVolumePermission
SnapshotAttributeName
public ModifySnapshotAttributeRequest withAttribute(SnapshotAttributeName attribute)
Available attribute
names: createVolumePermission
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: productCodes, createVolumePermission
attribute
- The name of the attribute being modified. Available attribute
names: createVolumePermission
SnapshotAttributeName
public String getOperationType()
Available operation
names: add
, remove
Available operation
names: add
, remove
public void setOperationType(String operationType)
Available operation
names: add
, remove
operationType
- The operation to perform on the attribute. Available operation
names: add
, remove
public ModifySnapshotAttributeRequest withOperationType(String operationType)
Available operation
names: add
, remove
Returns a reference to this object so that method calls can be chained together.
operationType
- The operation to perform on the attribute. Available operation
names: add
, remove
public List<String> getUserIds()
createVolumePermission
attribute is being modified.
createVolumePermission
attribute is being modified.
public void setUserIds(Collection<String> userIds)
createVolumePermission
attribute is being modified.
userIds
- The AWS user IDs to add to or remove from the list of users that have
permission to create EBS volumes from the specified snapshot.
Currently supports "all". createVolumePermission
attribute is being modified.
public ModifySnapshotAttributeRequest withUserIds(String... userIds)
createVolumePermission
attribute is being modified.
Returns a reference to this object so that method calls can be chained together.
userIds
- The AWS user IDs to add to or remove from the list of users that have
permission to create EBS volumes from the specified snapshot.
Currently supports "all". createVolumePermission
attribute is being modified.
public ModifySnapshotAttributeRequest withUserIds(Collection<String> userIds)
createVolumePermission
attribute is being modified.
Returns a reference to this object so that method calls can be chained together.
userIds
- The AWS user IDs to add to or remove from the list of users that have
permission to create EBS volumes from the specified snapshot.
Currently supports "all". createVolumePermission
attribute is being modified.
public List<String> getGroupNames()
createVolumePermission
attribute is being modified.
createVolumePermission
attribute is being modified.
public void setGroupNames(Collection<String> groupNames)
createVolumePermission
attribute is being modified.
groupNames
- The AWS group names to add to or remove from the list of groups that
have permission to create EBS volumes from the specified snapshot.
Currently supports "all". createVolumePermission
attribute is being modified.
public ModifySnapshotAttributeRequest withGroupNames(String... groupNames)
createVolumePermission
attribute is being modified.
Returns a reference to this object so that method calls can be chained together.
groupNames
- The AWS group names to add to or remove from the list of groups that
have permission to create EBS volumes from the specified snapshot.
Currently supports "all". createVolumePermission
attribute is being modified.
public ModifySnapshotAttributeRequest withGroupNames(Collection<String> groupNames)
createVolumePermission
attribute is being modified.
Returns a reference to this object so that method calls can be chained together.
groupNames
- The AWS group names to add to or remove from the list of groups that
have permission to create EBS volumes from the specified snapshot.
Currently supports "all". createVolumePermission
attribute is being modified.
public CreateVolumePermissionModifications getCreateVolumePermission()
public void setCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)
createVolumePermission
- The new value for the CreateVolumePermission property for this object.public ModifySnapshotAttributeRequest withCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)
Returns a reference to this object so that method calls can be chained together.
createVolumePermission
- The new value for the CreateVolumePermission property for this object.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |