Interface InputChannel.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InputChannel.Builder,,InputChannel> SdkBuilder<InputChannel.Builder,,InputChannel> SdkPojo
- Enclosing class:
InputChannel
@Mutable
@NotThreadSafe
public static interface InputChannel.Builder
extends SdkPojo, CopyableBuilder<InputChannel.Builder,InputChannel>
-
Method Summary
Modifier and TypeMethodDescriptiondefault InputChannel.BuilderdataSource(Consumer<InputChannelDataSource.Builder> dataSource) The data source that is used to create the ML input channel.dataSource(InputChannelDataSource dataSource) The data source that is used to create the ML input channel.The Amazon Resource Name (ARN) of the role used to run the query specified in thedataSourcefield of the input channel.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
dataSource
The data source that is used to create the ML input channel.
- Parameters:
dataSource- The data source that is used to create the ML input channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSource
The data source that is used to create the ML input channel.
This is a convenience method that creates an instance of theInputChannelDataSource.Builderavoiding the need to create one manually viaInputChannelDataSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todataSource(InputChannelDataSource).- Parameters:
dataSource- a consumer that will call methods onInputChannelDataSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
roleArn
The Amazon Resource Name (ARN) of the role used to run the query specified in the
dataSourcefield of the input channel.Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an
AccessDeniedExceptionerror.- Parameters:
roleArn- The Amazon Resource Name (ARN) of the role used to run the query specified in thedataSourcefield of the input channel.Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an
AccessDeniedExceptionerror.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-