com.amazonaws.services.ec2.model
Class ResetSnapshotAttributeRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.ResetSnapshotAttributeRequest
All Implemented Interfaces:
DryRunSupportedRequest<ResetSnapshotAttributeRequest>, java.io.Serializable

public class ResetSnapshotAttributeRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<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 .

See Also:
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

ResetSnapshotAttributeRequest

public ResetSnapshotAttributeRequest()
Default constructor for a new ResetSnapshotAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


ResetSnapshotAttributeRequest

public ResetSnapshotAttributeRequest(java.lang.String snapshotId,
                                     java.lang.String attribute)
Constructs a new ResetSnapshotAttributeRequest 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 attribute to reset (currently only the attribute for permission to create volumes can be reset).

ResetSnapshotAttributeRequest

public ResetSnapshotAttributeRequest(java.lang.String snapshotId,
                                     SnapshotAttributeName attribute)
Constructs a new ResetSnapshotAttributeRequest 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 attribute to reset (currently only the attribute for permission to create volumes can be reset).
Method Detail

getSnapshotId

public java.lang.String getSnapshotId()
The ID of the snapshot.

Returns:
The ID of the snapshot.

setSnapshotId

public void setSnapshotId(java.lang.String snapshotId)
The ID of the snapshot.

Parameters:
snapshotId - The ID of the snapshot.

withSnapshotId

public ResetSnapshotAttributeRequest withSnapshotId(java.lang.String snapshotId)
The ID of the snapshot.

Returns a reference to this object so that method calls can be chained together.

Parameters:
snapshotId - The ID of the snapshot.
Returns:
A reference to this updated object so that method calls can be chained together.

getAttribute

public java.lang.String getAttribute()
The attribute to reset (currently only the attribute for permission to create volumes can be reset).

Constraints:
Allowed Values: productCodes, createVolumePermission

Returns:
The attribute to reset (currently only the attribute for permission to create volumes can be reset).
See Also:
SnapshotAttributeName

setAttribute

public void setAttribute(java.lang.String attribute)
The attribute to reset (currently only the attribute for permission to create volumes can be reset).

Constraints:
Allowed Values: productCodes, createVolumePermission

Parameters:
attribute - The attribute to reset (currently only the attribute for permission to create volumes can be reset).
See Also:
SnapshotAttributeName

withAttribute

public ResetSnapshotAttributeRequest withAttribute(java.lang.String attribute)
The attribute to reset (currently only the attribute for permission to create volumes can be reset).

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: productCodes, createVolumePermission

Parameters:
attribute - The attribute to reset (currently only the attribute for permission to create volumes can be reset).
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
SnapshotAttributeName

setAttribute

public void setAttribute(SnapshotAttributeName attribute)
The attribute to reset (currently only the attribute for permission to create volumes can be reset).

Constraints:
Allowed Values: productCodes, createVolumePermission

Parameters:
attribute - The attribute to reset (currently only the attribute for permission to create volumes can be reset).
See Also:
SnapshotAttributeName

withAttribute

public ResetSnapshotAttributeRequest withAttribute(SnapshotAttributeName attribute)
The attribute to reset (currently only the attribute for permission to create volumes can be reset).

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: productCodes, createVolumePermission

Parameters:
attribute - The attribute to reset (currently only the attribute for permission to create volumes can be reset).
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
SnapshotAttributeName

getDryRunRequest

public Request<ResetSnapshotAttributeRequest> 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 interface DryRunSupportedRequest<ResetSnapshotAttributeRequest>

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.