public class ModifySnapshotAttributeRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<ModifySnapshotAttributeRequest>
ModifySnapshotAttribute operation.
Adds or remove permission settings for the specified snapshot.
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
Request<ModifySnapshotAttributeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic 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
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
SnapshotAttributeNamepublic 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
SnapshotAttributeNamepublic 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
SnapshotAttributeNamepublic 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
SnapshotAttributeNamepublic 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
SnapshotAttributeNamepublic 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 Request<ModifySnapshotAttributeRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<ModifySnapshotAttributeRequest>public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.