@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) |
Long |
getAmazonSideAsn()
The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
|
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 |
setAmazonSideAsn(Long amazonSideAsn)
The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
|
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 |
withAmazonSideAsn(Long amazonSideAsn)
The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
|
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 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 void setState(String state)
The current state of the virtual private gateway.
state
- The current state of the virtual private gateway.VpnState
public String getState()
The current state of the virtual private gateway.
VpnState
public VpnGateway withState(String state)
The current state of the virtual private gateway.
state
- The current state of the virtual private gateway.VpnState
public void setState(VpnState state)
The current state of the virtual private gateway.
state
- The current state of the virtual private gateway.VpnState
public VpnGateway withState(VpnState state)
The current state of the virtual private gateway.
state
- The current state of the virtual private gateway.VpnState
public 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.GatewayType
public String getType()
The type of VPN connection the virtual private gateway supports.
GatewayType
public 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.GatewayType
public 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.GatewayType
public 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.GatewayType
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 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 setAmazonSideAsn(Long amazonSideAsn)
The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
amazonSideAsn
- The private Autonomous System Number (ASN) for the Amazon side of a BGP session.public Long getAmazonSideAsn()
The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
public VpnGateway withAmazonSideAsn(Long amazonSideAsn)
The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
amazonSideAsn
- The private Autonomous System Number (ASN) for the Amazon side of a BGP session.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 Object
Object.toString()
public VpnGateway clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.