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.Builder
dataSource
(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 thedataSource
field of the input channel.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
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.Builder
avoiding the need to create one manually viaInputChannelDataSource.builder()
.When the
Consumer
completes,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
dataSource
field 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
AccessDeniedException
error.- Parameters:
roleArn
- The Amazon Resource Name (ARN) of the role used to run the query specified in thedataSource
field 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
AccessDeniedException
error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-