public class InternetGatewayAttachment
extends java.lang.Object
implements java.io.Serializable
Describes the attachment of a VPC to an Internet gateway.
| Constructor and Description |
|---|
InternetGatewayAttachment() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public java.lang.String getVpcId()
public void setVpcId(java.lang.String vpcId)
vpcId - The ID of the VPC.public InternetGatewayAttachment withVpcId(java.lang.String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId - The ID of the VPC.public java.lang.String getState()
Constraints:
Allowed Values: attaching, attached, detaching, detached
AttachmentStatuspublic void setState(java.lang.String state)
Constraints:
Allowed Values: attaching, attached, detaching, detached
state - The current state of the attachment.AttachmentStatuspublic InternetGatewayAttachment withState(java.lang.String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: attaching, attached, detaching, detached
state - The current state of the attachment.AttachmentStatuspublic void setState(AttachmentStatus state)
Constraints:
Allowed Values: attaching, attached, detaching, detached
state - The current state of the attachment.AttachmentStatuspublic InternetGatewayAttachment withState(AttachmentStatus state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: attaching, attached, detaching, detached
state - The current state of the attachment.AttachmentStatuspublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.