Class InternetGateway
- java.lang.Object
-
- com.amazonaws.services.ec2.model.InternetGateway
-
- All Implemented Interfaces:
Serializable,Cloneable
public class InternetGateway extends Object implements Serializable, Cloneable
Describes an Internet gateway.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InternetGateway()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InternetGatewayclone()booleanequals(Object obj)List<InternetGatewayAttachment>getAttachments()Any VPCs attached to the Internet gateway.StringgetInternetGatewayId()The ID of the Internet gateway.List<Tag>getTags()Any tags assigned to the Internet gateway.inthashCode()voidsetAttachments(Collection<InternetGatewayAttachment> attachments)Any VPCs attached to the Internet gateway.voidsetInternetGatewayId(String internetGatewayId)The ID of the Internet gateway.voidsetTags(Collection<Tag> tags)Any tags assigned to the Internet gateway.StringtoString()Returns a string representation of this object; useful for testing and debugging.InternetGatewaywithAttachments(InternetGatewayAttachment... attachments)Any VPCs attached to the Internet gateway.InternetGatewaywithAttachments(Collection<InternetGatewayAttachment> attachments)Any VPCs attached to the Internet gateway.InternetGatewaywithInternetGatewayId(String internetGatewayId)The ID of the Internet gateway.InternetGatewaywithTags(Tag... tags)Any tags assigned to the Internet gateway.InternetGatewaywithTags(Collection<Tag> tags)Any tags assigned to the Internet gateway.
-
-
-
Method Detail
-
setInternetGatewayId
public void setInternetGatewayId(String internetGatewayId)
The ID of the Internet gateway.
- Parameters:
internetGatewayId- The ID of the Internet gateway.
-
getInternetGatewayId
public String getInternetGatewayId()
The ID of the Internet gateway.
- Returns:
- The ID of the Internet gateway.
-
withInternetGatewayId
public InternetGateway withInternetGatewayId(String internetGatewayId)
The ID of the Internet gateway.
- Parameters:
internetGatewayId- The ID of the Internet gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAttachments
public List<InternetGatewayAttachment> getAttachments()
Any VPCs attached to the Internet gateway.
- Returns:
- Any VPCs attached to the Internet gateway.
-
setAttachments
public void setAttachments(Collection<InternetGatewayAttachment> attachments)
Any VPCs attached to the Internet gateway.
- Parameters:
attachments- Any VPCs attached to the Internet gateway.
-
withAttachments
public InternetGateway withAttachments(InternetGatewayAttachment... attachments)
Any VPCs attached to the Internet gateway.
NOTE: This method appends the values to the existing list (if any). Use
setAttachments(java.util.Collection)orwithAttachments(java.util.Collection)if you want to override the existing values.- Parameters:
attachments- Any VPCs attached to the Internet gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAttachments
public InternetGateway withAttachments(Collection<InternetGatewayAttachment> attachments)
Any VPCs attached to the Internet gateway.
- Parameters:
attachments- Any VPCs attached to the Internet gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
public List<Tag> getTags()
Any tags assigned to the Internet gateway.
- Returns:
- Any tags assigned to the Internet gateway.
-
setTags
public void setTags(Collection<Tag> tags)
Any tags assigned to the Internet gateway.
- Parameters:
tags- Any tags assigned to the Internet gateway.
-
withTags
public InternetGateway withTags(Tag... tags)
Any tags assigned to the Internet gateway.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)orwithTags(java.util.Collection)if you want to override the existing values.- Parameters:
tags- Any tags assigned to the Internet gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
public InternetGateway withTags(Collection<Tag> tags)
Any tags assigned to the Internet gateway.
- Parameters:
tags- Any tags assigned to the Internet gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 InternetGateway clone()
-
-