Class CustomerGateway
- java.lang.Object
-
- com.amazonaws.services.ec2.model.CustomerGateway
-
- All Implemented Interfaces:
Serializable,Cloneable
public class CustomerGateway extends Object implements Serializable, Cloneable
Describes a customer gateway.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CustomerGateway()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomerGatewayclone()booleanequals(Object obj)StringgetBgpAsn()The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).StringgetCustomerGatewayId()The ID of the customer gateway.StringgetIpAddress()The Internet-routable IP address of the customer gateway's outside interface.StringgetState()The current state of the customer gateway (pending | available | deleting | deleted).List<Tag>getTags()Any tags assigned to the customer gateway.StringgetType()The type of VPN connection the customer gateway supports (ipsec.1).inthashCode()voidsetBgpAsn(String bgpAsn)The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).voidsetCustomerGatewayId(String customerGatewayId)The ID of the customer gateway.voidsetIpAddress(String ipAddress)The Internet-routable IP address of the customer gateway's outside interface.voidsetState(String state)The current state of the customer gateway (pending | available | deleting | deleted).voidsetTags(Collection<Tag> tags)Any tags assigned to the customer gateway.voidsetType(String type)The type of VPN connection the customer gateway supports (ipsec.1).StringtoString()Returns a string representation of this object; useful for testing and debugging.CustomerGatewaywithBgpAsn(String bgpAsn)The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).CustomerGatewaywithCustomerGatewayId(String customerGatewayId)The ID of the customer gateway.CustomerGatewaywithIpAddress(String ipAddress)The Internet-routable IP address of the customer gateway's outside interface.CustomerGatewaywithState(String state)The current state of the customer gateway (pending | available | deleting | deleted).CustomerGatewaywithTags(Tag... tags)Any tags assigned to the customer gateway.CustomerGatewaywithTags(Collection<Tag> tags)Any tags assigned to the customer gateway.CustomerGatewaywithType(String type)The type of VPN connection the customer gateway supports (ipsec.1).
-
-
-
Method Detail
-
setCustomerGatewayId
public void setCustomerGatewayId(String customerGatewayId)
The ID of the customer gateway.
- Parameters:
customerGatewayId- The ID of the customer gateway.
-
getCustomerGatewayId
public String getCustomerGatewayId()
The ID of the customer gateway.
- Returns:
- The ID of the customer gateway.
-
withCustomerGatewayId
public CustomerGateway withCustomerGatewayId(String customerGatewayId)
The ID of the customer gateway.
- Parameters:
customerGatewayId- The ID of the customer gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
public void setState(String state)
The current state of the customer gateway (
pending | available | deleting | deleted).- Parameters:
state- The current state of the customer gateway (pending | available | deleting | deleted).
-
getState
public String getState()
The current state of the customer gateway (
pending | available | deleting | deleted).- Returns:
- The current state of the customer gateway (
pending | available | deleting | deleted).
-
withState
public CustomerGateway withState(String state)
The current state of the customer gateway (
pending | available | deleting | deleted).- Parameters:
state- The current state of the customer gateway (pending | available | deleting | deleted).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
public void setType(String type)
The type of VPN connection the customer gateway supports (
ipsec.1).- Parameters:
type- The type of VPN connection the customer gateway supports (ipsec.1).
-
getType
public String getType()
The type of VPN connection the customer gateway supports (
ipsec.1).- Returns:
- The type of VPN connection the customer gateway supports (
ipsec.1).
-
withType
public CustomerGateway withType(String type)
The type of VPN connection the customer gateway supports (
ipsec.1).- Parameters:
type- The type of VPN connection the customer gateway supports (ipsec.1).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIpAddress
public void setIpAddress(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.
-
getIpAddress
public 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.
-
withIpAddress
public CustomerGateway withIpAddress(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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setBgpAsn
public void setBgpAsn(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).
-
getBgpAsn
public 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).
-
withBgpAsn
public CustomerGateway withBgpAsn(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).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
public List<Tag> getTags()
Any tags assigned to the customer gateway.
- Returns:
- Any tags assigned to the customer gateway.
-
setTags
public void setTags(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.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)orwithTags(java.util.Collection)if you want to override the existing values.- Parameters:
tags- Any tags assigned to the customer gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
public CustomerGateway withTags(Collection<Tag> tags)
Any tags assigned to the customer gateway.
- Parameters:
tags- Any tags assigned to the customer gateway.- Returns:
- Returns a reference to this 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CustomerGateway clone()
-
-