@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateVpnConnectionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateVpnConnectionRequest>
Contains the parameters for CreateVpnConnection.
NOOP| Constructor and Description |
|---|
CreateVpnConnectionRequest()
Default constructor for 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 object for all fields except the handler context.
|
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()
The options for the VPN connection.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the VPN connection.
|
String |
getTransitGatewayId()
The ID of the transit gateway.
|
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)
The options for the VPN connection.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the VPN connection.
|
void |
setTransitGatewayId(String transitGatewayId)
The ID of the transit gateway.
|
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.
|
CreateVpnConnectionRequest |
withCustomerGatewayId(String customerGatewayId)
The ID of the customer gateway.
|
CreateVpnConnectionRequest |
withOptions(VpnConnectionOptionsSpecification options)
The options for the VPN connection.
|
CreateVpnConnectionRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the VPN connection.
|
CreateVpnConnectionRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the VPN connection.
|
CreateVpnConnectionRequest |
withTransitGatewayId(String transitGatewayId)
The ID of the transit gateway.
|
CreateVpnConnectionRequest |
withType(String type)
The type of VPN connection (
ipsec.1). |
CreateVpnConnectionRequest |
withVpnGatewayId(String vpnGatewayId)
The ID of the virtual private gateway.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic 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. If you specify a virtual private gateway, you cannot specify a
transit gateway.public void setCustomerGatewayId(String customerGatewayId)
The ID of the customer gateway.
customerGatewayId - The ID of the customer gateway.public String getCustomerGatewayId()
The ID of the customer gateway.
public CreateVpnConnectionRequest withCustomerGatewayId(String customerGatewayId)
The ID of the customer gateway.
customerGatewayId - The ID of the customer gateway.public void setType(String type)
The type of VPN connection (ipsec.1).
type - The type of VPN connection (ipsec.1).public String getType()
The type of VPN connection (ipsec.1).
ipsec.1).public CreateVpnConnectionRequest withType(String type)
The type of VPN connection (ipsec.1).
type - The type of VPN connection (ipsec.1).public void setVpnGatewayId(String vpnGatewayId)
The ID of the virtual private gateway. If you specify a virtual private gateway, you cannot specify a transit gateway.
vpnGatewayId - The ID of the virtual private gateway. If you specify a virtual private gateway, you cannot specify a
transit gateway.public String getVpnGatewayId()
The ID of the virtual private gateway. If you specify a virtual private gateway, you cannot specify a transit gateway.
public CreateVpnConnectionRequest withVpnGatewayId(String vpnGatewayId)
The ID of the virtual private gateway. If you specify a virtual private gateway, you cannot specify a transit gateway.
vpnGatewayId - The ID of the virtual private gateway. If you specify a virtual private gateway, you cannot specify a
transit gateway.public void setTransitGatewayId(String transitGatewayId)
The ID of the transit gateway. If you specify a transit gateway, you cannot specify a virtual private gateway.
transitGatewayId - The ID of the transit gateway. If you specify a transit gateway, you cannot specify a virtual private
gateway.public String getTransitGatewayId()
The ID of the transit gateway. If you specify a transit gateway, you cannot specify a virtual private gateway.
public CreateVpnConnectionRequest withTransitGatewayId(String transitGatewayId)
The ID of the transit gateway. If you specify a transit gateway, you cannot specify a virtual private gateway.
transitGatewayId - The ID of the transit gateway. If you specify a transit gateway, you cannot specify a virtual private
gateway.public void setOptions(VpnConnectionOptionsSpecification options)
The options for the VPN connection.
options - The options for the VPN connection.public VpnConnectionOptionsSpecification getOptions()
The options for the VPN connection.
public CreateVpnConnectionRequest withOptions(VpnConnectionOptionsSpecification options)
The options for the VPN connection.
options - The options for the VPN connection.public List<TagSpecification> getTagSpecifications()
The tags to apply to the VPN connection.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the VPN connection.
tagSpecifications - The tags to apply to the VPN connection.public CreateVpnConnectionRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the VPN connection.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection) or withTagSpecifications(java.util.Collection) if
you want to override the existing values.
tagSpecifications - The tags to apply to the VPN connection.public CreateVpnConnectionRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the VPN connection.
tagSpecifications - The tags to apply to the VPN connection.public Request<CreateVpnConnectionRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<CreateVpnConnectionRequest>public String toString()
toString in class ObjectObject.toString()public CreateVpnConnectionRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()