com.amazonaws.services.ec2.model
Class VpcAttachment

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

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

Describes an attachment between a virtual private gateway and a VPC.

See Also:
Serialized Form

Constructor Summary
VpcAttachment()
           
 
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.
 VpcAttachment withState(AttachmentStatus state)
          The current state of the attachment.
 VpcAttachment withState(java.lang.String state)
          The current state of the attachment.
 VpcAttachment 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

VpcAttachment

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