Interface CreateDirectConnectGatewayRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateDirectConnectGatewayRequest.Builder,
,CreateDirectConnectGatewayRequest> DirectConnectRequest.Builder
,SdkBuilder<CreateDirectConnectGatewayRequest.Builder,
,CreateDirectConnectGatewayRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateDirectConnectGatewayRequest
@Mutable
@NotThreadSafe
public static interface CreateDirectConnectGatewayRequest.Builder
extends DirectConnectRequest.Builder, SdkPojo, CopyableBuilder<CreateDirectConnectGatewayRequest.Builder,CreateDirectConnectGatewayRequest>
-
Method Summary
Modifier and TypeMethodDescriptionamazonSideAsn
(Long amazonSideAsn) The autonomous system number (ASN) for Border Gateway Protocol (BGP) to be configured on the Amazon side of the connection.directConnectGatewayName
(String directConnectGatewayName) The name of the Direct Connect gateway.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.tags
(Collection<Tag> tags) The key-value pair tags associated with the request.tags
(Consumer<Tag.Builder>... tags) The key-value pair tags associated with the request.The key-value pair tags associated with the request.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.directconnect.model.DirectConnectRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
directConnectGatewayName
The name of the Direct Connect gateway.
- Parameters:
directConnectGatewayName
- The name of the Direct Connect gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The key-value pair tags associated with the request.
- Parameters:
tags
- The key-value pair tags associated with the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The key-value pair tags associated with the request.
- Parameters:
tags
- The key-value pair tags associated with the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The key-value pair tags associated with the request.
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:
-
amazonSideAsn
The autonomous system number (ASN) for Border Gateway Protocol (BGP) to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294. The default is 64512.
- Parameters:
amazonSideAsn
- The autonomous system number (ASN) for Border Gateway Protocol (BGP) to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294. The default is 64512.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateDirectConnectGatewayRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateDirectConnectGatewayRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-