public class CreateCustomerGatewayRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<CreateCustomerGatewayRequest>
CreateCustomerGateway operation
.
Provides information to AWS about your customer gateway device. The customer gateway is the appliance at your end of the VPN connection (compared to the VPN gateway, which is the device at the AWS side of the VPN connection). You can have a single active customer gateway per AWS account (active means that you've created a VPN connection to use with the customer gateway). AWS might delete any customer gateway that you create with this operation if you leave it inactive for an extended period of time.
You must provide the Internet-routable IP address of the customer gateway's external interface. The IP address must be static.
You must also provide the device's Border Gateway Protocol (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). For more information about ASNs, go to http://en.wikipedia.org/wiki/Autonomous_system_%28Internet%29 .
Constructor and Description |
---|
CreateCustomerGatewayRequest()
Default constructor for a new 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 |
---|---|
boolean |
equals(Object obj) |
Integer |
getBgpAsn()
The customer gateway's Border Gateway Protocol (BGP) Autonomous System
Number (ASN).
|
Request<CreateCustomerGatewayRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getPublicIp()
The Internet-routable IP address for the customer gateway's outside
interface.
|
String |
getType()
The type of VPN connection this customer gateway supports.
|
int |
hashCode() |
void |
setBgpAsn(Integer bgpAsn)
The customer gateway's Border Gateway Protocol (BGP) Autonomous System
Number (ASN).
|
void |
setPublicIp(String publicIp)
The Internet-routable IP address for the customer gateway's outside
interface.
|
void |
setType(GatewayType type)
The type of VPN connection this customer gateway supports.
|
void |
setType(String type)
The type of VPN connection this customer gateway supports.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateCustomerGatewayRequest |
withBgpAsn(Integer bgpAsn)
The customer gateway's Border Gateway Protocol (BGP) Autonomous System
Number (ASN).
|
CreateCustomerGatewayRequest |
withPublicIp(String publicIp)
The Internet-routable IP address for the customer gateway's outside
interface.
|
CreateCustomerGatewayRequest |
withType(GatewayType type)
The type of VPN connection this customer gateway supports.
|
CreateCustomerGatewayRequest |
withType(String type)
The type of VPN connection this customer gateway supports.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public CreateCustomerGatewayRequest()
public CreateCustomerGatewayRequest(String type, String publicIp, Integer bgpAsn)
type
- The type of VPN connection this customer gateway supports.publicIp
- The Internet-routable IP address for the customer
gateway's outside interface. The address must be staticbgpAsn
- The customer gateway's Border Gateway Protocol (BGP)
Autonomous System Number (ASN).public CreateCustomerGatewayRequest(GatewayType type, String publicIp, Integer bgpAsn)
type
- The type of VPN connection this customer gateway supports.publicIp
- The Internet-routable IP address for the customer
gateway's outside interface. The address must be staticbgpAsn
- The customer gateway's Border Gateway Protocol (BGP)
Autonomous System Number (ASN).public String getType()
Constraints:
Allowed Values: ipsec.1
GatewayType
public void setType(String type)
Constraints:
Allowed Values: ipsec.1
type
- The type of VPN connection this customer gateway supports.GatewayType
public CreateCustomerGatewayRequest withType(String type)
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 this customer gateway supports.GatewayType
public void setType(GatewayType type)
Constraints:
Allowed Values: ipsec.1
type
- The type of VPN connection this customer gateway supports.GatewayType
public CreateCustomerGatewayRequest withType(GatewayType type)
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 this customer gateway supports.GatewayType
public String getPublicIp()
public void setPublicIp(String publicIp)
publicIp
- The Internet-routable IP address for the customer gateway's outside
interface. The address must be staticpublic CreateCustomerGatewayRequest withPublicIp(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 staticpublic Integer getBgpAsn()
public void setBgpAsn(Integer bgpAsn)
bgpAsn
- The customer gateway's Border Gateway Protocol (BGP) Autonomous System
Number (ASN).public CreateCustomerGatewayRequest withBgpAsn(Integer bgpAsn)
Returns a reference to this object so that method calls can be chained together.
bgpAsn
- The customer gateway's Border Gateway Protocol (BGP) Autonomous System
Number (ASN).public Request<CreateCustomerGatewayRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateCustomerGatewayRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.