Did this page help you?

   Yes   No   Tell us about it...

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:
Serializable

public class CreateVpnGatewayRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CreateVpnGateway operation.

Creates a new VPN gateway. A VPN gateway is the VPC-side endpoint for your VPN connection. You can create a VPN gateway before creating the VPC itself.

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

Constructor Summary
CreateVpnGatewayRequest()
          Default constructor for a new CreateVpnGatewayRequest object.
CreateVpnGatewayRequest(String type)
          Constructs a new CreateVpnGatewayRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getAvailabilityZone()
          The Availability Zone in which to create the VPN gateway.
 String getType()
          The type of VPN connection this VPN gateway supports.
 int hashCode()
           
 void setAvailabilityZone(String availabilityZone)
          The Availability Zone in which to create the VPN gateway.
 void setType(String type)
          The type of VPN connection this VPN gateway supports.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateVpnGatewayRequest withAvailabilityZone(String availabilityZone)
          The Availability Zone in which to create the VPN gateway.
 CreateVpnGatewayRequest withType(String type)
          The type of VPN connection this VPN gateway supports.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
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(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 VPN gateway supports.
Method Detail

getType

public String getType()
The type of VPN connection this VPN gateway supports.

Returns:
The type of VPN connection this VPN gateway supports.

setType

public void setType(String type)
The type of VPN connection this VPN gateway supports.

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

withType

public CreateVpnGatewayRequest withType(String type)
The type of VPN connection this VPN gateway supports.

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

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

getAvailabilityZone

public String getAvailabilityZone()
The Availability Zone in which to create the VPN gateway.

Returns:
The Availability Zone in which to create the VPN gateway.

setAvailabilityZone

public void setAvailabilityZone(String availabilityZone)
The Availability Zone in which to create the VPN gateway.

Parameters:
availabilityZone - The Availability Zone in which to create the VPN gateway.

withAvailabilityZone

public CreateVpnGatewayRequest withAvailabilityZone(String availabilityZone)
The Availability Zone in which to create the VPN gateway.

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

Parameters:
availabilityZone - The Availability Zone in which to create the VPN gateway.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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