com.amazonaws.services.ec2.model
Class DescribeVpcAttributeRequest

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

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

Container for the parameters to the DescribeVpcAttribute operation.

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

See Also:
AmazonEC2.describeVpcAttribute(DescribeVpcAttributeRequest), Serialized Form

Constructor Summary
DescribeVpcAttributeRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAttribute()
          The VPC attribute.
 Request<DescribeVpcAttributeRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getVpcId()
          The ID of the VPC.
 int hashCode()
           
 void setAttribute(java.lang.String attribute)
          The VPC attribute.
 void setAttribute(VpcAttributeName attribute)
          The VPC attribute.
 void setVpcId(java.lang.String vpcId)
          The ID of the VPC.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DescribeVpcAttributeRequest withAttribute(java.lang.String attribute)
          The VPC attribute.
 DescribeVpcAttributeRequest withAttribute(VpcAttributeName attribute)
          The VPC attribute.
 DescribeVpcAttributeRequest withVpcId(java.lang.String vpcId)
          The ID of the VPC.
 
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

DescribeVpcAttributeRequest

public DescribeVpcAttributeRequest()
Method Detail

getVpcId

public java.lang.String getVpcId()
The ID of the VPC.

Returns:
The ID of the VPC.

setVpcId

public void setVpcId(java.lang.String vpcId)
The ID of the VPC.

Parameters:
vpcId - The ID of the VPC.

withVpcId

public DescribeVpcAttributeRequest withVpcId(java.lang.String vpcId)
The ID of the VPC.

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

Parameters:
vpcId - The ID of the VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getAttribute

public java.lang.String getAttribute()
The VPC attribute.

Constraints:
Allowed Values: enableDnsSupport, enableDnsHostnames

Returns:
The VPC attribute.
See Also:
VpcAttributeName

setAttribute

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

Constraints:
Allowed Values: enableDnsSupport, enableDnsHostnames

Parameters:
attribute - The VPC attribute.
See Also:
VpcAttributeName

withAttribute

public DescribeVpcAttributeRequest withAttribute(java.lang.String attribute)
The VPC attribute.

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

Constraints:
Allowed Values: enableDnsSupport, enableDnsHostnames

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

setAttribute

public void setAttribute(VpcAttributeName attribute)
The VPC attribute.

Constraints:
Allowed Values: enableDnsSupport, enableDnsHostnames

Parameters:
attribute - The VPC attribute.
See Also:
VpcAttributeName

withAttribute

public DescribeVpcAttributeRequest withAttribute(VpcAttributeName attribute)
The VPC attribute.

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

Constraints:
Allowed Values: enableDnsSupport, enableDnsHostnames

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

getDryRunRequest

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

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.