public class ResetSnapshotAttributeRequest extends AmazonWebServiceRequest implements java.io.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 .
Constructor and Description |
---|
ResetSnapshotAttributeRequest()
Default constructor for a new ResetSnapshotAttributeRequest object.
|
ResetSnapshotAttributeRequest(java.lang.String snapshotId,
SnapshotAttributeName attribute)
Constructs a new ResetSnapshotAttributeRequest object.
|
ResetSnapshotAttributeRequest(java.lang.String snapshotId,
java.lang.String attribute)
Constructs a new ResetSnapshotAttributeRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttribute()
The attribute to reset.
|
Request<ResetSnapshotAttributeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getSnapshotId()
The ID of the snapshot.
|
int |
hashCode() |
void |
setAttribute(SnapshotAttributeName attribute)
The attribute to reset.
|
void |
setAttribute(java.lang.String attribute)
The attribute to reset.
|
void |
setSnapshotId(java.lang.String snapshotId)
The ID of the snapshot.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ResetSnapshotAttributeRequest |
withAttribute(SnapshotAttributeName attribute)
The attribute to reset.
|
ResetSnapshotAttributeRequest |
withAttribute(java.lang.String attribute)
The attribute to reset.
|
ResetSnapshotAttributeRequest |
withSnapshotId(java.lang.String snapshotId)
The ID of the snapshot.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public ResetSnapshotAttributeRequest()
public ResetSnapshotAttributeRequest(java.lang.String snapshotId, java.lang.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(java.lang.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 java.lang.String getSnapshotId()
public void setSnapshotId(java.lang.String snapshotId)
snapshotId
- The ID of the snapshot.public ResetSnapshotAttributeRequest withSnapshotId(java.lang.String snapshotId)
Returns a reference to this object so that method calls can be chained together.
snapshotId
- The ID of the snapshot.public java.lang.String getAttribute()
Constraints:
Allowed Values: productCodes, createVolumePermission
SnapshotAttributeName
public void setAttribute(java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.