Interface DocumentClassifierProperties.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DocumentClassifierProperties.Builder,
,DocumentClassifierProperties> SdkBuilder<DocumentClassifierProperties.Builder,
,DocumentClassifierProperties> SdkPojo
- Enclosing class:
DocumentClassifierProperties
-
Method Summary
Modifier and TypeMethodDescriptionclassifierMetadata
(Consumer<ClassifierMetadata.Builder> classifierMetadata) Information about the document classifier, including the number of documents used for training the classifier, the number of documents used for test the classifier, and an accuracy rating.classifierMetadata
(ClassifierMetadata classifierMetadata) Information about the document classifier, including the number of documents used for training the classifier, the number of documents used for test the classifier, and an accuracy rating.dataAccessRoleArn
(String dataAccessRoleArn) The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.documentClassifierArn
(String documentClassifierArn) The Amazon Resource Name (ARN) that identifies the document classifier.The time that training the document classifier completed.flywheelArn
(String flywheelArn) The Amazon Resource Number (ARN) of the flywheelinputDataConfig
(Consumer<DocumentClassifierInputDataConfig.Builder> inputDataConfig) The input data configuration that you supplied when you created the document classifier for training.inputDataConfig
(DocumentClassifierInputDataConfig inputDataConfig) The input data configuration that you supplied when you created the document classifier for training.languageCode
(String languageCode) The language code for the language of the documents that the classifier was trained on.languageCode
(LanguageCode languageCode) The language code for the language of the documents that the classifier was trained on.Additional information about the status of the classifier.Indicates the mode in which the specific classifier was trained.mode
(DocumentClassifierMode mode) Indicates the mode in which the specific classifier was trained.modelKmsKeyId
(String modelKmsKeyId) ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models.outputDataConfig
(Consumer<DocumentClassifierOutputDataConfig.Builder> outputDataConfig) Provides output results configuration parameters for custom classifier jobs.outputDataConfig
(DocumentClassifierOutputDataConfig outputDataConfig) Provides output results configuration parameters for custom classifier jobs.sourceModelArn
(String sourceModelArn) The Amazon Resource Name (ARN) of the source model.The status of the document classifier.status
(ModelStatus status) The status of the document classifier.submitTime
(Instant submitTime) The time that the document classifier was submitted for training.trainingEndTime
(Instant trainingEndTime) The time that training of the document classifier was completed.trainingStartTime
(Instant trainingStartTime) Indicates the time when the training starts on documentation classifiers.versionName
(String versionName) The version name that you assigned to the document classifier.volumeKmsKeyId
(String volumeKmsKeyId) ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job.vpcConfig
(Consumer<VpcConfig.Builder> vpcConfig) Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier.Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier.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
-
documentClassifierArn
The Amazon Resource Name (ARN) that identifies the document classifier.
- Parameters:
documentClassifierArn
- The Amazon Resource Name (ARN) that identifies the document classifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
languageCode
The language code for the language of the documents that the classifier was trained on.
- Parameters:
languageCode
- The language code for the language of the documents that the classifier was trained on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
languageCode
The language code for the language of the documents that the classifier was trained on.
- Parameters:
languageCode
- The language code for the language of the documents that the classifier was trained on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the document classifier. If the status is
TRAINED
the classifier is ready to use. If the status isTRAINED_WITH_WARNINGS
the classifier training succeeded, but you should review the warnings returned in theCreateDocumentClassifier
response.If the status is
FAILED
you can see additional information about why the classifier wasn't trained in theMessage
field.- Parameters:
status
- The status of the document classifier. If the status isTRAINED
the classifier is ready to use. If the status isTRAINED_WITH_WARNINGS
the classifier training succeeded, but you should review the warnings returned in theCreateDocumentClassifier
response.If the status is
FAILED
you can see additional information about why the classifier wasn't trained in theMessage
field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the document classifier. If the status is
TRAINED
the classifier is ready to use. If the status isTRAINED_WITH_WARNINGS
the classifier training succeeded, but you should review the warnings returned in theCreateDocumentClassifier
response.If the status is
FAILED
you can see additional information about why the classifier wasn't trained in theMessage
field.- Parameters:
status
- The status of the document classifier. If the status isTRAINED
the classifier is ready to use. If the status isTRAINED_WITH_WARNINGS
the classifier training succeeded, but you should review the warnings returned in theCreateDocumentClassifier
response.If the status is
FAILED
you can see additional information about why the classifier wasn't trained in theMessage
field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
message
Additional information about the status of the classifier.
- Parameters:
message
- Additional information about the status of the classifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
submitTime
The time that the document classifier was submitted for training.
- Parameters:
submitTime
- The time that the document classifier was submitted for training.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
The time that training the document classifier completed.
- Parameters:
endTime
- The time that training the document classifier completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trainingStartTime
Indicates the time when the training starts on documentation classifiers. You are billed for the time interval between this time and the value of TrainingEndTime.
- Parameters:
trainingStartTime
- Indicates the time when the training starts on documentation classifiers. You are billed for the time interval between this time and the value of TrainingEndTime.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trainingEndTime
The time that training of the document classifier was completed. Indicates the time when the training completes on documentation classifiers. You are billed for the time interval between this time and the value of TrainingStartTime.
- Parameters:
trainingEndTime
- The time that training of the document classifier was completed. Indicates the time when the training completes on documentation classifiers. You are billed for the time interval between this time and the value of TrainingStartTime.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputDataConfig
DocumentClassifierProperties.Builder inputDataConfig(DocumentClassifierInputDataConfig inputDataConfig) The input data configuration that you supplied when you created the document classifier for training.
- Parameters:
inputDataConfig
- The input data configuration that you supplied when you created the document classifier for training.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputDataConfig
default DocumentClassifierProperties.Builder inputDataConfig(Consumer<DocumentClassifierInputDataConfig.Builder> inputDataConfig) The input data configuration that you supplied when you created the document classifier for training.
This is a convenience method that creates an instance of theDocumentClassifierInputDataConfig.Builder
avoiding the need to create one manually viaDocumentClassifierInputDataConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinputDataConfig(DocumentClassifierInputDataConfig)
.- Parameters:
inputDataConfig
- a consumer that will call methods onDocumentClassifierInputDataConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputDataConfig
DocumentClassifierProperties.Builder outputDataConfig(DocumentClassifierOutputDataConfig outputDataConfig) Provides output results configuration parameters for custom classifier jobs.
- Parameters:
outputDataConfig
- Provides output results configuration parameters for custom classifier jobs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputDataConfig
default DocumentClassifierProperties.Builder outputDataConfig(Consumer<DocumentClassifierOutputDataConfig.Builder> outputDataConfig) Provides output results configuration parameters for custom classifier jobs.
This is a convenience method that creates an instance of theDocumentClassifierOutputDataConfig.Builder
avoiding the need to create one manually viaDocumentClassifierOutputDataConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooutputDataConfig(DocumentClassifierOutputDataConfig)
.- Parameters:
outputDataConfig
- a consumer that will call methods onDocumentClassifierOutputDataConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
classifierMetadata
Information about the document classifier, including the number of documents used for training the classifier, the number of documents used for test the classifier, and an accuracy rating.
- Parameters:
classifierMetadata
- Information about the document classifier, including the number of documents used for training the classifier, the number of documents used for test the classifier, and an accuracy rating.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
classifierMetadata
default DocumentClassifierProperties.Builder classifierMetadata(Consumer<ClassifierMetadata.Builder> classifierMetadata) Information about the document classifier, including the number of documents used for training the classifier, the number of documents used for test the classifier, and an accuracy rating.
This is a convenience method that creates an instance of theClassifierMetadata.Builder
avoiding the need to create one manually viaClassifierMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toclassifierMetadata(ClassifierMetadata)
.- Parameters:
classifierMetadata
- a consumer that will call methods onClassifierMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataAccessRoleArn
The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.
- Parameters:
dataAccessRoleArn
- The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeKmsKeyId
ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:
-
KMS Key ID:
"1234abcd-12ab-34cd-56ef-1234567890ab"
-
Amazon Resource Name (ARN) of a KMS Key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
- Parameters:
volumeKmsKeyId
- ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:-
KMS Key ID:
"1234abcd-12ab-34cd-56ef-1234567890ab"
-
Amazon Resource Name (ARN) of a KMS Key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
vpcConfig
Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier. For more information, see Amazon VPC.
- Parameters:
vpcConfig
- Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier. For more information, see Amazon VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier. For more information, see Amazon VPC.
This is a convenience method that creates an instance of theVpcConfig.Builder
avoiding the need to create one manually viaVpcConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovpcConfig(VpcConfig)
.- Parameters:
vpcConfig
- a consumer that will call methods onVpcConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mode
Indicates the mode in which the specific classifier was trained. This also indicates the format of input documents and the format of the confusion matrix. Each classifier can only be trained in one mode and this cannot be changed once the classifier is trained.
- Parameters:
mode
- Indicates the mode in which the specific classifier was trained. This also indicates the format of input documents and the format of the confusion matrix. Each classifier can only be trained in one mode and this cannot be changed once the classifier is trained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mode
Indicates the mode in which the specific classifier was trained. This also indicates the format of input documents and the format of the confusion matrix. Each classifier can only be trained in one mode and this cannot be changed once the classifier is trained.
- Parameters:
mode
- Indicates the mode in which the specific classifier was trained. This also indicates the format of input documents and the format of the confusion matrix. Each classifier can only be trained in one mode and this cannot be changed once the classifier is trained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
modelKmsKeyId
ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats:
-
KMS Key ID:
"1234abcd-12ab-34cd-56ef-1234567890ab"
-
Amazon Resource Name (ARN) of a KMS Key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
- Parameters:
modelKmsKeyId
- ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats:-
KMS Key ID:
"1234abcd-12ab-34cd-56ef-1234567890ab"
-
Amazon Resource Name (ARN) of a KMS Key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
versionName
The version name that you assigned to the document classifier.
- Parameters:
versionName
- The version name that you assigned to the document classifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceModelArn
The Amazon Resource Name (ARN) of the source model. This model was imported from a different Amazon Web Services account to create the document classifier model in your Amazon Web Services account.
- Parameters:
sourceModelArn
- The Amazon Resource Name (ARN) of the source model. This model was imported from a different Amazon Web Services account to create the document classifier model in your Amazon Web Services account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
flywheelArn
The Amazon Resource Number (ARN) of the flywheel
- Parameters:
flywheelArn
- The Amazon Resource Number (ARN) of the flywheel- Returns:
- Returns a reference to this object so that method calls can be chained together.
-