public static interface CreateDocumentClassifierRequest.Builder extends ComprehendRequest.Builder, SdkPojo, CopyableBuilder<CreateDocumentClassifierRequest.Builder,CreateDocumentClassifierRequest>
Modifier and Type | Method and Description |
---|---|
CreateDocumentClassifierRequest.Builder |
clientRequestToken(String clientRequestToken)
A unique identifier for the request.
|
CreateDocumentClassifierRequest.Builder |
dataAccessRoleArn(String dataAccessRoleArn)
The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon Comprehend
read access to your input data.
|
CreateDocumentClassifierRequest.Builder |
documentClassifierName(String documentClassifierName)
The name of the document classifier.
|
default CreateDocumentClassifierRequest.Builder |
inputDataConfig(Consumer<DocumentClassifierInputDataConfig.Builder> inputDataConfig)
Specifies the format and location of the input data for the job.
|
CreateDocumentClassifierRequest.Builder |
inputDataConfig(DocumentClassifierInputDataConfig inputDataConfig)
Specifies the format and location of the input data for the job.
|
CreateDocumentClassifierRequest.Builder |
languageCode(LanguageCode languageCode)
The language of the input documents.
|
CreateDocumentClassifierRequest.Builder |
languageCode(String languageCode)
The language of the input documents.
|
CreateDocumentClassifierRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateDocumentClassifierRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
build
overrideConfiguration
copy
applyMutation, build
CreateDocumentClassifierRequest.Builder documentClassifierName(String documentClassifierName)
The name of the document classifier.
documentClassifierName
- The name of the document classifier.CreateDocumentClassifierRequest.Builder dataAccessRoleArn(String dataAccessRoleArn)
The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon Comprehend read access to your input data.
dataAccessRoleArn
- The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon
Comprehend read access to your input data.CreateDocumentClassifierRequest.Builder inputDataConfig(DocumentClassifierInputDataConfig inputDataConfig)
Specifies the format and location of the input data for the job.
inputDataConfig
- Specifies the format and location of the input data for the job.default CreateDocumentClassifierRequest.Builder inputDataConfig(Consumer<DocumentClassifierInputDataConfig.Builder> inputDataConfig)
Specifies the format and location of the input data for the job.
This is a convenience that creates an instance of theDocumentClassifierInputDataConfig.Builder
avoiding the need to create one manually via DocumentClassifierInputDataConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to inputDataConfig(DocumentClassifierInputDataConfig)
.inputDataConfig
- a consumer that will call methods on DocumentClassifierInputDataConfig.Builder
inputDataConfig(DocumentClassifierInputDataConfig)
CreateDocumentClassifierRequest.Builder clientRequestToken(String clientRequestToken)
A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
clientRequestToken
- A unique identifier for the request. If you don't set the client request token, Amazon Comprehend
generates one.CreateDocumentClassifierRequest.Builder languageCode(String languageCode)
The language of the input documents. You can specify English ("en") or Spanish ("es"). All documents must be in the same language.
languageCode
- The language of the input documents. You can specify English ("en") or Spanish ("es"). All documents
must be in the same language.LanguageCode
,
LanguageCode
CreateDocumentClassifierRequest.Builder languageCode(LanguageCode languageCode)
The language of the input documents. You can specify English ("en") or Spanish ("es"). All documents must be in the same language.
languageCode
- The language of the input documents. You can specify English ("en") or Spanish ("es"). All documents
must be in the same language.LanguageCode
,
LanguageCode
CreateDocumentClassifierRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateDocumentClassifierRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.