Interface CustomerGateway.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<CustomerGateway.Builder,CustomerGateway>
,SdkBuilder<CustomerGateway.Builder,CustomerGateway>
,SdkPojo
- Enclosing class:
- CustomerGateway
public static interface CustomerGateway.Builder extends SdkPojo, CopyableBuilder<CustomerGateway.Builder,CustomerGateway>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CustomerGateway.Builder
bgpAsn(String bgpAsn)
The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).CustomerGateway.Builder
certificateArn(String certificateArn)
The Amazon Resource Name (ARN) for the customer gateway certificate.CustomerGateway.Builder
customerGatewayId(String customerGatewayId)
The ID of the customer gateway.CustomerGateway.Builder
deviceName(String deviceName)
The name of customer gateway device.CustomerGateway.Builder
ipAddress(String ipAddress)
The IP address of the customer gateway device's outside interface.CustomerGateway.Builder
state(String state)
The current state of the customer gateway (pending | available | deleting | deleted
).CustomerGateway.Builder
tags(Collection<Tag> tags)
Any tags assigned to the customer gateway.CustomerGateway.Builder
tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the customer gateway.CustomerGateway.Builder
tags(Tag... tags)
Any tags assigned to the customer gateway.CustomerGateway.Builder
type(String type)
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 Detail
-
bgpAsn
CustomerGateway.Builder bgpAsn(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.
-
customerGatewayId
CustomerGateway.Builder customerGatewayId(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.
-
ipAddress
CustomerGateway.Builder ipAddress(String ipAddress)
The IP address of the customer gateway device's outside interface.
- Parameters:
ipAddress
- The IP address of the customer gateway device's outside interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificateArn
CustomerGateway.Builder certificateArn(String 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
CustomerGateway.Builder state(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.
-
type
CustomerGateway.Builder type(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.
-
deviceName
CustomerGateway.Builder deviceName(String 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
CustomerGateway.Builder tags(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.
-
tags
CustomerGateway.Builder tags(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.
-
tags
CustomerGateway.Builder tags(Consumer<Tag.Builder>... 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 to#tags(List
.) - 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:
#tags(java.util.Collection
)
-
-