@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InternetGatewayAttachment extends Object implements Serializable, Cloneable
Describes the attachment of a VPC to an internet gateway or an egress-only 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.
|
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 void setState(String state)
The current state of the attachment. For an internet gateway, the state is available when attached
to a VPC; otherwise, this value is not returned.
state - The current state of the attachment. For an internet gateway, the state is available when
attached to a VPC; otherwise, this value is not returned.AttachmentStatuspublic String getState()
The current state of the attachment. For an internet gateway, the state is available when attached
to a VPC; otherwise, this value is not returned.
available when
attached to a VPC; otherwise, this value is not returned.AttachmentStatuspublic InternetGatewayAttachment withState(String state)
The current state of the attachment. For an internet gateway, the state is available when attached
to a VPC; otherwise, this value is not returned.
state - The current state of the attachment. For an internet gateway, the state is available when
attached to a VPC; otherwise, this value is not returned.AttachmentStatuspublic void setState(AttachmentStatus state)
The current state of the attachment. For an internet gateway, the state is available when attached
to a VPC; otherwise, this value is not returned.
state - The current state of the attachment. For an internet gateway, the state is available when
attached to a VPC; otherwise, this value is not returned.AttachmentStatuspublic InternetGatewayAttachment withState(AttachmentStatus state)
The current state of the attachment. For an internet gateway, the state is available when attached
to a VPC; otherwise, this value is not returned.
state - The current state of the attachment. For an internet gateway, the state is available when
attached to a VPC; otherwise, this value is not returned.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 InternetGatewayAttachment withVpcId(String vpcId)
The ID of the VPC.
vpcId - The ID of the VPC.public String toString()
toString in class ObjectObject.toString()public InternetGatewayAttachment clone()