@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateCustomerGatewayRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateCustomerGatewayRequest>
Contains the parameters for CreateCustomerGateway.
NOOP| Constructor and Description |
|---|
CreateCustomerGatewayRequest()
Default constructor for CreateCustomerGatewayRequest object.
|
CreateCustomerGatewayRequest(GatewayType type,
String publicIp,
Integer bgpAsn)
Constructs a new CreateCustomerGatewayRequest object.
|
CreateCustomerGatewayRequest(String type,
String publicIp,
Integer bgpAsn)
Constructs a new CreateCustomerGatewayRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
CreateCustomerGatewayRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Integer |
getBgpAsn()
For customer gateway devices that support BGP, specify the device's ASN.
|
Long |
getBgpAsnExtended()
For customer gateway devices that support BGP, specify the device's ASN.
|
String |
getCertificateArn()
The Amazon Resource Name (ARN) for the customer gateway certificate.
|
String |
getDeviceName()
A name for the customer gateway device.
|
Request<CreateCustomerGatewayRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getIpAddress()
IPv4 address for the customer gateway device's outside interface.
|
String |
getPublicIp()
This member has been deprecated. The Internet-routable IP address for the customer gateway's outside
interface.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the customer gateway.
|
String |
getType()
The type of VPN connection that this customer gateway supports (
ipsec.1). |
int |
hashCode() |
void |
setBgpAsn(Integer bgpAsn)
For customer gateway devices that support BGP, specify the device's ASN.
|
void |
setBgpAsnExtended(Long bgpAsnExtended)
For customer gateway devices that support BGP, specify the device's ASN.
|
void |
setCertificateArn(String certificateArn)
The Amazon Resource Name (ARN) for the customer gateway certificate.
|
void |
setDeviceName(String deviceName)
A name for the customer gateway device.
|
void |
setIpAddress(String ipAddress)
IPv4 address for the customer gateway device's outside interface.
|
void |
setPublicIp(String publicIp)
This member has been deprecated. The Internet-routable IP address for the customer gateway's outside
interface.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the customer gateway.
|
void |
setType(GatewayType type)
The type of VPN connection that this customer gateway supports (
ipsec.1). |
void |
setType(String type)
The type of VPN connection that this customer gateway supports (
ipsec.1). |
String |
toString()
Returns a string representation of this object.
|
CreateCustomerGatewayRequest |
withBgpAsn(Integer bgpAsn)
For customer gateway devices that support BGP, specify the device's ASN.
|
CreateCustomerGatewayRequest |
withBgpAsnExtended(Long bgpAsnExtended)
For customer gateway devices that support BGP, specify the device's ASN.
|
CreateCustomerGatewayRequest |
withCertificateArn(String certificateArn)
The Amazon Resource Name (ARN) for the customer gateway certificate.
|
CreateCustomerGatewayRequest |
withDeviceName(String deviceName)
A name for the customer gateway device.
|
CreateCustomerGatewayRequest |
withIpAddress(String ipAddress)
IPv4 address for the customer gateway device's outside interface.
|
CreateCustomerGatewayRequest |
withPublicIp(String publicIp)
This member has been deprecated. The Internet-routable IP address for the customer gateway's outside
interface.
|
CreateCustomerGatewayRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the customer gateway.
|
CreateCustomerGatewayRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the customer gateway.
|
CreateCustomerGatewayRequest |
withType(GatewayType type)
The type of VPN connection that this customer gateway supports (
ipsec.1). |
CreateCustomerGatewayRequest |
withType(String type)
The type of VPN connection that this customer gateway supports (
ipsec.1). |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic CreateCustomerGatewayRequest()
public CreateCustomerGatewayRequest(String type, String publicIp, Integer bgpAsn)
type - The type of VPN connection that this customer gateway supports (ipsec.1).publicIp - This member has been deprecated. The Internet-routable IP address for the customer gateway's
outside interface. The address must be static.bgpAsn - For customer gateway devices that support BGP, specify the device's ASN. You must specify either
BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is
larger than 2,147,483,647, you must use BgpAsnExtended.
Default: 65000
Valid values: 1 to 2,147,483,647
public CreateCustomerGatewayRequest(GatewayType type, String publicIp, Integer bgpAsn)
type - The type of VPN connection that this customer gateway supports (ipsec.1).publicIp - This member has been deprecated. The Internet-routable IP address for the customer gateway's
outside interface. The address must be static.bgpAsn - For customer gateway devices that support BGP, specify the device's ASN. You must specify either
BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is
larger than 2,147,483,647, you must use BgpAsnExtended.
Default: 65000
Valid values: 1 to 2,147,483,647
public void setBgpAsn(Integer bgpAsn)
For customer gateway devices that support BGP, specify the device's ASN. You must specify either
BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is larger than
2,147,483,647, you must use BgpAsnExtended.
Default: 65000
Valid values: 1 to 2,147,483,647
bgpAsn - For customer gateway devices that support BGP, specify the device's ASN. You must specify either
BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is
larger than 2,147,483,647, you must use BgpAsnExtended.
Default: 65000
Valid values: 1 to 2,147,483,647
public Integer getBgpAsn()
For customer gateway devices that support BGP, specify the device's ASN. You must specify either
BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is larger than
2,147,483,647, you must use BgpAsnExtended.
Default: 65000
Valid values: 1 to 2,147,483,647
BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is
larger than 2,147,483,647, you must use BgpAsnExtended.
Default: 65000
Valid values: 1 to 2,147,483,647
public CreateCustomerGatewayRequest withBgpAsn(Integer bgpAsn)
For customer gateway devices that support BGP, specify the device's ASN. You must specify either
BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is larger than
2,147,483,647, you must use BgpAsnExtended.
Default: 65000
Valid values: 1 to 2,147,483,647
bgpAsn - For customer gateway devices that support BGP, specify the device's ASN. You must specify either
BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is
larger than 2,147,483,647, you must use BgpAsnExtended.
Default: 65000
Valid values: 1 to 2,147,483,647
public void setPublicIp(String publicIp)
This member has been deprecated. The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
publicIp - This member has been deprecated. The Internet-routable IP address for the customer gateway's
outside interface. The address must be static.public String getPublicIp()
This member has been deprecated. The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
public CreateCustomerGatewayRequest withPublicIp(String publicIp)
This member has been deprecated. The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
publicIp - This member has been deprecated. The Internet-routable IP address for the customer gateway's
outside interface. The address must be static.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 CreateCustomerGatewayRequest 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 setType(String type)
The type of VPN connection that this customer gateway supports (ipsec.1).
type - The type of VPN connection that this customer gateway supports (ipsec.1).GatewayTypepublic String getType()
The type of VPN connection that this customer gateway supports (ipsec.1).
ipsec.1).GatewayTypepublic CreateCustomerGatewayRequest withType(String type)
The type of VPN connection that this customer gateway supports (ipsec.1).
type - The type of VPN connection that this customer gateway supports (ipsec.1).GatewayTypepublic void setType(GatewayType type)
The type of VPN connection that this customer gateway supports (ipsec.1).
type - The type of VPN connection that this customer gateway supports (ipsec.1).GatewayTypepublic CreateCustomerGatewayRequest withType(GatewayType type)
The type of VPN connection that this customer gateway supports (ipsec.1).
type - The type of VPN connection that this customer gateway supports (ipsec.1).GatewayTypepublic List<TagSpecification> getTagSpecifications()
The tags to apply to the customer gateway.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the customer gateway.
tagSpecifications - The tags to apply to the customer gateway.public CreateCustomerGatewayRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the customer gateway.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection) or withTagSpecifications(java.util.Collection) if
you want to override the existing values.
tagSpecifications - The tags to apply to the customer gateway.public CreateCustomerGatewayRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the customer gateway.
tagSpecifications - The tags to apply to the customer gateway.public void setDeviceName(String deviceName)
A name for the customer gateway device.
Length Constraints: Up to 255 characters.
deviceName - A name for the customer gateway device.
Length Constraints: Up to 255 characters.
public String getDeviceName()
A name for the customer gateway device.
Length Constraints: Up to 255 characters.
Length Constraints: Up to 255 characters.
public CreateCustomerGatewayRequest withDeviceName(String deviceName)
A name for the customer gateway device.
Length Constraints: Up to 255 characters.
deviceName - A name for the customer gateway device.
Length Constraints: Up to 255 characters.
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 CreateCustomerGatewayRequest 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 setBgpAsnExtended(Long bgpAsnExtended)
For customer gateway devices that support BGP, specify the device's ASN. You must specify either
BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is larger than
2,147,483,647, you must use BgpAsnExtended.
Valid values: 2,147,483,648 to 4,294,967,295
bgpAsnExtended - For customer gateway devices that support BGP, specify the device's ASN. You must specify either
BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is
larger than 2,147,483,647, you must use BgpAsnExtended.
Valid values: 2,147,483,648 to 4,294,967,295
public Long getBgpAsnExtended()
For customer gateway devices that support BGP, specify the device's ASN. You must specify either
BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is larger than
2,147,483,647, you must use BgpAsnExtended.
Valid values: 2,147,483,648 to 4,294,967,295
BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is
larger than 2,147,483,647, you must use BgpAsnExtended.
Valid values: 2,147,483,648 to 4,294,967,295
public CreateCustomerGatewayRequest withBgpAsnExtended(Long bgpAsnExtended)
For customer gateway devices that support BGP, specify the device's ASN. You must specify either
BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is larger than
2,147,483,647, you must use BgpAsnExtended.
Valid values: 2,147,483,648 to 4,294,967,295
bgpAsnExtended - For customer gateway devices that support BGP, specify the device's ASN. You must specify either
BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is
larger than 2,147,483,647, you must use BgpAsnExtended.
Valid values: 2,147,483,648 to 4,294,967,295
public Request<CreateCustomerGatewayRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<CreateCustomerGatewayRequest>public String toString()
toString in class ObjectObject.toString()public CreateCustomerGatewayRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()