@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateVpnGatewayRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateVpnGatewayRequest>
Contains the parameters for CreateVpnGateway.
NOOP| Constructor and Description |
|---|
CreateVpnGatewayRequest()
Default constructor for CreateVpnGatewayRequest object.
|
CreateVpnGatewayRequest(GatewayType type)
Constructs a new CreateVpnGatewayRequest object.
|
CreateVpnGatewayRequest(String type)
Constructs a new CreateVpnGatewayRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
CreateVpnGatewayRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Long |
getAmazonSideAsn()
A private Autonomous System Number (ASN) for the Amazon side of a BGP session.
|
String |
getAvailabilityZone()
The Availability Zone for the virtual private gateway.
|
Request<CreateVpnGatewayRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the virtual private gateway.
|
String |
getType()
The type of VPN connection this virtual private gateway supports.
|
int |
hashCode() |
void |
setAmazonSideAsn(Long amazonSideAsn)
A private Autonomous System Number (ASN) for the Amazon side of a BGP session.
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone for the virtual private gateway.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the virtual private gateway.
|
void |
setType(GatewayType type)
The type of VPN connection this virtual private gateway supports.
|
void |
setType(String type)
The type of VPN connection this virtual private gateway supports.
|
String |
toString()
Returns a string representation of this object.
|
CreateVpnGatewayRequest |
withAmazonSideAsn(Long amazonSideAsn)
A private Autonomous System Number (ASN) for the Amazon side of a BGP session.
|
CreateVpnGatewayRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone for the virtual private gateway.
|
CreateVpnGatewayRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the virtual private gateway.
|
CreateVpnGatewayRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the virtual private gateway.
|
CreateVpnGatewayRequest |
withType(GatewayType type)
The type of VPN connection this virtual private gateway supports.
|
CreateVpnGatewayRequest |
withType(String type)
The type of VPN connection this virtual private gateway supports.
|
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 CreateVpnGatewayRequest()
public CreateVpnGatewayRequest(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 void setAvailabilityZone(String availabilityZone)
The Availability Zone for the virtual private gateway.
availabilityZone - The Availability Zone for the virtual private gateway.public String getAvailabilityZone()
The Availability Zone for the virtual private gateway.
public CreateVpnGatewayRequest withAvailabilityZone(String availabilityZone)
The Availability Zone for the virtual private gateway.
availabilityZone - The Availability Zone for the virtual private gateway.public void setType(String type)
The type of VPN connection this virtual private gateway supports.
type - The type of VPN connection this virtual private gateway supports.GatewayTypepublic String getType()
The type of VPN connection this virtual private gateway supports.
GatewayTypepublic CreateVpnGatewayRequest withType(String type)
The type of VPN connection this virtual private gateway supports.
type - The type of VPN connection this virtual private gateway supports.GatewayTypepublic void setType(GatewayType type)
The type of VPN connection this virtual private gateway supports.
type - The type of VPN connection this virtual private gateway supports.GatewayTypepublic CreateVpnGatewayRequest withType(GatewayType type)
The type of VPN connection this virtual private gateway supports.
type - The type of VPN connection this virtual private gateway supports.GatewayTypepublic List<TagSpecification> getTagSpecifications()
The tags to apply to the virtual private gateway.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the virtual private gateway.
tagSpecifications - The tags to apply to the virtual private gateway.public CreateVpnGatewayRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the virtual private gateway.
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 virtual private gateway.public CreateVpnGatewayRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the virtual private gateway.
tagSpecifications - The tags to apply to the virtual private gateway.public void setAmazonSideAsn(Long amazonSideAsn)
A private Autonomous System Number (ASN) for the Amazon side of a BGP session. If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range.
Default: 64512
amazonSideAsn - A private Autonomous System Number (ASN) for the Amazon side of a BGP session. If you're using a 16-bit
ASN, it must be in the 64512 to 65534 range. If you're using a 32-bit ASN, it must be in the 4200000000 to
4294967294 range.
Default: 64512
public Long getAmazonSideAsn()
A private Autonomous System Number (ASN) for the Amazon side of a BGP session. If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range.
Default: 64512
Default: 64512
public CreateVpnGatewayRequest withAmazonSideAsn(Long amazonSideAsn)
A private Autonomous System Number (ASN) for the Amazon side of a BGP session. If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range.
Default: 64512
amazonSideAsn - A private Autonomous System Number (ASN) for the Amazon side of a BGP session. If you're using a 16-bit
ASN, it must be in the 64512 to 65534 range. If you're using a 32-bit ASN, it must be in the 4200000000 to
4294967294 range.
Default: 64512
public Request<CreateVpnGatewayRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<CreateVpnGatewayRequest>public String toString()
toString in class ObjectObject.toString()public CreateVpnGatewayRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()