|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.ResetSnapshotAttributeRequest
public class ResetSnapshotAttributeRequest
Container for the parameters to the 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 .
AmazonEC2.resetSnapshotAttribute(ResetSnapshotAttributeRequest),
Serialized Form| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.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. |
java.lang.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(java.lang.String attribute)
The attribute to reset (currently only the attribute for permission to create volumes can be 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 (currently only the attribute for permission to create volumes can be reset). |
ResetSnapshotAttributeRequest |
withAttribute(java.lang.String attribute)
The attribute to reset (currently only the attribute for permission to create volumes can be reset). |
ResetSnapshotAttributeRequest |
withSnapshotId(java.lang.String snapshotId)
The ID of the snapshot. |
| Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
|---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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).| Method Detail |
|---|
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
SnapshotAttributeNamepublic 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).SnapshotAttributeNamepublic 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).
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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||