Package com.amazonaws.services.ec2.model
Class InternetGatewayAttachment
- java.lang.Object
-
- com.amazonaws.services.ec2.model.InternetGatewayAttachment
-
- All Implemented Interfaces:
Serializable,Cloneable
public class InternetGatewayAttachment extends Object implements Serializable, Cloneable
Describes the attachment of a VPC to an Internet gateway.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InternetGatewayAttachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InternetGatewayAttachmentclone()booleanequals(Object obj)StringgetState()The current state of the attachment.StringgetVpcId()The ID of the VPC.inthashCode()voidsetState(AttachmentStatus state)The current state of the attachment.voidsetState(String state)The current state of the attachment.voidsetVpcId(String vpcId)The ID of the VPC.StringtoString()Returns a string representation of this object; useful for testing and debugging.InternetGatewayAttachmentwithState(AttachmentStatus state)The current state of the attachment.InternetGatewayAttachmentwithState(String state)The current state of the attachment.InternetGatewayAttachmentwithVpcId(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 InternetGatewayAttachment 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 InternetGatewayAttachment 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 InternetGatewayAttachment 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InternetGatewayAttachment clone()
-
-