Class VpnGateway
- java.lang.Object
-
- com.amazonaws.services.ec2.model.VpnGateway
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class VpnGateway extends Object implements Serializable, Cloneable
Describes a virtual private gateway.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VpnGateway()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(VpnState state)
The current state of the virtual private gateway.void
setState(String 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(VpnState state)
The current state of the virtual private gateway.VpnGateway
withState(String state)
The current state of the virtual private gateway.VpnGateway
withTags(Tag... tags)
Any tags assigned to the virtual private gateway.VpnGateway
withTags(Collection<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(VpcAttachment... vpcAttachments)
Any VPCs attached to the virtual private gateway.VpnGateway
withVpcAttachments(Collection<VpcAttachment> vpcAttachments)
Any VPCs attached to the virtual private gateway.VpnGateway
withVpnGatewayId(String vpnGatewayId)
The ID of the virtual private gateway.
-
-
-
Method Detail
-
setVpnGatewayId
public void setVpnGatewayId(String vpnGatewayId)
The ID of the virtual private gateway.
- Parameters:
vpnGatewayId
- The ID of the virtual private gateway.
-
getVpnGatewayId
public String getVpnGatewayId()
The ID of the virtual private gateway.
- Returns:
- The ID of the virtual private gateway.
-
withVpnGatewayId
public VpnGateway withVpnGatewayId(String vpnGatewayId)
The ID of the virtual private gateway.
- Parameters:
vpnGatewayId
- The ID of the virtual private gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
public void setState(String state)
The current state of the virtual private gateway.
- Parameters:
state
- The current state of the virtual private gateway.- See Also:
VpnState
-
getState
public String getState()
The current state of the virtual private gateway.
- Returns:
- The current state of the virtual private gateway.
- See Also:
VpnState
-
withState
public VpnGateway withState(String state)
The current state of the virtual private gateway.
- Parameters:
state
- The current state of the virtual private gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VpnState
-
setState
public void setState(VpnState state)
The current state of the virtual private gateway.
- Parameters:
state
- The current state of the virtual private gateway.- See Also:
VpnState
-
withState
public VpnGateway withState(VpnState state)
The current state of the virtual private gateway.
- Parameters:
state
- The current state of the virtual private gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VpnState
-
setType
public void setType(String type)
The type of VPN connection the virtual private gateway supports.
- Parameters:
type
- The type of VPN connection the virtual private gateway supports.- See Also:
GatewayType
-
getType
public String getType()
The type of VPN connection the virtual private gateway supports.
- Returns:
- The type of VPN connection the virtual private gateway supports.
- See Also:
GatewayType
-
withType
public VpnGateway withType(String type)
The type of VPN connection the virtual private gateway supports.
- Parameters:
type
- The type of VPN connection the virtual private gateway supports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GatewayType
-
setType
public void setType(GatewayType type)
The type of VPN connection the virtual private gateway supports.
- Parameters:
type
- The type of VPN connection the virtual private gateway supports.- See Also:
GatewayType
-
withType
public VpnGateway withType(GatewayType type)
The type of VPN connection the virtual private gateway supports.
- Parameters:
type
- The type of VPN connection the virtual private gateway supports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GatewayType
-
setAvailabilityZone
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.
- Parameters:
availabilityZone
- The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.
-
getAvailabilityZone
public String getAvailabilityZone()
The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.
- Returns:
- The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.
-
withAvailabilityZone
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.
- Parameters:
availabilityZone
- The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getVpcAttachments
public List<VpcAttachment> getVpcAttachments()
Any VPCs attached to the virtual private gateway.
- Returns:
- Any VPCs attached to the virtual private gateway.
-
setVpcAttachments
public void setVpcAttachments(Collection<VpcAttachment> vpcAttachments)
Any VPCs attached to the virtual private gateway.
- Parameters:
vpcAttachments
- Any VPCs attached to the virtual private gateway.
-
withVpcAttachments
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)
orwithVpcAttachments(java.util.Collection)
if you want to override the existing values.- Parameters:
vpcAttachments
- Any VPCs attached to the virtual private gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withVpcAttachments
public VpnGateway withVpcAttachments(Collection<VpcAttachment> vpcAttachments)
Any VPCs attached to the virtual private gateway.
- Parameters:
vpcAttachments
- Any VPCs attached to the virtual private gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
public List<Tag> getTags()
Any tags assigned to the virtual private gateway.
- Returns:
- Any tags assigned to the virtual private gateway.
-
setTags
public void setTags(Collection<Tag> tags)
Any tags assigned to the virtual private gateway.
- Parameters:
tags
- Any tags assigned to the virtual private gateway.
-
withTags
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)
orwithTags(java.util.Collection)
if you want to override the existing values.- Parameters:
tags
- Any tags assigned to the virtual private gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
public VpnGateway withTags(Collection<Tag> tags)
Any tags assigned to the virtual private gateway.
- Parameters:
tags
- Any tags assigned to the virtual private gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VpnGateway clone()
-
-