com.amazonaws.services.ec2.model
Class InternetGateway

java.lang.Object
  extended by com.amazonaws.services.ec2.model.InternetGateway
All Implemented Interfaces:
Serializable

public class InternetGateway
extends Object
implements Serializable

Describes an Internet gateway.

See Also:
Serialized Form

Constructor Summary
InternetGateway()
           
 
Method Summary
 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(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 withTags(Collection<Tag> tags)
          Any tags assigned to the Internet gateway.
 InternetGateway withTags(Tag... tags)
          Any tags assigned to the Internet gateway.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InternetGateway

public InternetGateway()
Method Detail

getInternetGatewayId

public String getInternetGatewayId()
The ID of the Internet gateway.

Returns:
The ID of the Internet gateway.

setInternetGatewayId

public void setInternetGatewayId(String internetGatewayId)
The ID of the Internet gateway.

Parameters:
internetGatewayId - The ID of the Internet gateway.

withInternetGatewayId

public InternetGateway withInternetGatewayId(String internetGatewayId)
The ID of the Internet gateway.

Returns a reference to this object so that method calls can be chained together.

Parameters:
internetGatewayId - The ID of the Internet gateway.
Returns:
A reference to this updated 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
attachments - Any VPCs attached to the Internet gateway.
Returns:
A reference to this updated object so that method calls can be chained together.

withAttachments

public InternetGateway withAttachments(Collection<InternetGatewayAttachment> attachments)
Any VPCs attached to the Internet gateway.

Returns a reference to this object so that method calls can be chained together.

Parameters:
attachments - Any VPCs attached to the Internet gateway.
Returns:
A reference to this updated 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags - Any tags assigned to the Internet gateway.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public InternetGateway withTags(Collection<Tag> tags)
Any tags assigned to the Internet gateway.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags - Any tags assigned to the Internet gateway.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.