com.amazonaws.services.ec2.model
Class DescribeInstanceAttributeRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.DescribeInstanceAttributeRequest

public class DescribeInstanceAttributeRequest
extends AmazonWebServiceRequest

Container for the parameters to the DescribeInstanceAttribute operation.

Returns information about an attribute of an instance. Only one attribute can be specified per call.

See Also:
AmazonEC2.describeInstanceAttribute(DescribeInstanceAttributeRequest)

Constructor Summary
DescribeInstanceAttributeRequest()
          Default constructor for a new DescribeInstanceAttributeRequest object.
DescribeInstanceAttributeRequest(String instanceId, String attribute)
          Constructs a new DescribeInstanceAttributeRequest object.
 
Method Summary
 String getAttribute()
          The name of the attribute to describe.
 String getInstanceId()
          The ID of the instance whose instance attribute is being described.
 void setAttribute(String attribute)
          The name of the attribute to describe.
 void setInstanceId(String instanceId)
          The ID of the instance whose instance attribute is being described.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DescribeInstanceAttributeRequest withAttribute(String attribute)
          The name of the attribute to describe.
 DescribeInstanceAttributeRequest withInstanceId(String instanceId)
          The ID of the instance whose instance attribute is being described.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, 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(String instanceId,
                                        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 whose instance attribute is being described.
attribute - The name of the attribute to describe.

Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping

Method Detail

getInstanceId

public String getInstanceId()
The ID of the instance whose instance attribute is being described.

Returns:
The ID of the instance whose instance attribute is being described.

setInstanceId

public void setInstanceId(String instanceId)
The ID of the instance whose instance attribute is being described.

Parameters:
instanceId - The ID of the instance whose instance attribute is being described.

withInstanceId

public DescribeInstanceAttributeRequest withInstanceId(String instanceId)
The ID of the instance whose instance attribute is being described.

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

Parameters:
instanceId - The ID of the instance whose instance attribute is being described.
Returns:
A reference to this updated object so that method calls can be chained together.

getAttribute

public String getAttribute()
The name of the attribute to describe.

Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping

Returns:
The name of the attribute to describe.

Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping


setAttribute

public void setAttribute(String attribute)
The name of the attribute to describe.

Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping

Parameters:
attribute - The name of the attribute to describe.

Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping


withAttribute

public DescribeInstanceAttributeRequest withAttribute(String attribute)
The name of the attribute to describe.

Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping

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

Parameters:
attribute - The name of the attribute to describe.

Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping

Returns:
A reference to this updated object so that method calls can be chained together.

toString

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

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


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