public class CreateVpnGatewayRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<CreateVpnGatewayRequest>
CreateVpnGateway operation.
Creates a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself.
For more information about virtual private gateways, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide .
| Constructor and Description |
|---|
CreateVpnGatewayRequest()
Default constructor for a new CreateVpnGatewayRequest object.
|
CreateVpnGatewayRequest(GatewayType type)
Constructs a new CreateVpnGatewayRequest object.
|
CreateVpnGatewayRequest(java.lang.String type)
Constructs a new CreateVpnGatewayRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAvailabilityZone()
The Availability Zone for the virtual private gateway.
|
Request<CreateVpnGatewayRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getType()
The type of VPN connection this virtual private gateway supports.
|
int |
hashCode() |
void |
setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the virtual private gateway.
|
void |
setType(GatewayType type)
The type of VPN connection this virtual private gateway supports.
|
void |
setType(java.lang.String type)
The type of VPN connection this virtual private gateway supports.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateVpnGatewayRequest |
withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the virtual private gateway.
|
CreateVpnGatewayRequest |
withType(GatewayType type)
The type of VPN connection this virtual private gateway supports.
|
CreateVpnGatewayRequest |
withType(java.lang.String type)
The type of VPN connection this virtual private gateway supports.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic CreateVpnGatewayRequest()
public CreateVpnGatewayRequest(java.lang.String type)
type - The type of VPN connection this virtual private gateway
supports.public CreateVpnGatewayRequest(GatewayType type)
type - The type of VPN connection this virtual private gateway
supports.public java.lang.String getType()
Constraints:
Allowed Values: ipsec.1
GatewayTypepublic void setType(java.lang.String type)
Constraints:
Allowed Values: ipsec.1
type - The type of VPN connection this virtual private gateway supports.GatewayTypepublic CreateVpnGatewayRequest 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 this virtual private gateway supports.GatewayTypepublic void setType(GatewayType type)
Constraints:
Allowed Values: ipsec.1
type - The type of VPN connection this virtual private gateway supports.GatewayTypepublic CreateVpnGatewayRequest 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 virtual private gateway supports.GatewayTypepublic java.lang.String getAvailabilityZone()
public void setAvailabilityZone(java.lang.String availabilityZone)
availabilityZone - The Availability Zone for the virtual private gateway.public CreateVpnGatewayRequest withAvailabilityZone(java.lang.String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone - The Availability Zone for the virtual private gateway.public Request<CreateVpnGatewayRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<CreateVpnGatewayRequest>public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.