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 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.
-
-
-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InternetGatewayAttachment clone()
-
-