com.amazonaws.services.ec2.model
Class DescribeVolumeAttributeRequest

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

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

Container for the parameters to the DescribeVolumeAttribute operation.

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

For more information about Amazon EBS volumes, see Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide .

See Also:
AmazonEC2.describeVolumeAttribute(DescribeVolumeAttributeRequest), Serialized Form

Constructor Summary
DescribeVolumeAttributeRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAttribute()
          The instance attribute.
 Request<DescribeVolumeAttributeRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getVolumeId()
          The ID of the volume.
 int hashCode()
           
 void setAttribute(java.lang.String attribute)
          The instance attribute.
 void setAttribute(VolumeAttributeName attribute)
          The instance attribute.
 void setVolumeId(java.lang.String volumeId)
          The ID of the volume.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DescribeVolumeAttributeRequest withAttribute(java.lang.String attribute)
          The instance attribute.
 DescribeVolumeAttributeRequest withAttribute(VolumeAttributeName attribute)
          The instance attribute.
 DescribeVolumeAttributeRequest withVolumeId(java.lang.String volumeId)
          The ID of the volume.
 
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

DescribeVolumeAttributeRequest

public DescribeVolumeAttributeRequest()
Method Detail

getVolumeId

public java.lang.String getVolumeId()
The ID of the volume.

Returns:
The ID of the volume.

setVolumeId

public void setVolumeId(java.lang.String volumeId)
The ID of the volume.

Parameters:
volumeId - The ID of the volume.

withVolumeId

public DescribeVolumeAttributeRequest withVolumeId(java.lang.String volumeId)
The ID of the volume.

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

Parameters:
volumeId - The ID of the volume.
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: autoEnableIO, productCodes

Returns:
The instance attribute.
See Also:
VolumeAttributeName

setAttribute

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

Constraints:
Allowed Values: autoEnableIO, productCodes

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

withAttribute

public DescribeVolumeAttributeRequest 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: autoEnableIO, productCodes

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

setAttribute

public void setAttribute(VolumeAttributeName attribute)
The instance attribute.

Constraints:
Allowed Values: autoEnableIO, productCodes

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

withAttribute

public DescribeVolumeAttributeRequest withAttribute(VolumeAttributeName attribute)
The instance attribute.

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

Constraints:
Allowed Values: autoEnableIO, productCodes

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

getDryRunRequest

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

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.