@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModifySnapshotAttributeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifySnapshotAttributeRequest>
Contains the parameters for ModifySnapshotAttribute.
NOOP
Constructor and Description |
---|
ModifySnapshotAttributeRequest()
Default constructor for ModifySnapshotAttributeRequest object.
|
ModifySnapshotAttributeRequest(String snapshotId,
SnapshotAttributeName attribute,
OperationType operationType)
Constructs a new ModifySnapshotAttributeRequest object.
|
ModifySnapshotAttributeRequest(String snapshotId,
String attribute,
String operationType)
Constructs a new ModifySnapshotAttributeRequest object.
|
Modifier and Type | Method and Description |
---|---|
ModifySnapshotAttributeRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAttribute()
The snapshot attribute to modify.
|
CreateVolumePermissionModifications |
getCreateVolumePermission()
A JSON representation of the snapshot attribute modification.
|
Request<ModifySnapshotAttributeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<String> |
getGroupNames()
The group to modify for the snapshot.
|
String |
getOperationType()
The type of operation to perform to the attribute.
|
String |
getSnapshotId()
The ID of the snapshot.
|
List<String> |
getUserIds()
The account ID to modify for the snapshot.
|
int |
hashCode() |
void |
setAttribute(SnapshotAttributeName attribute)
The snapshot attribute to modify.
|
void |
setAttribute(String attribute)
The snapshot attribute to modify.
|
void |
setCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)
A JSON representation of the snapshot attribute modification.
|
void |
setGroupNames(Collection<String> groupNames)
The group to modify for the snapshot.
|
void |
setOperationType(OperationType operationType)
The type of operation to perform to the attribute.
|
void |
setOperationType(String operationType)
The type of operation to perform to the attribute.
|
void |
setSnapshotId(String snapshotId)
The ID of the snapshot.
|
void |
setUserIds(Collection<String> userIds)
The account ID to modify for the snapshot.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ModifySnapshotAttributeRequest |
withAttribute(SnapshotAttributeName attribute)
The snapshot attribute to modify.
|
ModifySnapshotAttributeRequest |
withAttribute(String attribute)
The snapshot attribute to modify.
|
ModifySnapshotAttributeRequest |
withCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)
A JSON representation of the snapshot attribute modification.
|
ModifySnapshotAttributeRequest |
withGroupNames(Collection<String> groupNames)
The group to modify for the snapshot.
|
ModifySnapshotAttributeRequest |
withGroupNames(String... groupNames)
The group to modify for the snapshot.
|
ModifySnapshotAttributeRequest |
withOperationType(OperationType operationType)
The type of operation to perform to the attribute.
|
ModifySnapshotAttributeRequest |
withOperationType(String operationType)
The type of operation to perform to the attribute.
|
ModifySnapshotAttributeRequest |
withSnapshotId(String snapshotId)
The ID of the snapshot.
|
ModifySnapshotAttributeRequest |
withUserIds(Collection<String> userIds)
The account ID to modify for the snapshot.
|
ModifySnapshotAttributeRequest |
withUserIds(String... userIds)
The account ID to modify for the snapshot.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public ModifySnapshotAttributeRequest()
public ModifySnapshotAttributeRequest(String snapshotId, String attribute, String operationType)
snapshotId
- The ID of the snapshot.attribute
- The snapshot attribute to modify. Only volume creation permissions may be modified at the customer level.
operationType
- The type of operation to perform to the attribute.public ModifySnapshotAttributeRequest(String snapshotId, SnapshotAttributeName attribute, OperationType operationType)
snapshotId
- The ID of the snapshot.attribute
- The snapshot attribute to modify. Only volume creation permissions may be modified at the customer level.
operationType
- The type of operation to perform to the attribute.public void setAttribute(String attribute)
The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
attribute
- The snapshot attribute to modify. Only volume creation permissions may be modified at the customer level.
SnapshotAttributeName
public String getAttribute()
The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
Only volume creation permissions may be modified at the customer level.
SnapshotAttributeName
public ModifySnapshotAttributeRequest withAttribute(String attribute)
The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
attribute
- The snapshot attribute to modify. Only volume creation permissions may be modified at the customer level.
SnapshotAttributeName
public void setAttribute(SnapshotAttributeName attribute)
The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
attribute
- The snapshot attribute to modify. Only volume creation permissions may be modified at the customer level.
SnapshotAttributeName
public ModifySnapshotAttributeRequest withAttribute(SnapshotAttributeName attribute)
The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
attribute
- The snapshot attribute to modify. Only volume creation permissions may be modified at the customer level.
SnapshotAttributeName
public void setCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)
A JSON representation of the snapshot attribute modification.
createVolumePermission
- A JSON representation of the snapshot attribute modification.public CreateVolumePermissionModifications getCreateVolumePermission()
A JSON representation of the snapshot attribute modification.
public ModifySnapshotAttributeRequest withCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)
A JSON representation of the snapshot attribute modification.
createVolumePermission
- A JSON representation of the snapshot attribute modification.public List<String> getGroupNames()
The group to modify for the snapshot.
public void setGroupNames(Collection<String> groupNames)
The group to modify for the snapshot.
groupNames
- The group to modify for the snapshot.public ModifySnapshotAttributeRequest withGroupNames(String... groupNames)
The group to modify for the snapshot.
NOTE: This method appends the values to the existing list (if any). Use
setGroupNames(java.util.Collection)
or withGroupNames(java.util.Collection)
if you want to
override the existing values.
groupNames
- The group to modify for the snapshot.public ModifySnapshotAttributeRequest withGroupNames(Collection<String> groupNames)
The group to modify for the snapshot.
groupNames
- The group to modify for the snapshot.public void setOperationType(String operationType)
The type of operation to perform to the attribute.
operationType
- The type of operation to perform to the attribute.OperationType
public String getOperationType()
The type of operation to perform to the attribute.
OperationType
public ModifySnapshotAttributeRequest withOperationType(String operationType)
The type of operation to perform to the attribute.
operationType
- The type of operation to perform to the attribute.OperationType
public void setOperationType(OperationType operationType)
The type of operation to perform to the attribute.
operationType
- The type of operation to perform to the attribute.OperationType
public ModifySnapshotAttributeRequest withOperationType(OperationType operationType)
The type of operation to perform to the attribute.
operationType
- The type of operation to perform to the attribute.OperationType
public void setSnapshotId(String snapshotId)
The ID of the snapshot.
snapshotId
- The ID of the snapshot.public String getSnapshotId()
The ID of the snapshot.
public ModifySnapshotAttributeRequest withSnapshotId(String snapshotId)
The ID of the snapshot.
snapshotId
- The ID of the snapshot.public List<String> getUserIds()
The account ID to modify for the snapshot.
public void setUserIds(Collection<String> userIds)
The account ID to modify for the snapshot.
userIds
- The account ID to modify for the snapshot.public ModifySnapshotAttributeRequest withUserIds(String... userIds)
The account ID to modify for the snapshot.
NOTE: This method appends the values to the existing list (if any). Use
setUserIds(java.util.Collection)
or withUserIds(java.util.Collection)
if you want to override
the existing values.
userIds
- The account ID to modify for the snapshot.public ModifySnapshotAttributeRequest withUserIds(Collection<String> userIds)
The account ID to modify for the snapshot.
userIds
- The account ID to modify for the snapshot.public Request<ModifySnapshotAttributeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ModifySnapshotAttributeRequest>
public String toString()
toString
in class Object
Object.toString()
public ModifySnapshotAttributeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.