com.amazonaws.services.ec2.model
Class ResetImageAttributeRequest

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

public class ResetImageAttributeRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<ResetImageAttributeRequest>

Container for the parameters to the ResetImageAttribute operation.

Resets an attribute of an AMI to its default value.

See Also:
AmazonEC2.resetImageAttribute(ResetImageAttributeRequest), Serialized Form

Constructor Summary
ResetImageAttributeRequest()
          Default constructor for a new ResetImageAttributeRequest object.
ResetImageAttributeRequest(java.lang.String imageId, ResetImageAttributeName attribute)
          Constructs a new ResetImageAttributeRequest object.
ResetImageAttributeRequest(java.lang.String imageId, java.lang.String attribute)
          Constructs a new ResetImageAttributeRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAttribute()
          The attribute to reset (currently you can only reset the launch permission attribute).
 Request<ResetImageAttributeRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getImageId()
          The ID of the AMI.
 int hashCode()
           
 void setAttribute(ResetImageAttributeName attribute)
          The attribute to reset (currently you can only reset the launch permission attribute).
 void setAttribute(java.lang.String attribute)
          The attribute to reset (currently you can only reset the launch permission attribute).
 void setImageId(java.lang.String imageId)
          The ID of the AMI.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ResetImageAttributeRequest withAttribute(ResetImageAttributeName attribute)
          The attribute to reset (currently you can only reset the launch permission attribute).
 ResetImageAttributeRequest withAttribute(java.lang.String attribute)
          The attribute to reset (currently you can only reset the launch permission attribute).
 ResetImageAttributeRequest withImageId(java.lang.String imageId)
          The ID of the AMI.
 
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

ResetImageAttributeRequest

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


ResetImageAttributeRequest

public ResetImageAttributeRequest(java.lang.String imageId,
                                  java.lang.String attribute)
Constructs a new ResetImageAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
imageId - The ID of the AMI.
attribute - The attribute to reset (currently you can only reset the launch permission attribute).

ResetImageAttributeRequest

public ResetImageAttributeRequest(java.lang.String imageId,
                                  ResetImageAttributeName attribute)
Constructs a new ResetImageAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
imageId - The ID of the AMI.
attribute - The attribute to reset (currently you can only reset the launch permission attribute).
Method Detail

getImageId

public java.lang.String getImageId()
The ID of the AMI.

Returns:
The ID of the AMI.

setImageId

public void setImageId(java.lang.String imageId)
The ID of the AMI.

Parameters:
imageId - The ID of the AMI.

withImageId

public ResetImageAttributeRequest withImageId(java.lang.String imageId)
The ID of the AMI.

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

Parameters:
imageId - The ID of the AMI.
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 you can only reset the launch permission attribute).

Constraints:
Allowed Values: launchPermission

Returns:
The attribute to reset (currently you can only reset the launch permission attribute).
See Also:
ResetImageAttributeName

setAttribute

public void setAttribute(java.lang.String attribute)
The attribute to reset (currently you can only reset the launch permission attribute).

Constraints:
Allowed Values: launchPermission

Parameters:
attribute - The attribute to reset (currently you can only reset the launch permission attribute).
See Also:
ResetImageAttributeName

withAttribute

public ResetImageAttributeRequest withAttribute(java.lang.String attribute)
The attribute to reset (currently you can only reset the launch permission attribute).

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

Constraints:
Allowed Values: launchPermission

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

setAttribute

public void setAttribute(ResetImageAttributeName attribute)
The attribute to reset (currently you can only reset the launch permission attribute).

Constraints:
Allowed Values: launchPermission

Parameters:
attribute - The attribute to reset (currently you can only reset the launch permission attribute).
See Also:
ResetImageAttributeName

withAttribute

public ResetImageAttributeRequest withAttribute(ResetImageAttributeName attribute)
The attribute to reset (currently you can only reset the launch permission attribute).

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

Constraints:
Allowed Values: launchPermission

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

getDryRunRequest

public Request<ResetImageAttributeRequest> 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<ResetImageAttributeRequest>

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.