Package com.amazonaws.services.ec2.model
Class VpcAttachment
- java.lang.Object
-
- com.amazonaws.services.ec2.model.VpcAttachment
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class VpcAttachment extends Object implements Serializable, Cloneable
Describes an attachment between a virtual private gateway and a VPC.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VpcAttachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VpcAttachment
clone()
boolean
equals(Object obj)
String
getState()
The current state of the attachment.String
getVpcId()
The ID of the VPC.int
hashCode()
void
setState(AttachmentStatus state)
The current state of the attachment.void
setState(String state)
The current state of the attachment.void
setVpcId(String vpcId)
The ID of the VPC.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(String state)
The current state of the attachment.VpcAttachment
withVpcId(String vpcId)
The ID of the VPC.
-
-
-
Method Detail
-
setVpcId
public void setVpcId(String vpcId)
The ID of the VPC.
- Parameters:
vpcId
- The ID of the VPC.
-
getVpcId
public String getVpcId()
The ID of the VPC.
- Returns:
- The ID of the VPC.
-
withVpcId
public VpcAttachment withVpcId(String vpcId)
The ID of the VPC.
- Parameters:
vpcId
- The ID of the VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
public void setState(String state)
The current state of the attachment.
- Parameters:
state
- The current state of the attachment.- See Also:
AttachmentStatus
-
getState
public String getState()
The current state of the attachment.
- Returns:
- The current state of the attachment.
- See Also:
AttachmentStatus
-
withState
public VpcAttachment withState(String state)
The current state of the attachment.
- Parameters:
state
- The current state of the attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AttachmentStatus
-
setState
public void setState(AttachmentStatus state)
The current state of the attachment.
- Parameters:
state
- The current state of the attachment.- See Also:
AttachmentStatus
-
withState
public VpcAttachment withState(AttachmentStatus state)
The current state of the attachment.
- Parameters:
state
- The current state of the attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AttachmentStatus
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VpcAttachment clone()
-
-