com.amazonaws.services.ec2.model
Class VpnGateway

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

public class VpnGateway
extends java.lang.Object
implements java.io.Serializable

Describes a virtual private gateway.

See Also:
Serialized Form

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

Constructor Detail

VpnGateway

public VpnGateway()
Method Detail

getVpnGatewayId

public java.lang.String getVpnGatewayId()
The ID of the virtual private gateway.

Returns:
The ID of the virtual private gateway.

setVpnGatewayId

public void setVpnGatewayId(java.lang.String vpnGatewayId)
The ID of the virtual private gateway.

Parameters:
vpnGatewayId - The ID of the virtual private gateway.

withVpnGatewayId

public VpnGateway withVpnGatewayId(java.lang.String vpnGatewayId)
The ID of the virtual private gateway.

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

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

getState

public java.lang.String getState()
The current state of the virtual private gateway.

Constraints:
Allowed Values: pending, available, deleting, deleted

Returns:
The current state of the virtual private gateway.
See Also:
VpnState

setState

public void setState(java.lang.String state)
The current state of the virtual private gateway.

Constraints:
Allowed Values: pending, available, deleting, deleted

Parameters:
state - The current state of the virtual private gateway.
See Also:
VpnState

withState

public VpnGateway withState(java.lang.String state)
The current state of the virtual private gateway.

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

Constraints:
Allowed Values: pending, available, deleting, deleted

Parameters:
state - The current state of the virtual private gateway.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
VpnState

setState

public void setState(VpnState state)
The current state of the virtual private gateway.

Constraints:
Allowed Values: pending, available, deleting, deleted

Parameters:
state - The current state of the virtual private gateway.
See Also:
VpnState

withState

public VpnGateway withState(VpnState state)
The current state of the virtual private gateway.

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

Constraints:
Allowed Values: pending, available, deleting, deleted

Parameters:
state - The current state of the virtual private gateway.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
VpnState

getType

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

Constraints:
Allowed Values: ipsec.1

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

setType

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

Constraints:
Allowed Values: ipsec.1

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

withType

public VpnGateway withType(java.lang.String type)
The type of VPN connection the 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 the 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 the virtual private gateway supports.

Constraints:
Allowed Values: ipsec.1

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

withType

public VpnGateway withType(GatewayType type)
The type of VPN connection the 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 the 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 where the virtual private gateway was created.

Returns:
The Availability Zone where the virtual private gateway was created.

setAvailabilityZone

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

Parameters:
availabilityZone - The Availability Zone where the virtual private gateway was created.

withAvailabilityZone

public VpnGateway withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone where the virtual private gateway was created.

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

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

getVpcAttachments

public java.util.List<VpcAttachment> getVpcAttachments()
Any VPCs attached to the virtual private gateway.

Returns:
Any VPCs attached to the virtual private gateway.

setVpcAttachments

public void setVpcAttachments(java.util.Collection<VpcAttachment> vpcAttachments)
Any VPCs attached to the virtual private gateway.

Parameters:
vpcAttachments - Any VPCs attached to the virtual private gateway.

withVpcAttachments

public VpnGateway withVpcAttachments(VpcAttachment... vpcAttachments)
Any VPCs attached to the virtual private gateway.

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

Parameters:
vpcAttachments - Any VPCs attached to the virtual private gateway.
Returns:
A reference to this updated object so that method calls can be chained together.

withVpcAttachments

public VpnGateway withVpcAttachments(java.util.Collection<VpcAttachment> vpcAttachments)
Any VPCs attached to the virtual private gateway.

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

Parameters:
vpcAttachments - Any VPCs attached to the virtual private gateway.
Returns:
A reference to this updated object so that method calls can be chained together.

getTags

public java.util.List<Tag> getTags()
Any tags assigned to the virtual private gateway.

Returns:
Any tags assigned to the virtual private gateway.

setTags

public void setTags(java.util.Collection<Tag> tags)
Any tags assigned to the virtual private gateway.

Parameters:
tags - Any tags assigned to the virtual private gateway.

withTags

public VpnGateway withTags(Tag... tags)
Any tags assigned to the virtual private gateway.

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

Parameters:
tags - Any tags assigned to the virtual private gateway.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public VpnGateway withTags(java.util.Collection<Tag> tags)
Any tags assigned to the virtual private gateway.

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

Parameters:
tags - Any tags assigned to the virtual private gateway.
Returns:
A reference to this updated object so that method calls can be chained together.

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.