@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VpcAttachment extends Object implements Serializable, Cloneable
Describes an attachment between a virtual private gateway and a VPC.
| Constructor and Description |
|---|
VpcAttachment() |
| Modifier and Type | Method and 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.
|
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.
|
public void setState(String state)
The current state of the attachment.
state - The current state of the attachment.AttachmentStatuspublic String getState()
The current state of the attachment.
AttachmentStatuspublic VpcAttachment withState(String state)
The current state of the attachment.
state - The current state of the attachment.AttachmentStatuspublic void setState(AttachmentStatus state)
The current state of the attachment.
state - The current state of the attachment.AttachmentStatuspublic VpcAttachment withState(AttachmentStatus state)
The current state of the attachment.
state - The current state of the attachment.AttachmentStatuspublic void setVpcId(String vpcId)
The ID of the VPC.
vpcId - The ID of the VPC.public String getVpcId()
The ID of the VPC.
public VpcAttachment withVpcId(String vpcId)
The ID of the VPC.
vpcId - The ID of the VPC.public String toString()
toString in class ObjectObject.toString()public VpcAttachment clone()