public class ResetSnapshotAttributeRequest extends AmazonWebServiceRequest implements Serializable, 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 |
---|---|
boolean |
equals(Object obj) |
String |
getAttribute()
The attribute to reset (currently only the attribute for permission to
create volumes can be 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 (currently only the attribute for permission to
create volumes can be reset).
|
void |
setAttribute(String attribute)
The attribute to reset (currently only the attribute for permission to
create volumes can be 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 (currently only the attribute for permission to
create volumes can be reset).
|
ResetSnapshotAttributeRequest |
withAttribute(String attribute)
The attribute to reset (currently only the attribute for permission to
create volumes can be reset).
|
ResetSnapshotAttributeRequest |
withSnapshotId(String snapshotId)
The ID of the snapshot.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public 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
SnapshotAttributeName
public 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).SnapshotAttributeName
public 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).SnapshotAttributeName
public 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).SnapshotAttributeName
public 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).SnapshotAttributeName
public Request<ResetSnapshotAttributeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ResetSnapshotAttributeRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.