public class VpnGateway
extends java.lang.Object
implements java.io.Serializable
Describes a virtual private gateway.
| Constructor and Description |
|---|
VpnGateway() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAvailabilityZone()
The Availability Zone where the virtual private gateway was created,
if applicable.
|
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,
if applicable.
|
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,
if applicable.
|
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.
|
public java.lang.String getVpnGatewayId()
public void setVpnGatewayId(java.lang.String vpnGatewayId)
vpnGatewayId - The ID of the virtual private gateway.public VpnGateway withVpnGatewayId(java.lang.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 java.lang.String getState()
Constraints:
Allowed Values: pending, available, deleting, deleted
VpnStatepublic void setState(java.lang.String state)
Constraints:
Allowed Values: pending, available, deleting, deleted
state - The current state of the virtual private gateway.VpnStatepublic VpnGateway withState(java.lang.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 java.lang.String getType()
Constraints:
Allowed Values: ipsec.1
GatewayTypepublic void setType(java.lang.String type)
Constraints:
Allowed Values: ipsec.1
type - The type of VPN connection the virtual private gateway supports.GatewayTypepublic VpnGateway withType(java.lang.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 java.lang.String getAvailabilityZone()
public void setAvailabilityZone(java.lang.String availabilityZone)
availabilityZone - The Availability Zone where the virtual private gateway was created,
if applicable. This field may be empty or not returned.public VpnGateway withAvailabilityZone(java.lang.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,
if applicable. This field may be empty or not returned.public java.util.List<VpcAttachment> getVpcAttachments()
public void setVpcAttachments(java.util.Collection<VpcAttachment> vpcAttachments)
vpcAttachments - Any VPCs attached to the virtual private gateway.public VpnGateway withVpcAttachments(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 VpnGateway withVpcAttachments(java.util.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 java.util.List<Tag> getTags()
public void setTags(java.util.Collection<Tag> tags)
tags - Any tags assigned to the virtual private gateway.public VpnGateway withTags(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 VpnGateway withTags(java.util.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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.