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 InternetGateway
clone()
boolean
equals(Object obj)
List<InternetGatewayAttachment>
getAttachments()
Any VPCs attached to the Internet gateway.String
getInternetGatewayId()
The ID of the Internet gateway.List<Tag>
getTags()
Any tags assigned to the Internet gateway.int
hashCode()
void
setAttachments(Collection<InternetGatewayAttachment> attachments)
Any VPCs attached to the Internet gateway.void
setInternetGatewayId(String internetGatewayId)
The ID of the Internet gateway.void
setTags(Collection<Tag> tags)
Any tags assigned to the Internet gateway.String
toString()
Returns a string representation of this object; useful for testing and debugging.InternetGateway
withAttachments(InternetGatewayAttachment... attachments)
Any VPCs attached to the Internet gateway.InternetGateway
withAttachments(Collection<InternetGatewayAttachment> attachments)
Any VPCs attached to the Internet gateway.InternetGateway
withInternetGatewayId(String internetGatewayId)
The ID of the Internet gateway.InternetGateway
withTags(Tag... tags)
Any tags assigned to the Internet gateway.InternetGateway
withTags(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InternetGateway clone()
-
-