com.amazonaws.services.ec2.model
Class DescribeInstanceAttributeRequest

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

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

Container for the parameters to the DescribeInstanceAttribute operation.

Describes the specified attribute of the specified instance. You can specify only one attribute at a time.

See Also:
AmazonEC2.describeInstanceAttribute(DescribeInstanceAttributeRequest), Serialized Form

Constructor Summary
DescribeInstanceAttributeRequest()
          Default constructor for a new DescribeInstanceAttributeRequest object.
DescribeInstanceAttributeRequest(java.lang.String instanceId, InstanceAttributeName attribute)
          Constructs a new DescribeInstanceAttributeRequest object.
DescribeInstanceAttributeRequest(java.lang.String instanceId, java.lang.String attribute)
          Constructs a new DescribeInstanceAttributeRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAttribute()
          The instance attribute.
 Request<DescribeInstanceAttributeRequest> 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 instance attribute.
 void setAttribute(java.lang.String attribute)
          The instance attribute.
 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.
 DescribeInstanceAttributeRequest withAttribute(InstanceAttributeName attribute)
          The instance attribute.
 DescribeInstanceAttributeRequest withAttribute(java.lang.String attribute)
          The instance attribute.
 DescribeInstanceAttributeRequest 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

DescribeInstanceAttributeRequest

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


DescribeInstanceAttributeRequest

public DescribeInstanceAttributeRequest(java.lang.String instanceId,
                                        java.lang.String attribute)
Constructs a new DescribeInstanceAttributeRequest 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 instance attribute.

DescribeInstanceAttributeRequest

public DescribeInstanceAttributeRequest(java.lang.String instanceId,
                                        InstanceAttributeName attribute)
Constructs a new DescribeInstanceAttributeRequest 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 instance attribute.
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 DescribeInstanceAttributeRequest 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 instance attribute.

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

Returns:
The instance attribute.
See Also:
InstanceAttributeName

setAttribute

public void setAttribute(java.lang.String attribute)
The instance attribute.

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

Parameters:
attribute - The instance attribute.
See Also:
InstanceAttributeName

withAttribute

public DescribeInstanceAttributeRequest withAttribute(java.lang.String attribute)
The instance attribute.

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 instance attribute.
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 instance attribute.

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

Parameters:
attribute - The instance attribute.
See Also:
InstanceAttributeName

withAttribute

public DescribeInstanceAttributeRequest withAttribute(InstanceAttributeName attribute)
The instance attribute.

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 instance attribute.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceAttributeName

getDryRunRequest

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

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.