public class ResetSnapshotAttributeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ResetSnapshotAttributeRequest>
ResetSnapshotAttribute operation.
Resets permission settings for the specified snapshot.
For more information on modifying snapshot permissions, see Sharing Snapshots in the Amazon Elastic Compute Cloud User Guide .
NOOP| Constructor and Description |
|---|
ResetSnapshotAttributeRequest()
Default constructor for a new ResetSnapshotAttributeRequest object.
|
ResetSnapshotAttributeRequest(String snapshotId,
SnapshotAttributeName attribute)
Constructs a new ResetSnapshotAttributeRequest object.
|
ResetSnapshotAttributeRequest(String snapshotId,
String attribute)
Constructs a new ResetSnapshotAttributeRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
ResetSnapshotAttributeRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getAttribute()
The attribute to reset.
|
Request<ResetSnapshotAttributeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getSnapshotId()
The ID of the snapshot.
|
int |
hashCode() |
void |
setAttribute(SnapshotAttributeName attribute)
The attribute to reset.
|
void |
setAttribute(String attribute)
The attribute to reset.
|
void |
setSnapshotId(String snapshotId)
The ID of the snapshot.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ResetSnapshotAttributeRequest |
withAttribute(SnapshotAttributeName attribute)
The attribute to reset.
|
ResetSnapshotAttributeRequest |
withAttribute(String attribute)
The attribute to reset.
|
ResetSnapshotAttributeRequest |
withSnapshotId(String snapshotId)
The ID of the snapshot.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic ResetSnapshotAttributeRequest()
public ResetSnapshotAttributeRequest(String snapshotId, String attribute)
snapshotId - The ID of the snapshot.attribute - The attribute to reset. Currently, only the attribute
for permission to create volumes can be reset.public ResetSnapshotAttributeRequest(String snapshotId, SnapshotAttributeName attribute)
snapshotId - The ID of the snapshot.attribute - The attribute to reset. Currently, only the attribute
for permission to create volumes can be reset.public String getSnapshotId()
public void setSnapshotId(String snapshotId)
snapshotId - The ID of the snapshot.public ResetSnapshotAttributeRequest withSnapshotId(String snapshotId)
Returns a reference to this object so that method calls can be chained together.
snapshotId - The ID of the snapshot.public String getAttribute()
Constraints:
Allowed Values: productCodes, createVolumePermission
SnapshotAttributeNamepublic void setAttribute(String attribute)
Constraints:
Allowed Values: productCodes, createVolumePermission
attribute - The attribute to reset. Currently, only the attribute for permission
to create volumes can be reset.SnapshotAttributeNamepublic ResetSnapshotAttributeRequest withAttribute(String attribute)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: productCodes, createVolumePermission
attribute - The attribute to reset. Currently, only the attribute for permission
to create volumes can be reset.SnapshotAttributeNamepublic void setAttribute(SnapshotAttributeName attribute)
Constraints:
Allowed Values: productCodes, createVolumePermission
attribute - The attribute to reset. Currently, only the attribute for permission
to create volumes can be reset.SnapshotAttributeNamepublic ResetSnapshotAttributeRequest withAttribute(SnapshotAttributeName attribute)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: productCodes, createVolumePermission
attribute - The attribute to reset. Currently, only the attribute for permission
to create volumes can be reset.SnapshotAttributeNamepublic Request<ResetSnapshotAttributeRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<ResetSnapshotAttributeRequest>public String toString()
toString in class ObjectObject.toString()public ResetSnapshotAttributeRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.