Class ModifySnapshotAttributeRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<ModifySnapshotAttributeRequest>
,Serializable
,Cloneable
Contains the parameters for ModifySnapshotAttribute.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionDefault 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. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The snapshot attribute to modify.A JSON representation of the snapshot attribute modification.This method is intended for internal use only.The group to modify for the snapshot.The type of operation to perform to the attribute.The ID of the snapshot.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.toString()
Returns a string representation of this object; useful for testing and debugging.withAttribute
(SnapshotAttributeName attribute) The snapshot attribute to modify.withAttribute
(String attribute) The snapshot attribute to modify.withCreateVolumePermission
(CreateVolumePermissionModifications createVolumePermission) A JSON representation of the snapshot attribute modification.withGroupNames
(String... groupNames) The group to modify for the snapshot.withGroupNames
(Collection<String> groupNames) The group to modify for the snapshot.withOperationType
(OperationType operationType) The type of operation to perform to the attribute.withOperationType
(String operationType) The type of operation to perform to the attribute.withSnapshotId
(String snapshotId) The ID of the snapshot.withUserIds
(String... userIds) The account ID to modify for the snapshot.withUserIds
(Collection<String> userIds) The account ID to modify for the snapshot.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
ModifySnapshotAttributeRequest
public ModifySnapshotAttributeRequest()Default constructor for ModifySnapshotAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
ModifySnapshotAttributeRequest
Constructs a new ModifySnapshotAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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.
-
ModifySnapshotAttributeRequest
public ModifySnapshotAttributeRequest(String snapshotId, SnapshotAttributeName attribute, OperationType operationType) Constructs a new ModifySnapshotAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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.
-
-
Method Details
-
setSnapshotId
The ID of the snapshot.
- Parameters:
snapshotId
- The ID of the snapshot.
-
getSnapshotId
The ID of the snapshot.
- Returns:
- The ID of the snapshot.
-
withSnapshotId
The ID of the snapshot.
- Parameters:
snapshotId
- The ID of the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAttribute
The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
- Parameters:
attribute
- The snapshot attribute to modify.Only volume creation permissions may be modified at the customer level.
- See Also:
-
getAttribute
The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
- Returns:
- The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
- See Also:
-
withAttribute
The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
- Parameters:
attribute
- The snapshot attribute to modify.Only volume creation permissions may be modified at the customer level.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setAttribute
The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
- Parameters:
attribute
- The snapshot attribute to modify.Only volume creation permissions may be modified at the customer level.
- See Also:
-
withAttribute
The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
- Parameters:
attribute
- The snapshot attribute to modify.Only volume creation permissions may be modified at the customer level.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setOperationType
The type of operation to perform to the attribute.
- Parameters:
operationType
- The type of operation to perform to the attribute.- See Also:
-
getOperationType
The type of operation to perform to the attribute.
- Returns:
- The type of operation to perform to the attribute.
- See Also:
-
withOperationType
The type of operation to perform to the attribute.
- Parameters:
operationType
- The type of operation to perform to the attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setOperationType
The type of operation to perform to the attribute.
- Parameters:
operationType
- The type of operation to perform to the attribute.- See Also:
-
withOperationType
The type of operation to perform to the attribute.
- Parameters:
operationType
- The type of operation to perform to the attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
getUserIds
The account ID to modify for the snapshot.
- Returns:
- The account ID to modify for the snapshot.
-
setUserIds
The account ID to modify for the snapshot.
- Parameters:
userIds
- The account ID to modify for the snapshot.
-
withUserIds
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)
orwithUserIds(java.util.Collection)
if you want to override the existing values.- Parameters:
userIds
- The account ID to modify for the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withUserIds
The account ID to modify for the snapshot.
- Parameters:
userIds
- The account ID to modify for the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getGroupNames
The group to modify for the snapshot.
- Returns:
- The group to modify for the snapshot.
-
setGroupNames
The group to modify for the snapshot.
- Parameters:
groupNames
- The group to modify for the snapshot.
-
withGroupNames
The group to modify for the snapshot.
NOTE: This method appends the values to the existing list (if any). Use
setGroupNames(java.util.Collection)
orwithGroupNames(java.util.Collection)
if you want to override the existing values.- Parameters:
groupNames
- The group to modify for the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withGroupNames
The group to modify for the snapshot.
- Parameters:
groupNames
- The group to modify for the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreateVolumePermission
A JSON representation of the snapshot attribute modification.
- Parameters:
createVolumePermission
- A JSON representation of the snapshot attribute modification.
-
getCreateVolumePermission
A JSON representation of the snapshot attribute modification.
- Returns:
- A JSON representation of the snapshot attribute modification.
-
withCreateVolumePermission
public ModifySnapshotAttributeRequest withCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission) A JSON representation of the snapshot attribute modification.
- Parameters:
createVolumePermission
- A JSON representation of the snapshot attribute modification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<ModifySnapshotAttributeRequest>
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-