com.amazonaws.services.ec2.model
Class CreateVpnGatewayRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.CreateVpnGatewayRequest
All Implemented Interfaces:
DryRunSupportedRequest<CreateVpnGatewayRequest>, java.io.Serializable

public class CreateVpnGatewayRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<CreateVpnGatewayRequest>

Container for the parameters to the 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 .

See Also:
AmazonEC2.createVpnGateway(CreateVpnGatewayRequest), Serialized Form

Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateVpnGatewayRequest

public CreateVpnGatewayRequest()
Default constructor for a new CreateVpnGatewayRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


CreateVpnGatewayRequest

public CreateVpnGatewayRequest(java.lang.String type)
Constructs a new CreateVpnGatewayRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
type - The type of VPN connection this virtual private gateway supports.

CreateVpnGatewayRequest

public CreateVpnGatewayRequest(GatewayType type)
Constructs a new CreateVpnGatewayRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
type - The type of VPN connection this virtual private gateway supports.
Method Detail

getType

public java.lang.String getType()
The type of VPN connection this virtual private gateway supports.

Constraints:
Allowed Values: ipsec.1

Returns:
The type of VPN connection this virtual private gateway supports.
See Also:
GatewayType

setType

public void setType(java.lang.String type)
The type of VPN connection this virtual private gateway supports.

Constraints:
Allowed Values: ipsec.1

Parameters:
type - The type of VPN connection this virtual private gateway supports.
See Also:
GatewayType

withType

public CreateVpnGatewayRequest withType(java.lang.String type)
The type of VPN connection this virtual private gateway supports.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: ipsec.1

Parameters:
type - The type of VPN connection this virtual private gateway supports.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
GatewayType

setType

public void setType(GatewayType type)
The type of VPN connection this virtual private gateway supports.

Constraints:
Allowed Values: ipsec.1

Parameters:
type - The type of VPN connection this virtual private gateway supports.
See Also:
GatewayType

withType

public CreateVpnGatewayRequest withType(GatewayType type)
The type of VPN connection this virtual private gateway supports.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: ipsec.1

Parameters:
type - The type of VPN connection this virtual private gateway supports.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
GatewayType

getAvailabilityZone

public java.lang.String getAvailabilityZone()
The Availability Zone for the virtual private gateway.

Returns:
The Availability Zone for the virtual private gateway.

setAvailabilityZone

public void setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the virtual private gateway.

Parameters:
availabilityZone - The Availability Zone for the virtual private gateway.

withAvailabilityZone

public CreateVpnGatewayRequest withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the virtual private gateway.

Returns a reference to this object so that method calls can be chained together.

Parameters:
availabilityZone - The Availability Zone for the virtual private gateway.
Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<CreateVpnGatewayRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<CreateVpnGatewayRequest>

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.