public class CustomerGateway
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a customer gateway.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
bgpAsn
The customer gateway's Border Gateway Protocol (BGP) Autonomous System
Number (ASN).
|
private java.lang.String |
customerGatewayId
The ID of the customer gateway.
|
private java.lang.String |
ipAddress
The Internet-routable IP address of the customer gateway's outside
interface.
|
private java.lang.String |
state
The current state of the customer gateway (
pending | available | deleting | deleted ). |
private SdkInternalList<Tag> |
tags
Any tags assigned to the customer gateway.
|
private java.lang.String |
type
The type of VPN connection the customer gateway supports (
ipsec.1 ). |
Constructor and Description |
---|
CustomerGateway() |
Modifier and Type | Method and Description |
---|---|
CustomerGateway |
clone() |
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 (
pending | available | deleting | deleted ). |
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 (
ipsec.1 ). |
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 (
pending | available | deleting | deleted ). |
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 (
ipsec.1 ). |
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 (
pending | available | deleting | deleted ). |
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 (
ipsec.1 ). |
private java.lang.String customerGatewayId
The ID of the customer gateway.
private java.lang.String state
The current state of the customer gateway (
pending | available | deleting | deleted
).
private java.lang.String type
The type of VPN connection the customer gateway supports (
ipsec.1
).
private java.lang.String ipAddress
The Internet-routable IP address of the customer gateway's outside interface.
private java.lang.String bgpAsn
The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
private SdkInternalList<Tag> tags
Any tags assigned to the customer gateway.
public void setCustomerGatewayId(java.lang.String customerGatewayId)
The ID of the customer gateway.
customerGatewayId
- The ID of the customer gateway.public java.lang.String getCustomerGatewayId()
The ID of the customer gateway.
public CustomerGateway withCustomerGatewayId(java.lang.String customerGatewayId)
The ID of the customer gateway.
customerGatewayId
- The ID of the customer gateway.public void setState(java.lang.String state)
The current state of the customer gateway (
pending | available | deleting | deleted
).
state
- The current state of the customer gateway (
pending | available | deleting | deleted
).public java.lang.String getState()
The current state of the customer gateway (
pending | available | deleting | deleted
).
pending | available | deleting | deleted
).public CustomerGateway withState(java.lang.String state)
The current state of the customer gateway (
pending | available | deleting | deleted
).
state
- The current state of the customer gateway (
pending | available | deleting | deleted
).public void setType(java.lang.String type)
The type of VPN connection the customer gateway supports (
ipsec.1
).
type
- The type of VPN connection the customer gateway supports (
ipsec.1
).public java.lang.String getType()
The type of VPN connection the customer gateway supports (
ipsec.1
).
ipsec.1
).public CustomerGateway withType(java.lang.String type)
The type of VPN connection the customer gateway supports (
ipsec.1
).
type
- The type of VPN connection the customer gateway supports (
ipsec.1
).public void setIpAddress(java.lang.String ipAddress)
The Internet-routable IP address of the customer gateway's outside interface.
ipAddress
- The Internet-routable IP address of the customer gateway's outside
interface.public java.lang.String getIpAddress()
The Internet-routable IP address of the customer gateway's outside interface.
public CustomerGateway withIpAddress(java.lang.String ipAddress)
The Internet-routable IP address of the customer gateway's outside interface.
ipAddress
- The Internet-routable IP address of the customer gateway's outside
interface.public void setBgpAsn(java.lang.String bgpAsn)
The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
bgpAsn
- The customer gateway's Border Gateway Protocol (BGP) Autonomous
System Number (ASN).public java.lang.String getBgpAsn()
The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
public CustomerGateway withBgpAsn(java.lang.String bgpAsn)
The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
bgpAsn
- The customer gateway's Border Gateway Protocol (BGP) Autonomous
System Number (ASN).public java.util.List<Tag> getTags()
Any tags assigned to the customer gateway.
public void setTags(java.util.Collection<Tag> tags)
Any tags assigned to the customer gateway.
tags
- Any tags assigned to the customer gateway.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)
or
withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags assigned to the customer gateway.public CustomerGateway withTags(java.util.Collection<Tag> tags)
Any tags assigned to the customer gateway.
tags
- Any tags assigned to the customer 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 CustomerGateway clone()
clone
in class java.lang.Object