com.amazonaws.services.ec2.model
Class InternetGatewayAttachment

java.lang.Object
  extended by com.amazonaws.services.ec2.model.InternetGatewayAttachment
All Implemented Interfaces:
java.io.Serializable

public class InternetGatewayAttachment
extends java.lang.Object
implements java.io.Serializable

Describes the attachment of a VPC to an Internet gateway.

See Also:
Serialized Form

Constructor Summary
InternetGatewayAttachment()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getState()
          The current state of the attachment.
 java.lang.String getVpcId()
          The ID of the VPC.
 int hashCode()
           
 void setState(AttachmentStatus state)
          The current state of the attachment.
 void setState(java.lang.String state)
          The current state of the attachment.
 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.
 InternetGatewayAttachment withState(AttachmentStatus state)
          The current state of the attachment.
 InternetGatewayAttachment withState(java.lang.String state)
          The current state of the attachment.
 InternetGatewayAttachment withVpcId(java.lang.String vpcId)
          The ID of the VPC.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InternetGatewayAttachment

public InternetGatewayAttachment()
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 InternetGatewayAttachment 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.

getState

public java.lang.String getState()
The current state of the attachment.

Constraints:
Allowed Values: attaching, attached, detaching, detached

Returns:
The current state of the attachment.
See Also:
AttachmentStatus

setState

public void setState(java.lang.String state)
The current state of the attachment.

Constraints:
Allowed Values: attaching, attached, detaching, detached

Parameters:
state - The current state of the attachment.
See Also:
AttachmentStatus

withState

public InternetGatewayAttachment withState(java.lang.String state)
The current state of the attachment.

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

Constraints:
Allowed Values: attaching, attached, detaching, detached

Parameters:
state - The current state of the attachment.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
AttachmentStatus

setState

public void setState(AttachmentStatus state)
The current state of the attachment.

Constraints:
Allowed Values: attaching, attached, detaching, detached

Parameters:
state - The current state of the attachment.
See Also:
AttachmentStatus

withState

public InternetGatewayAttachment withState(AttachmentStatus state)
The current state of the attachment.

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

Constraints:
Allowed Values: attaching, attached, detaching, detached

Parameters:
state - The current state of the attachment.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
AttachmentStatus

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.