com.amazonaws.services.ec2.model
Class ResetInstanceAttributeRequest

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

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

Container for the parameters to the ResetInstanceAttribute operation.

Resets an attribute of an instance to its default value. To reset the kernel or RAM disk, the instance must be in a stopped state. To reset the SourceDestCheck , the instance can be either running or stopped.

The SourceDestCheck attribute controls whether source/destination checking is enabled. The default value is true , which means checking is enabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide .

See Also:
AmazonEC2.resetInstanceAttribute(ResetInstanceAttributeRequest), Serialized Form

Constructor Summary
ResetInstanceAttributeRequest()
          Default constructor for a new ResetInstanceAttributeRequest object.
ResetInstanceAttributeRequest(java.lang.String instanceId, InstanceAttributeName attribute)
          Constructs a new ResetInstanceAttributeRequest object.
ResetInstanceAttributeRequest(java.lang.String instanceId, java.lang.String attribute)
          Constructs a new ResetInstanceAttributeRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAttribute()
          The attribute to reset.
 Request<ResetInstanceAttributeRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getInstanceId()
          The ID of the instance.
 int hashCode()
           
 void setAttribute(InstanceAttributeName attribute)
          The attribute to reset.
 void setAttribute(java.lang.String attribute)
          The attribute to reset.
 void setInstanceId(java.lang.String instanceId)
          The ID of the instance.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ResetInstanceAttributeRequest withAttribute(InstanceAttributeName attribute)
          The attribute to reset.
 ResetInstanceAttributeRequest withAttribute(java.lang.String attribute)
          The attribute to reset.
 ResetInstanceAttributeRequest withInstanceId(java.lang.String instanceId)
          The ID of the instance.
 
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

ResetInstanceAttributeRequest

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


ResetInstanceAttributeRequest

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

Parameters:
instanceId - The ID of the instance.
attribute - The attribute to reset.

ResetInstanceAttributeRequest

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

Parameters:
instanceId - The ID of the instance.
attribute - The attribute to reset.
Method Detail

getInstanceId

public java.lang.String getInstanceId()
The ID of the instance.

Returns:
The ID of the instance.

setInstanceId

public void setInstanceId(java.lang.String instanceId)
The ID of the instance.

Parameters:
instanceId - The ID of the instance.

withInstanceId

public ResetInstanceAttributeRequest withInstanceId(java.lang.String instanceId)
The ID of the instance.

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

Parameters:
instanceId - The ID of the instance.
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.

Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport

Returns:
The attribute to reset.
See Also:
InstanceAttributeName

setAttribute

public void setAttribute(java.lang.String attribute)
The attribute to reset.

Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport

Parameters:
attribute - The attribute to reset.
See Also:
InstanceAttributeName

withAttribute

public ResetInstanceAttributeRequest withAttribute(java.lang.String attribute)
The attribute to reset.

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

Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport

Parameters:
attribute - The attribute to reset.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceAttributeName

setAttribute

public void setAttribute(InstanceAttributeName attribute)
The attribute to reset.

Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport

Parameters:
attribute - The attribute to reset.
See Also:
InstanceAttributeName

withAttribute

public ResetInstanceAttributeRequest withAttribute(InstanceAttributeName attribute)
The attribute to reset.

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

Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport

Parameters:
attribute - The attribute to reset.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceAttributeName

getDryRunRequest

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

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.