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