@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InternetGateway extends Object implements Serializable, Cloneable
Describes an internet gateway.
Constructor and Description |
---|
InternetGateway() |
Modifier and Type | Method and 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.
|
String |
getOwnerId()
The ID of the Amazon Web Services account that owns 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 |
setOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the internet gateway.
|
void |
setTags(Collection<Tag> tags)
Any tags assigned to the internet gateway.
|
String |
toString()
Returns a string representation of this object.
|
InternetGateway |
withAttachments(Collection<InternetGatewayAttachment> attachments)
Any VPCs attached to the internet gateway.
|
InternetGateway |
withAttachments(InternetGatewayAttachment... attachments)
Any VPCs attached to the internet gateway.
|
InternetGateway |
withInternetGatewayId(String internetGatewayId)
The ID of the internet gateway.
|
InternetGateway |
withOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the internet gateway.
|
InternetGateway |
withTags(Collection<Tag> tags)
Any tags assigned to the internet gateway.
|
InternetGateway |
withTags(Tag... tags)
Any tags assigned to the internet gateway.
|
public List<InternetGatewayAttachment> getAttachments()
Any VPCs attached to the internet gateway.
public void setAttachments(Collection<InternetGatewayAttachment> attachments)
Any VPCs attached to the internet gateway.
attachments
- Any VPCs attached to the internet gateway.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)
or withAttachments(java.util.Collection)
if you want to
override the existing values.
attachments
- Any VPCs attached to the internet gateway.public InternetGateway withAttachments(Collection<InternetGatewayAttachment> attachments)
Any VPCs attached to the internet gateway.
attachments
- Any VPCs attached to the internet gateway.public void setInternetGatewayId(String internetGatewayId)
The ID of the internet gateway.
internetGatewayId
- The ID of the internet gateway.public String getInternetGatewayId()
The ID of the internet gateway.
public InternetGateway withInternetGatewayId(String internetGatewayId)
The ID of the internet gateway.
internetGatewayId
- The ID of the internet gateway.public void setOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the internet gateway.
ownerId
- The ID of the Amazon Web Services account that owns the internet gateway.public String getOwnerId()
The ID of the Amazon Web Services account that owns the internet gateway.
public InternetGateway withOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the internet gateway.
ownerId
- The ID of the Amazon Web Services account that owns the internet gateway.public List<Tag> getTags()
Any tags assigned to the internet gateway.
public void setTags(Collection<Tag> tags)
Any tags assigned to the internet gateway.
tags
- Any tags assigned to the internet gateway.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)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags assigned to the internet gateway.public InternetGateway withTags(Collection<Tag> tags)
Any tags assigned to the internet gateway.
tags
- Any tags assigned to the internet gateway.public String toString()
toString
in class Object
Object.toString()
public InternetGateway clone()