Class CustomerGateway
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a customer gateway.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).The ID of the customer gateway.The Internet-routable IP address of the customer gateway's outside interface.getState()
The current state of the customer gateway (pending | available | deleting | deleted
).getTags()
Any tags assigned to the customer gateway.getType()
The type of VPN connection the customer gateway supports (ipsec.1
).int
hashCode()
void
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
The current state of the customer gateway (pending | available | deleting | deleted
).void
setTags
(Collection<Tag> tags) Any tags assigned to the customer gateway.void
The type of VPN connection the customer gateway supports (ipsec.1
).toString()
Returns a string representation of this object; useful for testing and debugging.withBgpAsn
(String bgpAsn) The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).withCustomerGatewayId
(String customerGatewayId) The ID of the customer gateway.withIpAddress
(String ipAddress) The Internet-routable IP address of the customer gateway's outside interface.The current state of the customer gateway (pending | available | deleting | deleted
).Any tags assigned to the customer gateway.withTags
(Collection<Tag> tags) Any tags assigned to the customer gateway.The type of VPN connection the customer gateway supports (ipsec.1
).
-
Constructor Details
-
CustomerGateway
public CustomerGateway()
-
-
Method Details
-
setCustomerGatewayId
The ID of the customer gateway.
- Parameters:
customerGatewayId
- The ID of the customer gateway.
-
getCustomerGatewayId
The ID of the customer gateway.
- Returns:
- The ID of the customer gateway.
-
withCustomerGatewayId
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
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
The current state of the customer gateway (
pending | available | deleting | deleted
).- Returns:
- The current state of the customer gateway (
pending | available | deleting | deleted
).
-
withState
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
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
The type of VPN connection the customer gateway supports (
ipsec.1
).- Returns:
- The type of VPN connection the customer gateway supports (
ipsec.1
).
-
withType
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
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
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
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
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
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
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
Any tags assigned to the customer gateway.
- Returns:
- Any tags assigned to the customer gateway.
-
setTags
Any tags assigned to the customer gateway.
- Parameters:
tags
- Any tags assigned to the customer gateway.
-
withTags
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-