com.amazonaws.services.ec2.model
Class InternetGateway

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

public class InternetGateway
extends java.lang.Object
implements java.io.Serializable

Describes an Internet gateway.

See Also:
Serialized Form

Constructor Summary
InternetGateway()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InternetGateway

public InternetGateway()
Method Detail

getInternetGatewayId

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

Returns:
The ID of the Internet gateway.

setInternetGatewayId

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

Parameters:
internetGatewayId - The ID of the Internet gateway.

withInternetGatewayId

public InternetGateway withInternetGatewayId(java.lang.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 java.util.List<InternetGatewayAttachment> getAttachments()
Any VPCs attached to the Internet gateway.

Returns:
Any VPCs attached to the Internet gateway.

setAttachments

public void setAttachments(java.util.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(java.util.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 java.util.List<Tag> getTags()
Any tags assigned to the Internet gateway.

Returns:
Any tags assigned to the Internet gateway.

setTags

public void setTags(java.util.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(java.util.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 java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.