public class CreateVpnConnectionRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<CreateVpnConnectionRequest>
Contains the parameters for CreateVpnConnection.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
customerGatewayId
The ID of the customer gateway.
|
private VpnConnectionOptionsSpecification |
options
Indicates whether the VPN connection requires static routes.
|
private java.lang.String |
type
The type of VPN connection (
ipsec.1 ). |
private java.lang.String |
vpnGatewayId
The ID of the virtual private gateway.
|
NOOP
Constructor and Description |
---|
CreateVpnConnectionRequest()
Default constructor for CreateVpnConnectionRequest object.
|
CreateVpnConnectionRequest(java.lang.String type,
java.lang.String customerGatewayId,
java.lang.String vpnGatewayId)
Constructs a new CreateVpnConnectionRequest object.
|
Modifier and Type | Method and Description |
---|---|
CreateVpnConnectionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.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.
|
java.lang.String |
getType()
The type of VPN connection (
ipsec.1 ). |
java.lang.String |
getVpnGatewayId()
The ID of the virtual private gateway.
|
int |
hashCode() |
void |
setCustomerGatewayId(java.lang.String customerGatewayId)
The ID of the customer gateway.
|
void |
setOptions(VpnConnectionOptionsSpecification options)
Indicates whether the VPN connection requires static routes.
|
void |
setType(java.lang.String type)
The type of VPN connection (
ipsec.1 ). |
void |
setVpnGatewayId(java.lang.String vpnGatewayId)
The ID of the virtual private gateway.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateVpnConnectionRequest |
withCustomerGatewayId(java.lang.String customerGatewayId)
The ID of the customer gateway.
|
CreateVpnConnectionRequest |
withOptions(VpnConnectionOptionsSpecification options)
Indicates whether the VPN connection requires static routes.
|
CreateVpnConnectionRequest |
withType(java.lang.String type)
The type of VPN connection (
ipsec.1 ). |
CreateVpnConnectionRequest |
withVpnGatewayId(java.lang.String vpnGatewayId)
The ID of the virtual private gateway.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String type
The type of VPN connection (ipsec.1
).
private java.lang.String customerGatewayId
The ID of the customer gateway.
private java.lang.String vpnGatewayId
The ID of the virtual private gateway.
private VpnConnectionOptionsSpecification 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()
public CreateVpnConnectionRequest(java.lang.String type, java.lang.String customerGatewayId, java.lang.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 void setType(java.lang.String type)
The type of VPN connection (ipsec.1
).
type
- The type of VPN connection (ipsec.1
).public java.lang.String getType()
The type of VPN connection (ipsec.1
).
ipsec.1
).public CreateVpnConnectionRequest withType(java.lang.String type)
The type of VPN connection (ipsec.1
).
type
- The type of VPN connection (ipsec.1
).public void setCustomerGatewayId(java.lang.String customerGatewayId)
The ID of the customer gateway.
customerGatewayId
- The ID of the customer gateway.public java.lang.String getCustomerGatewayId()
The ID of the customer gateway.
public CreateVpnConnectionRequest withCustomerGatewayId(java.lang.String customerGatewayId)
The ID of the customer gateway.
customerGatewayId
- The ID of the customer gateway.public void setVpnGatewayId(java.lang.String vpnGatewayId)
The ID of the virtual private gateway.
vpnGatewayId
- The ID of the virtual private gateway.public java.lang.String getVpnGatewayId()
The ID of the virtual private gateway.
public CreateVpnConnectionRequest withVpnGatewayId(java.lang.String vpnGatewayId)
The ID of the virtual private gateway.
vpnGatewayId
- The ID of the virtual private gateway.public void setOptions(VpnConnectionOptionsSpecification 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
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 VpnConnectionOptionsSpecification getOptions()
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
true
.
Default: false
public CreateVpnConnectionRequest withOptions(VpnConnectionOptionsSpecification 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
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateVpnConnectionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()