public class CreateCustomerGatewayRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<CreateCustomerGatewayRequest>
CreateCustomerGateway operation
.
Provides information to AWS about your VPN customer gateway device. The customer gateway is the appliance at your end of the VPN connection. (The device on the AWS side of the VPN connection is the virtual private gateway.) You must provide the Internet-routable IP address of the customer gateway's external interface. The IP address must be static and may be behind a device performing network address translation (NAT).
For devices that use Border Gateway Protocol (BGP), you can also provide the device's BGP Autonomous System Number (ASN). You can use an existing ASN assigned to your network. If you don't have an ASN already, you can use a private ASN (in the 64512 - 65534 range).
NOTE: Amazon EC2 supports all 2-byte ASN numbers in the range of 1 - 65534, with the exception of 7224, which is reserved in the us-east-1 region, and 9059, which is reserved in the eu-west-1 region.
For more information about VPN customer gateways, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide .
IMPORTANT: You cannot create more than one customer gateway with the same VPN type, IP address, and BGP ASN parameter values. If you run an identical request more than one time, the first request creates the customer gateway, and subsequent requests return information about the existing customer gateway. The subsequent requests do not create new customer gateway resources.
Constructor and Description |
---|
CreateCustomerGatewayRequest()
Default constructor for a new CreateCustomerGatewayRequest object.
|
CreateCustomerGatewayRequest(GatewayType type,
java.lang.String publicIp,
java.lang.Integer bgpAsn)
Constructs a new CreateCustomerGatewayRequest object.
|
CreateCustomerGatewayRequest(java.lang.String type,
java.lang.String publicIp,
java.lang.Integer bgpAsn)
Constructs a new CreateCustomerGatewayRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getBgpAsn()
For devices that support BGP, the customer gateway's BGP ASN.
|
Request<CreateCustomerGatewayRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getPublicIp()
The Internet-routable IP address for the customer gateway's outside
interface.
|
java.lang.String |
getType()
The type of VPN connection that this customer gateway supports
(
ipsec.1 ). |
int |
hashCode() |
void |
setBgpAsn(java.lang.Integer bgpAsn)
For devices that support BGP, the customer gateway's BGP ASN.
|
void |
setPublicIp(java.lang.String publicIp)
The Internet-routable IP address for the customer gateway's outside
interface.
|
void |
setType(GatewayType type)
The type of VPN connection that this customer gateway supports
(
ipsec.1 ). |
void |
setType(java.lang.String type)
The type of VPN connection that this customer gateway supports
(
ipsec.1 ). |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateCustomerGatewayRequest |
withBgpAsn(java.lang.Integer bgpAsn)
For devices that support BGP, the customer gateway's BGP ASN.
|
CreateCustomerGatewayRequest |
withPublicIp(java.lang.String publicIp)
The Internet-routable IP address for the customer gateway's outside
interface.
|
CreateCustomerGatewayRequest |
withType(GatewayType type)
The type of VPN connection that this customer gateway supports
(
ipsec.1 ). |
CreateCustomerGatewayRequest |
withType(java.lang.String type)
The type of VPN connection that this customer gateway supports
(
ipsec.1 ). |
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public CreateCustomerGatewayRequest()
public CreateCustomerGatewayRequest(java.lang.String type, java.lang.String publicIp, java.lang.Integer bgpAsn)
type
- The type of VPN connection that this customer gateway
supports (ipsec.1
).publicIp
- The Internet-routable IP address for the customer
gateway's outside interface. The address must be static.bgpAsn
- For devices that support BGP, the customer gateway's BGP
ASN. Default: 65000
public CreateCustomerGatewayRequest(GatewayType type, java.lang.String publicIp, java.lang.Integer bgpAsn)
type
- The type of VPN connection that this customer gateway
supports (ipsec.1
).publicIp
- The Internet-routable IP address for the customer
gateway's outside interface. The address must be static.bgpAsn
- For devices that support BGP, the customer gateway's BGP
ASN. Default: 65000
public java.lang.String getType()
ipsec.1
).
Constraints:
Allowed Values: ipsec.1
ipsec.1
).GatewayType
public void setType(java.lang.String type)
ipsec.1
).
Constraints:
Allowed Values: ipsec.1
type
- The type of VPN connection that this customer gateway supports
(ipsec.1
).GatewayType
public CreateCustomerGatewayRequest withType(java.lang.String type)
ipsec.1
).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ipsec.1
type
- The type of VPN connection that this customer gateway supports
(ipsec.1
).GatewayType
public void setType(GatewayType type)
ipsec.1
).
Constraints:
Allowed Values: ipsec.1
type
- The type of VPN connection that this customer gateway supports
(ipsec.1
).GatewayType
public CreateCustomerGatewayRequest withType(GatewayType type)
ipsec.1
).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ipsec.1
type
- The type of VPN connection that this customer gateway supports
(ipsec.1
).GatewayType
public java.lang.String getPublicIp()
public void setPublicIp(java.lang.String publicIp)
publicIp
- The Internet-routable IP address for the customer gateway's outside
interface. The address must be static.public CreateCustomerGatewayRequest withPublicIp(java.lang.String publicIp)
Returns a reference to this object so that method calls can be chained together.
publicIp
- The Internet-routable IP address for the customer gateway's outside
interface. The address must be static.public java.lang.Integer getBgpAsn()
Default: 65000
Default: 65000
public void setBgpAsn(java.lang.Integer bgpAsn)
Default: 65000
bgpAsn
- For devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
public CreateCustomerGatewayRequest withBgpAsn(java.lang.Integer bgpAsn)
Default: 65000
Returns a reference to this object so that method calls can be chained together.
bgpAsn
- For devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
public Request<CreateCustomerGatewayRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateCustomerGatewayRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.