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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.directconnect.model.DirectConnectRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-