Class DocumentClassifierProperties
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<DocumentClassifierProperties.Builder,
DocumentClassifierProperties>
Provides information about a document classifier.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
final 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.final String
The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.final String
The Amazon Resource Name (ARN) that identifies the document classifier.final Instant
endTime()
The time that training the document classifier completed.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final String
The Amazon Resource Number (ARN) of the flywheelfinal <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
The input data configuration that you supplied when you created the document classifier for training.final LanguageCode
The language code for the language of the documents that the classifier was trained on.final String
The language code for the language of the documents that the classifier was trained on.final String
message()
Additional information about the status of the classifier.final DocumentClassifierMode
mode()
Indicates the mode in which the specific classifier was trained.final String
Indicates the mode in which the specific classifier was trained.final String
ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models.Provides output results configuration parameters for custom classifier jobs.static Class
<? extends DocumentClassifierProperties.Builder> final String
The Amazon Resource Name (ARN) of the source model.final ModelStatus
status()
The status of the document classifier.final String
The status of the document classifier.final Instant
The time that the document classifier was submitted for training.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final Instant
The time that training of the document classifier was completed.final Instant
Indicates the time when the training starts on documentation classifiers.final String
The version name that you assigned to the document classifier.final String
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.final VpcConfig
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.ToCopyableBuilder
copy
-
Method Details
-
documentClassifierArn
The Amazon Resource Name (ARN) that identifies the document classifier.
- Returns:
- The Amazon Resource Name (ARN) that identifies the document classifier.
-
languageCode
The language code for the language of the documents that the classifier was trained on.
If the service returns an enum value that is not available in the current SDK version,
languageCode
will returnLanguageCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlanguageCodeAsString()
.- Returns:
- The language code for the language of the documents that the classifier was trained on.
- See Also:
-
languageCodeAsString
The language code for the language of the documents that the classifier was trained on.
If the service returns an enum value that is not available in the current SDK version,
languageCode
will returnLanguageCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlanguageCodeAsString()
.- Returns:
- The language code for the language of the documents that the classifier was trained on.
- 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.If the service returns an enum value that is not available in the current SDK version,
status
will returnModelStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- 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. - See Also:
-
statusAsString
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.If the service returns an enum value that is not available in the current SDK version,
status
will returnModelStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- 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. - See Also:
-
message
Additional information about the status of the classifier.
- Returns:
- Additional information about the status of the classifier.
-
submitTime
The time that the document classifier was submitted for training.
- Returns:
- The time that the document classifier was submitted for training.
-
endTime
The time that training the document classifier completed.
- Returns:
- The time that training the document classifier completed.
-
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:
- 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.
-
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:
- 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.
-
inputDataConfig
The input data configuration that you supplied when you created the document classifier for training.
- Returns:
- The input data configuration that you supplied when you created the document classifier for training.
-
outputDataConfig
Provides output results configuration parameters for custom classifier jobs.
- Returns:
- Provides output results configuration parameters for custom classifier jobs.
-
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:
- 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
The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.
- Returns:
- The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.
-
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:
- 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"
-
-
-
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:
- 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.
-
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.
If the service returns an enum value that is not available in the current SDK version,
mode
will returnDocumentClassifierMode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommodeAsString()
.- Returns:
- 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.
- See Also:
-
modeAsString
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.
If the service returns an enum value that is not available in the current SDK version,
mode
will returnDocumentClassifierMode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommodeAsString()
.- Returns:
- 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.
- 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"
- Returns:
- 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"
-
-
-
versionName
The version name that you assigned to the document classifier.
- Returns:
- The version name that you assigned to the document classifier.
-
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:
- 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.
-
flywheelArn
The Amazon Resource Number (ARN) of the flywheel
- Returns:
- The Amazon Resource Number (ARN) of the flywheel
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<DocumentClassifierProperties.Builder,
DocumentClassifierProperties> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-