Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class VpnGateway

java.lang.Object
  extended by com.amazonaws.services.ec2.model.VpnGateway
All Implemented Interfaces:
Serializable

public class VpnGateway
extends Object
implements Serializable

The VpnGateway data type.

See Also:
Serialized Form

Constructor Summary
VpnGateway()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAvailabilityZone()
          Specifies the Availability Zone where the VPN gateway was created.
 String getState()
          Describes the current state of the VPN gateway.
 List<Tag> getTags()
          A list of tags for the VpnGateway.
 String getType()
          Specifies the type of VPN connection the VPN gateway supports.
 List<VpcAttachment> getVpcAttachments()
          Contains information about the VPCs attached to the VPN gateway.
 String getVpnGatewayId()
          Specifies the ID of the VPN gateway.
 int hashCode()
           
 void setAvailabilityZone(String availabilityZone)
          Specifies the Availability Zone where the VPN gateway was created.
 void setState(String state)
          Describes the current state of the VPN gateway.
 void setTags(Collection<Tag> tags)
          A list of tags for the VpnGateway.
 void setType(String type)
          Specifies the type of VPN connection the VPN gateway supports.
 void setVpcAttachments(Collection<VpcAttachment> vpcAttachments)
          Contains information about the VPCs attached to the VPN gateway.
 void setVpnGatewayId(String vpnGatewayId)
          Specifies the ID of the VPN gateway.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 VpnGateway withAvailabilityZone(String availabilityZone)
          Specifies the Availability Zone where the VPN gateway was created.
 VpnGateway withState(String state)
          Describes the current state of the VPN gateway.
 VpnGateway withTags(Collection<Tag> tags)
          A list of tags for the VpnGateway.
 VpnGateway withTags(Tag... tags)
          A list of tags for the VpnGateway.
 VpnGateway withType(String type)
          Specifies the type of VPN connection the VPN gateway supports.
 VpnGateway withVpcAttachments(Collection<VpcAttachment> vpcAttachments)
          Contains information about the VPCs attached to the VPN gateway.
 VpnGateway withVpcAttachments(VpcAttachment... vpcAttachments)
          Contains information about the VPCs attached to the VPN gateway.
 VpnGateway withVpnGatewayId(String vpnGatewayId)
          Specifies the ID of the VPN gateway.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VpnGateway

public VpnGateway()
Method Detail

getVpnGatewayId

public String getVpnGatewayId()
Specifies the ID of the VPN gateway.

Returns:
Specifies the ID of the VPN gateway.

setVpnGatewayId

public void setVpnGatewayId(String vpnGatewayId)
Specifies the ID of the VPN gateway.

Parameters:
vpnGatewayId - Specifies the ID of the VPN gateway.

withVpnGatewayId

public VpnGateway withVpnGatewayId(String vpnGatewayId)
Specifies the ID of the VPN gateway.

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

Parameters:
vpnGatewayId - Specifies the ID of the VPN gateway.
Returns:
A reference to this updated object so that method calls can be chained together.

getState

public String getState()
Describes the current state of the VPN gateway. Valid values are pending, available, deleting, and deleted.

Returns:
Describes the current state of the VPN gateway. Valid values are pending, available, deleting, and deleted.

setState

public void setState(String state)
Describes the current state of the VPN gateway. Valid values are pending, available, deleting, and deleted.

Parameters:
state - Describes the current state of the VPN gateway. Valid values are pending, available, deleting, and deleted.

withState

public VpnGateway withState(String state)
Describes the current state of the VPN gateway. Valid values are pending, available, deleting, and deleted.

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

Parameters:
state - Describes the current state of the VPN gateway. Valid values are pending, available, deleting, and deleted.
Returns:
A reference to this updated object so that method calls can be chained together.

getType

public String getType()
Specifies the type of VPN connection the VPN gateway supports.

Returns:
Specifies the type of VPN connection the VPN gateway supports.

setType

public void setType(String type)
Specifies the type of VPN connection the VPN gateway supports.

Parameters:
type - Specifies the type of VPN connection the VPN gateway supports.

withType

public VpnGateway withType(String type)
Specifies the type of VPN connection the VPN gateway supports.

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

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

getAvailabilityZone

public String getAvailabilityZone()
Specifies the Availability Zone where the VPN gateway was created.

Returns:
Specifies the Availability Zone where the VPN gateway was created.

setAvailabilityZone

public void setAvailabilityZone(String availabilityZone)
Specifies the Availability Zone where the VPN gateway was created.

Parameters:
availabilityZone - Specifies the Availability Zone where the VPN gateway was created.

withAvailabilityZone

public VpnGateway withAvailabilityZone(String availabilityZone)
Specifies the Availability Zone where the VPN gateway was created.

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

Parameters:
availabilityZone - Specifies the Availability Zone where the VPN gateway was created.
Returns:
A reference to this updated object so that method calls can be chained together.

getVpcAttachments

public List<VpcAttachment> getVpcAttachments()
Contains information about the VPCs attached to the VPN gateway.

Returns:
Contains information about the VPCs attached to the VPN gateway.

setVpcAttachments

public void setVpcAttachments(Collection<VpcAttachment> vpcAttachments)
Contains information about the VPCs attached to the VPN gateway.

Parameters:
vpcAttachments - Contains information about the VPCs attached to the VPN gateway.

withVpcAttachments

public VpnGateway withVpcAttachments(VpcAttachment... vpcAttachments)
Contains information about the VPCs attached to the VPN gateway.

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

Parameters:
vpcAttachments - Contains information about the VPCs attached to the VPN gateway.
Returns:
A reference to this updated object so that method calls can be chained together.

withVpcAttachments

public VpnGateway withVpcAttachments(Collection<VpcAttachment> vpcAttachments)
Contains information about the VPCs attached to the VPN gateway.

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

Parameters:
vpcAttachments - Contains information about the VPCs attached to the VPN gateway.
Returns:
A reference to this updated object so that method calls can be chained together.

getTags

public List<Tag> getTags()
A list of tags for the VpnGateway.

Returns:
A list of tags for the VpnGateway.

setTags

public void setTags(Collection<Tag> tags)
A list of tags for the VpnGateway.

Parameters:
tags - A list of tags for the VpnGateway.

withTags

public VpnGateway withTags(Tag... tags)
A list of tags for the VpnGateway.

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

Parameters:
tags - A list of tags for the VpnGateway.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public VpnGateway withTags(Collection<Tag> tags)
A list of tags for the VpnGateway.

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

Parameters:
tags - A list of tags for the VpnGateway.
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.