|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.CreateCustomerGatewayRequest
public class CreateCustomerGatewayRequest
Container for the parameters to the 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 can't 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 .
AmazonEC2.createCustomerGateway(CreateCustomerGatewayRequest)
,
Serialized FormConstructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
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. |
void |
setType(java.lang.String type)
The type of VPN connection that this customer gateway supports. |
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. |
CreateCustomerGatewayRequest |
withType(java.lang.String type)
The type of VPN connection that this customer gateway supports. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.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.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
Method Detail |
---|
public java.lang.String getType()
Constraints:
Allowed Values: ipsec.1
GatewayType
public void setType(java.lang.String type)
Constraints:
Allowed Values: ipsec.1
type
- The type of VPN connection that this customer gateway supports.GatewayType
public CreateCustomerGatewayRequest withType(java.lang.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 that this customer gateway supports.
GatewayType
public void setType(GatewayType type)
Constraints:
Allowed Values: ipsec.1
type
- The type of VPN connection that 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 that this customer gateway supports.
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
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |