@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CustomerGateway extends Object implements Serializable, Cloneable
Describes a customer gateway.
Constructor and Description |
---|
CustomerGateway() |
Modifier and Type | Method and Description |
---|---|
CustomerGateway |
clone() |
boolean |
equals(Object obj) |
String |
getBgpAsn()
The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
|
String |
getBgpAsnExtended()
The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
|
String |
getCertificateArn()
The Amazon Resource Name (ARN) for the customer gateway certificate.
|
String |
getCustomerGatewayId()
The ID of the customer gateway.
|
String |
getDeviceName()
The name of customer gateway device.
|
String |
getIpAddress()
IPv4 address for the customer gateway device's outside interface.
|
String |
getState()
The current state of the customer gateway (
pending | available | deleting | deleted ). |
List<Tag> |
getTags()
Any tags assigned to the customer gateway.
|
String |
getType()
The type of VPN connection the customer gateway supports (
ipsec.1 ). |
int |
hashCode() |
void |
setBgpAsn(String bgpAsn)
The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
|
void |
setBgpAsnExtended(String bgpAsnExtended)
The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
|
void |
setCertificateArn(String certificateArn)
The Amazon Resource Name (ARN) for the customer gateway certificate.
|
void |
setCustomerGatewayId(String customerGatewayId)
The ID of the customer gateway.
|
void |
setDeviceName(String deviceName)
The name of customer gateway device.
|
void |
setIpAddress(String ipAddress)
IPv4 address for the customer gateway device's outside interface.
|
void |
setState(String state)
The current state of the customer gateway (
pending | available | deleting | deleted ). |
void |
setTags(Collection<Tag> tags)
Any tags assigned to the customer gateway.
|
void |
setType(String type)
The type of VPN connection the customer gateway supports (
ipsec.1 ). |
String |
toString()
Returns a string representation of this object.
|
CustomerGateway |
withBgpAsn(String bgpAsn)
The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
|
CustomerGateway |
withBgpAsnExtended(String bgpAsnExtended)
The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
|
CustomerGateway |
withCertificateArn(String certificateArn)
The Amazon Resource Name (ARN) for the customer gateway certificate.
|
CustomerGateway |
withCustomerGatewayId(String customerGatewayId)
The ID of the customer gateway.
|
CustomerGateway |
withDeviceName(String deviceName)
The name of customer gateway device.
|
CustomerGateway |
withIpAddress(String ipAddress)
IPv4 address for the customer gateway device's outside interface.
|
CustomerGateway |
withState(String state)
The current state of the customer gateway (
pending | available | deleting | deleted ). |
CustomerGateway |
withTags(Collection<Tag> tags)
Any tags assigned to the customer gateway.
|
CustomerGateway |
withTags(Tag... tags)
Any tags assigned to the customer gateway.
|
CustomerGateway |
withType(String type)
The type of VPN connection the customer gateway supports (
ipsec.1 ). |
public void setBgpAsn(String bgpAsn)
The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
Valid values: 1
to 2,147,483,647
bgpAsn
- The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
Valid values: 1
to 2,147,483,647
public String getBgpAsn()
The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
Valid values: 1
to 2,147,483,647
Valid values: 1
to 2,147,483,647
public CustomerGateway withBgpAsn(String bgpAsn)
The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
Valid values: 1
to 2,147,483,647
bgpAsn
- The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
Valid values: 1
to 2,147,483,647
public void setCustomerGatewayId(String customerGatewayId)
The ID of the customer gateway.
customerGatewayId
- The ID of the customer gateway.public String getCustomerGatewayId()
The ID of the customer gateway.
public CustomerGateway withCustomerGatewayId(String customerGatewayId)
The ID of the customer gateway.
customerGatewayId
- The ID of the customer gateway.public void setIpAddress(String ipAddress)
IPv4 address for the customer gateway device's outside interface. The address must be static. If
OutsideIpAddressType
in your VPN connection options is set to PrivateIpv4
, you can use
an RFC6598 or RFC1918 private IPv4 address. If OutsideIpAddressType
is set to
PublicIpv4
, you can use a public IPv4 address.
ipAddress
- IPv4 address for the customer gateway device's outside interface. The address must be static. If
OutsideIpAddressType
in your VPN connection options is set to PrivateIpv4
, you
can use an RFC6598 or RFC1918 private IPv4 address. If OutsideIpAddressType
is set to
PublicIpv4
, you can use a public IPv4 address.public String getIpAddress()
IPv4 address for the customer gateway device's outside interface. The address must be static. If
OutsideIpAddressType
in your VPN connection options is set to PrivateIpv4
, you can use
an RFC6598 or RFC1918 private IPv4 address. If OutsideIpAddressType
is set to
PublicIpv4
, you can use a public IPv4 address.
OutsideIpAddressType
in your VPN connection options is set to PrivateIpv4
, you
can use an RFC6598 or RFC1918 private IPv4 address. If OutsideIpAddressType
is set to
PublicIpv4
, you can use a public IPv4 address.public CustomerGateway withIpAddress(String ipAddress)
IPv4 address for the customer gateway device's outside interface. The address must be static. If
OutsideIpAddressType
in your VPN connection options is set to PrivateIpv4
, you can use
an RFC6598 or RFC1918 private IPv4 address. If OutsideIpAddressType
is set to
PublicIpv4
, you can use a public IPv4 address.
ipAddress
- IPv4 address for the customer gateway device's outside interface. The address must be static. If
OutsideIpAddressType
in your VPN connection options is set to PrivateIpv4
, you
can use an RFC6598 or RFC1918 private IPv4 address. If OutsideIpAddressType
is set to
PublicIpv4
, you can use a public IPv4 address.public void setCertificateArn(String certificateArn)
The Amazon Resource Name (ARN) for the customer gateway certificate.
certificateArn
- The Amazon Resource Name (ARN) for the customer gateway certificate.public String getCertificateArn()
The Amazon Resource Name (ARN) for the customer gateway certificate.
public CustomerGateway withCertificateArn(String certificateArn)
The Amazon Resource Name (ARN) for the customer gateway certificate.
certificateArn
- The Amazon Resource Name (ARN) for the customer gateway certificate.public void setState(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 String getState()
The current state of the customer gateway (pending | available | deleting | deleted
).
pending | available | deleting | deleted
).public CustomerGateway withState(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(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 String getType()
The type of VPN connection the customer gateway supports (ipsec.1
).
ipsec.1
).public CustomerGateway withType(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 setDeviceName(String deviceName)
The name of customer gateway device.
deviceName
- The name of customer gateway device.public String getDeviceName()
The name of customer gateway device.
public CustomerGateway withDeviceName(String deviceName)
The name of customer gateway device.
deviceName
- The name of customer gateway device.public List<Tag> getTags()
Any tags assigned to the customer gateway.
public void setTags(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(Collection<Tag> tags)
Any tags assigned to the customer gateway.
tags
- Any tags assigned to the customer gateway.public void setBgpAsnExtended(String bgpAsnExtended)
The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
Valid values: 2,147,483,648
to 4,294,967,295
bgpAsnExtended
- The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
Valid values: 2,147,483,648
to 4,294,967,295
public String getBgpAsnExtended()
The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
Valid values: 2,147,483,648
to 4,294,967,295
Valid values: 2,147,483,648
to 4,294,967,295
public CustomerGateway withBgpAsnExtended(String bgpAsnExtended)
The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
Valid values: 2,147,483,648
to 4,294,967,295
bgpAsnExtended
- The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
Valid values: 2,147,483,648
to 4,294,967,295
public String toString()
toString
in class Object
Object.toString()
public CustomerGateway clone()