com.amazonaws.services.ec2.model
Class CustomerGateway

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

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

Describes a customer gateway.

See Also:
Serialized Form

Constructor Summary
CustomerGateway()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getBgpAsn()
          The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
 java.lang.String getCustomerGatewayId()
          The ID of the customer gateway.
 java.lang.String getIpAddress()
          The Internet-routable IP address of the customer gateway's outside interface.
 java.lang.String getState()
          The current state of the customer gateway.
 java.util.List<Tag> getTags()
          Any tags assigned to the customer gateway.
 java.lang.String getType()
          The type of VPN connection the customer gateway supports.
 int hashCode()
           
 void setBgpAsn(java.lang.String bgpAsn)
          The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
 void setCustomerGatewayId(java.lang.String customerGatewayId)
          The ID of the customer gateway.
 void setIpAddress(java.lang.String ipAddress)
          The Internet-routable IP address of the customer gateway's outside interface.
 void setState(java.lang.String state)
          The current state of the customer gateway.
 void setTags(java.util.Collection<Tag> tags)
          Any tags assigned to the customer gateway.
 void setType(java.lang.String type)
          The type of VPN connection the customer gateway supports.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CustomerGateway withBgpAsn(java.lang.String bgpAsn)
          The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
 CustomerGateway withCustomerGatewayId(java.lang.String customerGatewayId)
          The ID of the customer gateway.
 CustomerGateway withIpAddress(java.lang.String ipAddress)
          The Internet-routable IP address of the customer gateway's outside interface.
 CustomerGateway withState(java.lang.String state)
          The current state of the customer gateway.
 CustomerGateway withTags(java.util.Collection<Tag> tags)
          Any tags assigned to the customer gateway.
 CustomerGateway withTags(Tag... tags)
          Any tags assigned to the customer gateway.
 CustomerGateway withType(java.lang.String type)
          The type of VPN connection the customer gateway supports.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomerGateway

public CustomerGateway()
Method Detail

getCustomerGatewayId

public java.lang.String getCustomerGatewayId()
The ID of the customer gateway.

Returns:
The ID of the customer gateway.

setCustomerGatewayId

public void setCustomerGatewayId(java.lang.String customerGatewayId)
The ID of the customer gateway.

Parameters:
customerGatewayId - The ID of the customer gateway.

withCustomerGatewayId

public CustomerGateway withCustomerGatewayId(java.lang.String customerGatewayId)
The ID of the customer gateway.

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

Parameters:
customerGatewayId - The ID of the customer gateway.
Returns:
A reference to this updated object so that method calls can be chained together.

getState

public java.lang.String getState()
The current state of the customer gateway.

Returns:
The current state of the customer gateway.

setState

public void setState(java.lang.String state)
The current state of the customer gateway.

Parameters:
state - The current state of the customer gateway.

withState

public CustomerGateway withState(java.lang.String state)
The current state of the customer gateway.

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

Parameters:
state - The current state of the customer gateway.
Returns:
A reference to this updated object so that method calls can be chained together.

getType

public java.lang.String getType()
The type of VPN connection the customer gateway supports.

Returns:
The type of VPN connection the customer gateway supports.

setType

public void setType(java.lang.String type)
The type of VPN connection the customer gateway supports.

Parameters:
type - The type of VPN connection the customer gateway supports.

withType

public CustomerGateway withType(java.lang.String type)
The type of VPN connection the customer gateway supports.

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

Parameters:
type - The type of VPN connection the customer gateway supports.
Returns:
A reference to this updated object so that method calls can be chained together.

getIpAddress

public java.lang.String getIpAddress()
The Internet-routable IP address of the customer gateway's outside interface.

Returns:
The Internet-routable IP address of the customer gateway's outside interface.

setIpAddress

public void setIpAddress(java.lang.String ipAddress)
The Internet-routable IP address of the customer gateway's outside interface.

Parameters:
ipAddress - The Internet-routable IP address of the customer gateway's outside interface.

withIpAddress

public CustomerGateway withIpAddress(java.lang.String ipAddress)
The Internet-routable IP address of the customer gateway's outside interface.

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

Parameters:
ipAddress - The Internet-routable IP address of the customer gateway's outside interface.
Returns:
A reference to this updated object so that method calls can be chained together.

getBgpAsn

public java.lang.String getBgpAsn()
The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

Returns:
The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

setBgpAsn

public void setBgpAsn(java.lang.String bgpAsn)
The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

Parameters:
bgpAsn - The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

withBgpAsn

public CustomerGateway withBgpAsn(java.lang.String bgpAsn)
The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

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

Parameters:
bgpAsn - The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
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 customer gateway.

Returns:
Any tags assigned to the customer gateway.

setTags

public void setTags(java.util.Collection<Tag> tags)
Any tags assigned to the customer gateway.

Parameters:
tags - Any tags assigned to the customer gateway.

withTags

public CustomerGateway withTags(Tag... tags)
Any tags assigned to the customer gateway.

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

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

withTags

public CustomerGateway withTags(java.util.Collection<Tag> tags)
Any tags assigned to the customer gateway.

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

Parameters:
tags - Any tags assigned to the customer 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.