Interface CustomerGateway.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CustomerGateway.Builder,
,CustomerGateway> SdkBuilder<CustomerGateway.Builder,
,CustomerGateway> SdkPojo
- Enclosing class:
CustomerGateway
-
Method Summary
Modifier and TypeMethodDescriptionThe customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).bgpAsnExtended
(String bgpAsnExtended) The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).certificateArn
(String certificateArn) The Amazon Resource Name (ARN) for the customer gateway certificate.customerGatewayId
(String customerGatewayId) The ID of the customer gateway.deviceName
(String deviceName) The name of customer gateway device.IPv4 address for the customer gateway device's outside interface.The current state of the customer gateway (pending | available | deleting | deleted
).tags
(Collection<Tag> tags) Any tags assigned to the customer gateway.tags
(Consumer<Tag.Builder>... tags) Any tags assigned to the customer gateway.Any tags assigned to the customer gateway.The type of VPN connection the customer gateway supports (ipsec.1
).Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
bgpAsn
The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
Valid values:
1
to2,147,483,647
- Parameters:
bgpAsn
- The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).Valid values:
1
to2,147,483,647
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
ipAddress
IPv4 address for the customer gateway device's outside interface. The address must be static. If
OutsideIpAddressType
in your VPN connection options is set toPrivateIpv4
, you can use an RFC6598 or RFC1918 private IPv4 address. IfOutsideIpAddressType
is set toPublicIpv4
, you can use a public IPv4 address.- Parameters:
ipAddress
- IPv4 address for the customer gateway device's outside interface. The address must be static. IfOutsideIpAddressType
in your VPN connection options is set toPrivateIpv4
, you can use an RFC6598 or RFC1918 private IPv4 address. IfOutsideIpAddressType
is set toPublicIpv4
, you can use a public IPv4 address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificateArn
The Amazon Resource Name (ARN) for the customer gateway certificate.
- Parameters:
certificateArn
- The Amazon Resource Name (ARN) for the customer gateway certificate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
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.
-
deviceName
The name of customer gateway device.
- Parameters:
deviceName
- The name of customer gateway device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
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.
-
tags
Any tags assigned to the customer gateway.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bgpAsnExtended
The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
Valid values:
2,147,483,648
to4,294,967,295
- Parameters:
bgpAsnExtended
- The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).Valid values:
2,147,483,648
to4,294,967,295
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-