public class VpnGateway extends Object implements Serializable, Cloneable
Describes a virtual private gateway.
| Constructor and Description |
|---|
VpnGateway() |
| Modifier and Type | Method and Description |
|---|---|
VpnGateway |
clone() |
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.
|
public String getVpnGatewayId()
public void setVpnGatewayId(String vpnGatewayId)
vpnGatewayId - The ID of the virtual private gateway.public VpnGateway withVpnGatewayId(String vpnGatewayId)
Returns a reference to this object so that method calls can be chained together.
vpnGatewayId - The ID of the virtual private gateway.public String getState()
Constraints:
Allowed Values: pending, available, deleting, deleted
VpnStatepublic void setState(String state)
Constraints:
Allowed Values: pending, available, deleting, deleted
state - The current state of the virtual private gateway.VpnStatepublic VpnGateway withState(String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: pending, available, deleting, deleted
state - The current state of the virtual private gateway.VpnStatepublic void setState(VpnState state)
Constraints:
Allowed Values: pending, available, deleting, deleted
state - The current state of the virtual private gateway.VpnStatepublic VpnGateway withState(VpnState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: pending, available, deleting, deleted
state - The current state of the virtual private gateway.VpnStatepublic String getType()
Constraints:
Allowed Values: ipsec.1
GatewayTypepublic void setType(String type)
Constraints:
Allowed Values: ipsec.1
type - The type of VPN connection the virtual private gateway supports.GatewayTypepublic VpnGateway withType(String type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ipsec.1
type - The type of VPN connection the virtual private gateway supports.GatewayTypepublic void setType(GatewayType type)
Constraints:
Allowed Values: ipsec.1
type - The type of VPN connection the virtual private gateway supports.GatewayTypepublic VpnGateway withType(GatewayType type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ipsec.1
type - The type of VPN connection the virtual private gateway supports.GatewayTypepublic String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone - The Availability Zone where the virtual private gateway was created.public VpnGateway withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone - The Availability Zone where the virtual private gateway was created.public List<VpcAttachment> getVpcAttachments()
public void setVpcAttachments(Collection<VpcAttachment> vpcAttachments)
vpcAttachments - Any VPCs attached to the virtual private gateway.public VpnGateway withVpcAttachments(VpcAttachment... vpcAttachments)
NOTE: This method appends the values to the existing list (if
any). Use setVpcAttachments(java.util.Collection) or withVpcAttachments(java.util.Collection) if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
vpcAttachments - Any VPCs attached to the virtual private gateway.public VpnGateway withVpcAttachments(Collection<VpcAttachment> vpcAttachments)
Returns a reference to this object so that method calls can be chained together.
vpcAttachments - Any VPCs attached to the virtual private gateway.public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
tags - Any tags assigned to the virtual private gateway.public VpnGateway withTags(Tag... tags)
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the existing
values.
Returns a reference to this object so that method calls can be chained together.
tags - Any tags assigned to the virtual private gateway.public VpnGateway withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags - Any tags assigned to the virtual private gateway.public String toString()
toString in class ObjectObject.toString()public VpnGateway clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.