public class VpnGateway
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a virtual private gateway.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
availabilityZone
The Availability Zone where the virtual private gateway was created, if
applicable.
|
private java.lang.String |
state
The current state of the virtual private gateway.
|
private SdkInternalList<Tag> |
tags
Any tags assigned to the virtual private gateway.
|
private java.lang.String |
type
The type of VPN connection the virtual private gateway supports.
|
private SdkInternalList<VpcAttachment> |
vpcAttachments
Any VPCs attached to the virtual private gateway.
|
private java.lang.String |
vpnGatewayId
The ID of the virtual private gateway.
|
Constructor and Description |
---|
VpnGateway() |
Modifier and Type | Method and Description |
---|---|
VpnGateway |
clone() |
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.
|
private java.lang.String vpnGatewayId
The ID of the virtual private gateway.
private java.lang.String state
The current state of the virtual private gateway.
private java.lang.String type
The type of VPN connection the virtual private gateway supports.
private java.lang.String availabilityZone
The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.
private SdkInternalList<VpcAttachment> vpcAttachments
Any VPCs attached to the virtual private gateway.
private SdkInternalList<Tag> tags
Any tags assigned to the virtual private gateway.
public void setVpnGatewayId(java.lang.String vpnGatewayId)
The ID of the virtual private gateway.
vpnGatewayId
- The ID of the virtual private gateway.public java.lang.String getVpnGatewayId()
The ID of the virtual private gateway.
public VpnGateway withVpnGatewayId(java.lang.String vpnGatewayId)
The ID of the virtual private gateway.
vpnGatewayId
- The ID of the virtual private gateway.public void setState(java.lang.String state)
The current state of the virtual private gateway.
state
- The current state of the virtual private gateway.VpnState
public java.lang.String getState()
The current state of the virtual private gateway.
VpnState
public VpnGateway withState(java.lang.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(java.lang.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 java.lang.String getType()
The type of VPN connection the virtual private gateway supports.
GatewayType
public VpnGateway withType(java.lang.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 void setAvailabilityZone(java.lang.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 java.lang.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(java.lang.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 java.util.List<VpcAttachment> getVpcAttachments()
Any VPCs attached to the virtual private gateway.
public void setVpcAttachments(java.util.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(java.util.Collection<VpcAttachment> vpcAttachments)
Any VPCs attached to the virtual private gateway.
vpcAttachments
- Any VPCs attached to the virtual private gateway.public java.util.List<Tag> getTags()
Any tags assigned to the virtual private gateway.
public void setTags(java.util.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(java.util.Collection<Tag> tags)
Any tags assigned to the virtual private gateway.
tags
- Any tags assigned to the virtual private gateway.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public VpnGateway clone()
clone
in class java.lang.Object