Interface CreateConnectionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateConnectionRequest.Builder,,CreateConnectionRequest> DirectConnectRequest.Builder,SdkBuilder<CreateConnectionRequest.Builder,,CreateConnectionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateConnectionRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe bandwidth of the connection.connectionName(String connectionName) The name of the connection.The ID of the LAG.The location of the connection.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.providerName(String providerName) The name of the service provider associated with the requested connection.requestMACSec(Boolean requestMACSec) Indicates whether you want the connection to support MAC Security (MACsec).tags(Collection<Tag> tags) The tags to associate with the lag.tags(Consumer<Tag.Builder>... tags) The tags to associate with the lag.The tags to associate with the lag.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
-
location
The location of the connection.
- Parameters:
location- The location of the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bandwidth
The bandwidth of the connection.
- Parameters:
bandwidth- The bandwidth of the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectionName
The name of the connection.
- Parameters:
connectionName- The name of the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lagId
The ID of the LAG.
- Parameters:
lagId- The ID of the LAG.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to associate with the lag.
- Parameters:
tags- The tags to associate with the lag.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to associate with the lag.
- Parameters:
tags- The tags to associate with the lag.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to associate with the lag.
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:
-
providerName
The name of the service provider associated with the requested connection.
- Parameters:
providerName- The name of the service provider associated with the requested connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestMACSec
Indicates whether you want the connection to support MAC Security (MACsec).
MAC Security (MACsec) is only available on dedicated connections. For information about MAC Security (MACsec) prerequisties, see MACsec prerequisties in the Direct Connect User Guide.
- Parameters:
requestMACSec- Indicates whether you want the connection to support MAC Security (MACsec).MAC Security (MACsec) is only available on dedicated connections. For information about MAC Security (MACsec) prerequisties, see MACsec prerequisties in the Direct Connect User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateConnectionRequest.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
CreateConnectionRequest.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.
-