Interface TaskConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TaskConfig.Builder,,TaskConfig> SdkBuilder<TaskConfig.Builder,,TaskConfig> SdkPojo
- Enclosing class:
TaskConfig
public static interface TaskConfig.Builder
extends SdkPojo, CopyableBuilder<TaskConfig.Builder,TaskConfig>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TaskConfig.BuilderdocumentClassificationConfig(Consumer<DocumentClassificationConfig.Builder> documentClassificationConfig) Configuration required for a document classification model.documentClassificationConfig(DocumentClassificationConfig documentClassificationConfig) Configuration required for a document classification model.default TaskConfig.BuilderentityRecognitionConfig(Consumer<EntityRecognitionConfig.Builder> entityRecognitionConfig) Configuration required for an entity recognition model.entityRecognitionConfig(EntityRecognitionConfig entityRecognitionConfig) Configuration required for an entity recognition model.languageCode(String languageCode) Language code for the language that the model supports.languageCode(LanguageCode languageCode) Language code for the language that the model supports.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, sdkFields
-
Method Details
-
languageCode
Language code for the language that the model supports.
- Parameters:
languageCode- Language code for the language that the model supports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
languageCode
Language code for the language that the model supports.
- Parameters:
languageCode- Language code for the language that the model supports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
documentClassificationConfig
TaskConfig.Builder documentClassificationConfig(DocumentClassificationConfig documentClassificationConfig) Configuration required for a document classification model.
- Parameters:
documentClassificationConfig- Configuration required for a document classification model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentClassificationConfig
default TaskConfig.Builder documentClassificationConfig(Consumer<DocumentClassificationConfig.Builder> documentClassificationConfig) Configuration required for a document classification model.
This is a convenience method that creates an instance of theDocumentClassificationConfig.Builderavoiding the need to create one manually viaDocumentClassificationConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todocumentClassificationConfig(DocumentClassificationConfig).- Parameters:
documentClassificationConfig- a consumer that will call methods onDocumentClassificationConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
entityRecognitionConfig
Configuration required for an entity recognition model.
- Parameters:
entityRecognitionConfig- Configuration required for an entity recognition model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entityRecognitionConfig
default TaskConfig.Builder entityRecognitionConfig(Consumer<EntityRecognitionConfig.Builder> entityRecognitionConfig) Configuration required for an entity recognition model.
This is a convenience method that creates an instance of theEntityRecognitionConfig.Builderavoiding the need to create one manually viaEntityRecognitionConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toentityRecognitionConfig(EntityRecognitionConfig).- Parameters:
entityRecognitionConfig- a consumer that will call methods onEntityRecognitionConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-