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

Describes a virtual private gateway.

See Also:
Serialized Form

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

Constructor Detail

VpnGateway

public VpnGateway()
Method Detail

getVpnGatewayId

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

Returns:
The ID of the virtual private gateway.

setVpnGatewayId

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

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

withVpnGatewayId

public VpnGateway withVpnGatewayId(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 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(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(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 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(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(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 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(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(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 List<VpcAttachment> getVpcAttachments()
Any VPCs attached to the virtual private gateway.

Returns:
Any VPCs attached to the virtual private gateway.

setVpcAttachments

public void setVpcAttachments(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(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 List<Tag> getTags()
Any tags assigned to the virtual private gateway.

Returns:
Any tags assigned to the virtual private gateway.

setTags

public void setTags(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(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 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 © 2016. All rights reserved.