public class VpnGateway extends Object implements Serializable
Describes a virtual private gateway.
Constructor and Description |
---|
VpnGateway() |
Modifier and Type | Method and Description |
---|---|
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
VpnState
public void setState(String state)
Constraints:
Allowed Values: pending, available, deleting, deleted
state
- The current state of the virtual private gateway.VpnState
public 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.VpnState
public void setState(VpnState state)
Constraints:
Allowed Values: pending, available, deleting, deleted
state
- The current state of the virtual private gateway.VpnState
public 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.VpnState
public String getType()
Constraints:
Allowed Values: ipsec.1
GatewayType
public void setType(String type)
Constraints:
Allowed Values: ipsec.1
type
- The type of VPN connection the virtual private gateway supports.GatewayType
public 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.GatewayType
public void setType(GatewayType type)
Constraints:
Allowed Values: ipsec.1
type
- The type of VPN connection the virtual private gateway supports.GatewayType
public 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.GatewayType
public 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)
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)
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 Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.