Interface CreateDirectConnectGatewayAssociationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateDirectConnectGatewayAssociationRequest.Builder,,CreateDirectConnectGatewayAssociationRequest> DirectConnectRequest.Builder,SdkBuilder<CreateDirectConnectGatewayAssociationRequest.Builder,,CreateDirectConnectGatewayAssociationRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateDirectConnectGatewayAssociationRequest
-
Method Summary
Modifier and TypeMethodDescriptionaddAllowedPrefixesToDirectConnectGateway(Collection<RouteFilterPrefix> addAllowedPrefixesToDirectConnectGateway) The Amazon VPC prefixes to advertise to the Direct Connect gatewayaddAllowedPrefixesToDirectConnectGateway(Consumer<RouteFilterPrefix.Builder>... addAllowedPrefixesToDirectConnectGateway) The Amazon VPC prefixes to advertise to the Direct Connect gatewayaddAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix... addAllowedPrefixesToDirectConnectGateway) The Amazon VPC prefixes to advertise to the Direct Connect gatewaydirectConnectGatewayId(String directConnectGatewayId) The ID of the Direct Connect gateway.The ID of the virtual private gateway or transit gateway.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.virtualGatewayId(String virtualGatewayId) The ID of the virtual private gateway.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, sdkFields
-
Method Details
-
directConnectGatewayId
CreateDirectConnectGatewayAssociationRequest.Builder directConnectGatewayId(String directConnectGatewayId) The ID of the Direct Connect gateway.
- Parameters:
directConnectGatewayId- The ID of the Direct Connect gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gatewayId
The ID of the virtual private gateway or transit gateway.
- Parameters:
gatewayId- The ID of the virtual private gateway or transit gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addAllowedPrefixesToDirectConnectGateway
CreateDirectConnectGatewayAssociationRequest.Builder addAllowedPrefixesToDirectConnectGateway(Collection<RouteFilterPrefix> addAllowedPrefixesToDirectConnectGateway) The Amazon VPC prefixes to advertise to the Direct Connect gateway
This parameter is required when you create an association to a transit gateway.
For information about how to set the prefixes, see Allowed Prefixes in the Direct Connect User Guide.
- Parameters:
addAllowedPrefixesToDirectConnectGateway- The Amazon VPC prefixes to advertise to the Direct Connect gatewayThis parameter is required when you create an association to a transit gateway.
For information about how to set the prefixes, see Allowed Prefixes in the Direct Connect User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addAllowedPrefixesToDirectConnectGateway
CreateDirectConnectGatewayAssociationRequest.Builder addAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix... addAllowedPrefixesToDirectConnectGateway) The Amazon VPC prefixes to advertise to the Direct Connect gateway
This parameter is required when you create an association to a transit gateway.
For information about how to set the prefixes, see Allowed Prefixes in the Direct Connect User Guide.
- Parameters:
addAllowedPrefixesToDirectConnectGateway- The Amazon VPC prefixes to advertise to the Direct Connect gatewayThis parameter is required when you create an association to a transit gateway.
For information about how to set the prefixes, see Allowed Prefixes in the Direct Connect User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addAllowedPrefixesToDirectConnectGateway
CreateDirectConnectGatewayAssociationRequest.Builder addAllowedPrefixesToDirectConnectGateway(Consumer<RouteFilterPrefix.Builder>... addAllowedPrefixesToDirectConnectGateway) The Amazon VPC prefixes to advertise to the Direct Connect gateway
This parameter is required when you create an association to a transit gateway.
For information about how to set the prefixes, see Allowed Prefixes in the Direct Connect User Guide.
This is a convenience method that creates an instance of theRouteFilterPrefix.Builderavoiding the need to create one manually viaRouteFilterPrefix.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaddAllowedPrefixesToDirectConnectGateway(List<RouteFilterPrefix>).- Parameters:
addAllowedPrefixesToDirectConnectGateway- a consumer that will call methods onRouteFilterPrefix.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
virtualGatewayId
The ID of the virtual private gateway.
- Parameters:
virtualGatewayId- The ID of the virtual private gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateDirectConnectGatewayAssociationRequest.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
CreateDirectConnectGatewayAssociationRequest.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.
-