public class CreateVpnConnectionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateVpnConnectionRequest>
CreateVpnConnection operation
.
Creates a VPN connection between an existing virtual private gateway
and a VPN customer gateway. The only supported connection type is
ipsec.1
.
The response includes information that you need to give to your network administrator to configure your customer gateway.
IMPORTANT: We strongly recommend that you use HTTPS when calling this operation because the response contains sensitive cryptographic information for configuring your customer gateway.
If you decide to shut down your VPN connection for any reason and later create a new VPN connection, you must reconfigure your customer gateway with the new information returned from this call.
For more information about VPN connections, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide .
NOOP
Constructor and Description |
---|
CreateVpnConnectionRequest()
Default constructor for a new CreateVpnConnectionRequest object.
|
CreateVpnConnectionRequest(String type,
String customerGatewayId,
String vpnGatewayId)
Constructs a new CreateVpnConnectionRequest object.
|
Modifier and Type | Method and Description |
---|---|
CreateVpnConnectionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getCustomerGatewayId()
The ID of the customer gateway.
|
Request<CreateVpnConnectionRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
VpnConnectionOptionsSpecification |
getOptions()
Indicates whether the VPN connection requires static routes.
|
String |
getType()
The type of VPN connection (
ipsec.1 ). |
String |
getVpnGatewayId()
The ID of the virtual private gateway.
|
int |
hashCode() |
void |
setCustomerGatewayId(String customerGatewayId)
The ID of the customer gateway.
|
void |
setOptions(VpnConnectionOptionsSpecification options)
Indicates whether the VPN connection requires static routes.
|
void |
setType(String type)
The type of VPN connection (
ipsec.1 ). |
void |
setVpnGatewayId(String vpnGatewayId)
The ID of the virtual private gateway.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateVpnConnectionRequest |
withCustomerGatewayId(String customerGatewayId)
The ID of the customer gateway.
|
CreateVpnConnectionRequest |
withOptions(VpnConnectionOptionsSpecification options)
Indicates whether the VPN connection requires static routes.
|
CreateVpnConnectionRequest |
withType(String type)
The type of VPN connection (
ipsec.1 ). |
CreateVpnConnectionRequest |
withVpnGatewayId(String vpnGatewayId)
The ID of the virtual private gateway.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public CreateVpnConnectionRequest()
public CreateVpnConnectionRequest(String type, String customerGatewayId, String vpnGatewayId)
type
- The type of VPN connection (ipsec.1
).customerGatewayId
- The ID of the customer gateway.vpnGatewayId
- The ID of the virtual private gateway.public String getType()
ipsec.1
).ipsec.1
).public void setType(String type)
ipsec.1
).type
- The type of VPN connection (ipsec.1
).public CreateVpnConnectionRequest withType(String type)
ipsec.1
).
Returns a reference to this object so that method calls can be chained together.
type
- The type of VPN connection (ipsec.1
).public String getCustomerGatewayId()
public void setCustomerGatewayId(String customerGatewayId)
customerGatewayId
- The ID of the customer gateway.public CreateVpnConnectionRequest withCustomerGatewayId(String customerGatewayId)
Returns a reference to this object so that method calls can be chained together.
customerGatewayId
- The ID of the customer gateway.public String getVpnGatewayId()
public void setVpnGatewayId(String vpnGatewayId)
vpnGatewayId
- The ID of the virtual private gateway.public CreateVpnConnectionRequest withVpnGatewayId(String vpnGatewayId)
Returns a reference to this object so that method calls can be chained together.
vpnGatewayId
- The ID of the virtual private gateway.public VpnConnectionOptionsSpecification getOptions()
true
. Default: false
true
. Default: false
public void setOptions(VpnConnectionOptionsSpecification options)
true
. Default: false
options
- Indicates whether the VPN connection requires static routes. If you
are creating a VPN connection for a device that does not support BGP,
you must specify true
. Default: false
public CreateVpnConnectionRequest withOptions(VpnConnectionOptionsSpecification options)
true
. Default: false
Returns a reference to this object so that method calls can be chained together.
options
- Indicates whether the VPN connection requires static routes. If you
are creating a VPN connection for a device that does not support BGP,
you must specify true
. Default: false
public Request<CreateVpnConnectionRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateVpnConnectionRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateVpnConnectionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.