Class CustomerGateway
- java.lang.Object
-
- com.amazonaws.services.ec2.model.CustomerGateway
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class CustomerGateway extends Object implements Serializable, Cloneable
Describes a customer gateway.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CustomerGateway()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomerGateway
clone()
boolean
equals(Object obj)
String
getBgpAsn()
The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).String
getCustomerGatewayId()
The ID of the customer gateway.String
getIpAddress()
The Internet-routable IP address of the customer gateway's outside interface.String
getState()
The current state of the customer gateway (pending | available | deleting | deleted
).List<Tag>
getTags()
Any tags assigned to the customer gateway.String
getType()
The type of VPN connection the customer gateway supports (ipsec.1
).int
hashCode()
void
setBgpAsn(String bgpAsn)
The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).void
setCustomerGatewayId(String customerGatewayId)
The ID of the customer gateway.void
setIpAddress(String ipAddress)
The Internet-routable IP address of the customer gateway's outside interface.void
setState(String state)
The current state of the customer gateway (pending | available | deleting | deleted
).void
setTags(Collection<Tag> tags)
Any tags assigned to the customer gateway.void
setType(String type)
The type of VPN connection the customer gateway supports (ipsec.1
).String
toString()
Returns a string representation of this object; useful for testing and debugging.CustomerGateway
withBgpAsn(String bgpAsn)
The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).CustomerGateway
withCustomerGatewayId(String customerGatewayId)
The ID of the customer gateway.CustomerGateway
withIpAddress(String ipAddress)
The Internet-routable IP address of the customer gateway's outside interface.CustomerGateway
withState(String state)
The current state of the customer gateway (pending | available | deleting | deleted
).CustomerGateway
withTags(Tag... tags)
Any tags assigned to the customer gateway.CustomerGateway
withTags(Collection<Tag> tags)
Any tags assigned to the customer gateway.CustomerGateway
withType(String type)
The type of VPN connection the customer gateway supports (ipsec.1
).
-
-
-
Method Detail
-
setCustomerGatewayId
public void setCustomerGatewayId(String customerGatewayId)
The ID of the customer gateway.
- Parameters:
customerGatewayId
- The ID of the customer gateway.
-
getCustomerGatewayId
public String getCustomerGatewayId()
The ID of the customer gateway.
- Returns:
- The ID of the customer gateway.
-
withCustomerGatewayId
public CustomerGateway withCustomerGatewayId(String customerGatewayId)
The ID of the customer gateway.
- Parameters:
customerGatewayId
- The ID of the customer 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 customer gateway (
pending | available | deleting | deleted
).- Parameters:
state
- The current state of the customer gateway (pending | available | deleting | deleted
).
-
getState
public String getState()
The current state of the customer gateway (
pending | available | deleting | deleted
).- Returns:
- The current state of the customer gateway (
pending | available | deleting | deleted
).
-
withState
public CustomerGateway withState(String state)
The current state of the customer gateway (
pending | available | deleting | deleted
).- Parameters:
state
- The current state of the customer gateway (pending | available | deleting | deleted
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
public void setType(String type)
The type of VPN connection the customer gateway supports (
ipsec.1
).- Parameters:
type
- The type of VPN connection the customer gateway supports (ipsec.1
).
-
getType
public String getType()
The type of VPN connection the customer gateway supports (
ipsec.1
).- Returns:
- The type of VPN connection the customer gateway supports (
ipsec.1
).
-
withType
public CustomerGateway withType(String type)
The type of VPN connection the customer gateway supports (
ipsec.1
).- Parameters:
type
- The type of VPN connection the customer gateway supports (ipsec.1
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIpAddress
public void setIpAddress(String ipAddress)
The Internet-routable IP address of the customer gateway's outside interface.
- Parameters:
ipAddress
- The Internet-routable IP address of the customer gateway's outside interface.
-
getIpAddress
public String getIpAddress()
The Internet-routable IP address of the customer gateway's outside interface.
- Returns:
- The Internet-routable IP address of the customer gateway's outside interface.
-
withIpAddress
public CustomerGateway withIpAddress(String ipAddress)
The Internet-routable IP address of the customer gateway's outside interface.
- Parameters:
ipAddress
- The Internet-routable IP address of the customer gateway's outside interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setBgpAsn
public void setBgpAsn(String bgpAsn)
The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
- Parameters:
bgpAsn
- The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
-
getBgpAsn
public String getBgpAsn()
The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
- Returns:
- The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
-
withBgpAsn
public CustomerGateway withBgpAsn(String bgpAsn)
The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
- Parameters:
bgpAsn
- The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).- 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 customer gateway.
- Returns:
- Any tags assigned to the customer gateway.
-
setTags
public void setTags(Collection<Tag> tags)
Any tags assigned to the customer gateway.
- Parameters:
tags
- Any tags assigned to the customer gateway.
-
withTags
public CustomerGateway withTags(Tag... tags)
Any tags assigned to the customer 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 customer gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
public CustomerGateway withTags(Collection<Tag> tags)
Any tags assigned to the customer gateway.
- Parameters:
tags
- Any tags assigned to the customer 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 CustomerGateway clone()
-
-