@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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, if applicable.
|
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, if applicable.
|
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, if applicable.
|
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 void setVpnGatewayId(String vpnGatewayId)
The ID of the virtual private gateway.
vpnGatewayId - The ID of the virtual private gateway.public String getVpnGatewayId()
The ID of the virtual private gateway.
public VpnGateway withVpnGatewayId(String vpnGatewayId)
The ID of the virtual private gateway.
vpnGatewayId - The ID of the virtual private gateway.public void setState(String state)
The current state of the virtual private gateway.
state - The current state of the virtual private gateway.VpnStatepublic String getState()
The current state of the virtual private gateway.
VpnStatepublic VpnGateway withState(String state)
The current state of the virtual private gateway.
state - The current state of the virtual private gateway.VpnStatepublic void setState(VpnState state)
The current state of the virtual private gateway.
state - The current state of the virtual private gateway.VpnStatepublic VpnGateway withState(VpnState state)
The current state of the virtual private gateway.
state - The current state of the virtual private gateway.VpnStatepublic void setType(String type)
The type of VPN connection the virtual private gateway supports.
type - The type of VPN connection the virtual private gateway supports.GatewayTypepublic String getType()
The type of VPN connection the virtual private gateway supports.
GatewayTypepublic VpnGateway withType(String type)
The type of VPN connection the virtual private gateway supports.
type - The type of VPN connection the virtual private gateway supports.GatewayTypepublic void setType(GatewayType type)
The type of VPN connection the virtual private gateway supports.
type - The type of VPN connection the virtual private gateway supports.GatewayTypepublic VpnGateway withType(GatewayType type)
The type of VPN connection the virtual private gateway supports.
type - The type of VPN connection the virtual private gateway supports.GatewayTypepublic void setAvailabilityZone(String availabilityZone)
The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.
availabilityZone - The Availability Zone where the virtual private gateway was created, if applicable. This field may be
empty or not returned.public String getAvailabilityZone()
The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.
public VpnGateway withAvailabilityZone(String availabilityZone)
The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.
availabilityZone - The Availability Zone where the virtual private gateway was created, if applicable. This field may be
empty or not returned.public List<VpcAttachment> getVpcAttachments()
Any VPCs attached to the virtual private gateway.
public void setVpcAttachments(Collection<VpcAttachment> vpcAttachments)
Any VPCs attached to the virtual private gateway.
vpcAttachments - Any VPCs attached to the virtual private gateway.public VpnGateway withVpcAttachments(VpcAttachment... vpcAttachments)
Any VPCs attached to the virtual private gateway.
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.
vpcAttachments - Any VPCs attached to the virtual private gateway.public VpnGateway withVpcAttachments(Collection<VpcAttachment> vpcAttachments)
Any VPCs attached to the virtual private gateway.
vpcAttachments - Any VPCs attached to the virtual private gateway.public List<Tag> getTags()
Any tags assigned to the virtual private gateway.
public void setTags(Collection<Tag> tags)
Any tags assigned to the virtual private gateway.
tags - Any tags assigned to the virtual private gateway.public VpnGateway withTags(Tag... tags)
Any tags assigned to the virtual private gateway.
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.
tags - Any tags assigned to the virtual private gateway.public VpnGateway withTags(Collection<Tag> tags)
Any tags assigned to the virtual private gateway.
tags - Any tags assigned to the virtual private gateway.public String toString()
toString in class ObjectObject.toString()public VpnGateway clone()
Copyright © 2017. All rights reserved.