public class InternetGateway
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an Internet gateway.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<InternetGatewayAttachment> |
attachments
Any VPCs attached to the Internet gateway.
|
private java.lang.String |
internetGatewayId
The ID of the Internet gateway.
|
private SdkInternalList<Tag> |
tags
Any tags assigned to the Internet gateway.
|
Constructor and Description |
---|
InternetGateway() |
Modifier and Type | Method and Description |
---|---|
InternetGateway |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<InternetGatewayAttachment> |
getAttachments()
Any VPCs attached to the Internet gateway.
|
java.lang.String |
getInternetGatewayId()
The ID of the Internet gateway.
|
java.util.List<Tag> |
getTags()
Any tags assigned to the Internet gateway.
|
int |
hashCode() |
void |
setAttachments(java.util.Collection<InternetGatewayAttachment> attachments)
Any VPCs attached to the Internet gateway.
|
void |
setInternetGatewayId(java.lang.String internetGatewayId)
The ID of the Internet gateway.
|
void |
setTags(java.util.Collection<Tag> tags)
Any tags assigned to the Internet gateway.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InternetGateway |
withAttachments(java.util.Collection<InternetGatewayAttachment> attachments)
Any VPCs attached to the Internet gateway.
|
InternetGateway |
withAttachments(InternetGatewayAttachment... attachments)
Any VPCs attached to the Internet gateway.
|
InternetGateway |
withInternetGatewayId(java.lang.String internetGatewayId)
The ID of the Internet gateway.
|
InternetGateway |
withTags(java.util.Collection<Tag> tags)
Any tags assigned to the Internet gateway.
|
InternetGateway |
withTags(Tag... tags)
Any tags assigned to the Internet gateway.
|
private java.lang.String internetGatewayId
The ID of the Internet gateway.
private SdkInternalList<InternetGatewayAttachment> attachments
Any VPCs attached to the Internet gateway.
private SdkInternalList<Tag> tags
Any tags assigned to the Internet gateway.
public void setInternetGatewayId(java.lang.String internetGatewayId)
The ID of the Internet gateway.
internetGatewayId
- The ID of the Internet gateway.public java.lang.String getInternetGatewayId()
The ID of the Internet gateway.
public InternetGateway withInternetGatewayId(java.lang.String internetGatewayId)
The ID of the Internet gateway.
internetGatewayId
- The ID of the Internet gateway.public java.util.List<InternetGatewayAttachment> getAttachments()
Any VPCs attached to the Internet gateway.
public void setAttachments(java.util.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(java.util.Collection<InternetGatewayAttachment> attachments)
Any VPCs attached to the Internet gateway.
attachments
- Any VPCs attached to the Internet gateway.public java.util.List<Tag> getTags()
Any tags assigned to the Internet gateway.
public void setTags(java.util.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(java.util.Collection<Tag> tags)
Any tags assigned to the Internet gateway.
tags
- Any tags assigned to the Internet gateway.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public InternetGateway clone()
clone
in class java.lang.Object