Interface CreateFlywheelRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,ComprehendRequest.Builder
,CopyableBuilder<CreateFlywheelRequest.Builder,
,CreateFlywheelRequest> SdkBuilder<CreateFlywheelRequest.Builder,
,CreateFlywheelRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateFlywheelRequest
-
Method Summary
Modifier and TypeMethodDescriptionactiveModelArn
(String activeModelArn) To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model version.clientRequestToken
(String clientRequestToken) A unique identifier for the request.dataAccessRoleArn
(String dataAccessRoleArn) The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend the permissions required to access the flywheel data in the data lake.dataLakeS3Uri
(String dataLakeS3Uri) Enter the S3 location for the data lake.default CreateFlywheelRequest.Builder
dataSecurityConfig
(Consumer<DataSecurityConfig.Builder> dataSecurityConfig) Data security configurations.dataSecurityConfig
(DataSecurityConfig dataSecurityConfig) Data security configurations.flywheelName
(String flywheelName) Name for the flywheel.The model type.The model type.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 tags to associate with this flywheel.tags
(Consumer<Tag.Builder>... tags) The tags to associate with this flywheel.The tags to associate with this flywheel.default CreateFlywheelRequest.Builder
taskConfig
(Consumer<TaskConfig.Builder> taskConfig) Configuration about the model associated with the flywheel.taskConfig
(TaskConfig taskConfig) Configuration about the model associated with the flywheel.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.comprehend.model.ComprehendRequest.Builder
build
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, sdkFields
-
Method Details
-
flywheelName
Name for the flywheel.
- Parameters:
flywheelName
- Name for the flywheel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activeModelArn
To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model version. Do not set
TaskConfig
orModelType
if you specify anActiveModelArn
.- Parameters:
activeModelArn
- To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model version. Do not setTaskConfig
orModelType
if you specify anActiveModelArn
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataAccessRoleArn
The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend the permissions required to access the flywheel data in the data lake.
- Parameters:
dataAccessRoleArn
- The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend the permissions required to access the flywheel data in the data lake.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskConfig
Configuration about the model associated with the flywheel. You need to set
TaskConfig
if you are creating a flywheel for a new model.- Parameters:
taskConfig
- Configuration about the model associated with the flywheel. You need to setTaskConfig
if you are creating a flywheel for a new model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskConfig
Configuration about the model associated with the flywheel. You need to set
This is a convenience method that creates an instance of theTaskConfig
if you are creating a flywheel for a new model.TaskConfig.Builder
avoiding the need to create one manually viaTaskConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totaskConfig(TaskConfig)
.- Parameters:
taskConfig
- a consumer that will call methods onTaskConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
modelType
The model type. You need to set
ModelType
if you are creating a flywheel for a new model.- Parameters:
modelType
- The model type. You need to setModelType
if you are creating a flywheel for a new model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
modelType
The model type. You need to set
ModelType
if you are creating a flywheel for a new model.- Parameters:
modelType
- The model type. You need to setModelType
if you are creating a flywheel for a new model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataLakeS3Uri
Enter the S3 location for the data lake. You can specify a new S3 bucket or a new folder of an existing S3 bucket. The flywheel creates the data lake at this location.
- Parameters:
dataLakeS3Uri
- Enter the S3 location for the data lake. You can specify a new S3 bucket or a new folder of an existing S3 bucket. The flywheel creates the data lake at this location.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSecurityConfig
Data security configurations.
- Parameters:
dataSecurityConfig
- Data security configurations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSecurityConfig
default CreateFlywheelRequest.Builder dataSecurityConfig(Consumer<DataSecurityConfig.Builder> dataSecurityConfig) Data security configurations.
This is a convenience method that creates an instance of theDataSecurityConfig.Builder
avoiding the need to create one manually viaDataSecurityConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todataSecurityConfig(DataSecurityConfig)
.- Parameters:
dataSecurityConfig
- a consumer that will call methods onDataSecurityConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientRequestToken
A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
- Parameters:
clientRequestToken
- A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to associate with this flywheel.
- Parameters:
tags
- The tags to associate with this flywheel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to associate with this flywheel.
- Parameters:
tags
- The tags to associate with this flywheel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to associate with this flywheel.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,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:
-
overrideConfiguration
CreateFlywheelRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateFlywheelRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-