All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.comprehend.model.EntityRecognizerProperties Maven / Gradle / Ivy

/*
 * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.comprehend.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Describes information about an entity recognizer. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EntityRecognizerProperties implements Serializable, Cloneable, StructuredPojo { /** *

* The Amazon Resource Name (ARN) that identifies the entity recognizer. *

*/ private String entityRecognizerArn; /** *

* The language of the input documents. All documents must be in the same language. Only English ("en") is currently * supported. *

*/ private String languageCode; /** *

* Provides the status of the entity recognizer. *

*/ private String status; /** *

* A description of the status of the recognizer. *

*/ private String message; /** *

* The time that the recognizer was submitted for processing. *

*/ private java.util.Date submitTime; /** *

* The time that the recognizer creation completed. *

*/ private java.util.Date endTime; /** *

* The time that training of the entity recognizer started. *

*/ private java.util.Date trainingStartTime; /** *

* The time that training of the entity recognizer was completed. *

*/ private java.util.Date trainingEndTime; /** *

* The input data properties of an entity recognizer. *

*/ private EntityRecognizerInputDataConfig inputDataConfig; /** *

* Provides information about an entity recognizer. *

*/ private EntityRecognizerMetadata recognizerMetadata; /** *

* The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon Comprehend read * access to your input data. *

*/ private String dataAccessRoleArn; /** *

* ID for the AWS 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" *

    *
  • *
*/ private String volumeKmsKeyId; /** *

* Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for * your custom entity recognizer. For more information, see Amazon VPC. *

*/ private VpcConfig vpcConfig; /** *

* ID for the AWS Key Management Service (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" *

    *
  • *
*/ private String modelKmsKeyId; /** *

* The version name you assigned to the entity recognizer. *

*/ private String versionName; /** *

* The Amazon Resource Name (ARN) of the source model. This model was imported from a different AWS account to * create the entity recognizer model in your AWS account. *

*/ private String sourceModelArn; /** *

* The Amazon Resource Name (ARN) that identifies the entity recognizer. *

* * @param entityRecognizerArn * The Amazon Resource Name (ARN) that identifies the entity recognizer. */ public void setEntityRecognizerArn(String entityRecognizerArn) { this.entityRecognizerArn = entityRecognizerArn; } /** *

* The Amazon Resource Name (ARN) that identifies the entity recognizer. *

* * @return The Amazon Resource Name (ARN) that identifies the entity recognizer. */ public String getEntityRecognizerArn() { return this.entityRecognizerArn; } /** *

* The Amazon Resource Name (ARN) that identifies the entity recognizer. *

* * @param entityRecognizerArn * The Amazon Resource Name (ARN) that identifies the entity recognizer. * @return Returns a reference to this object so that method calls can be chained together. */ public EntityRecognizerProperties withEntityRecognizerArn(String entityRecognizerArn) { setEntityRecognizerArn(entityRecognizerArn); return this; } /** *

* The language of the input documents. All documents must be in the same language. Only English ("en") is currently * supported. *

* * @param languageCode * The language of the input documents. All documents must be in the same language. Only English ("en") is * currently supported. * @see LanguageCode */ public void setLanguageCode(String languageCode) { this.languageCode = languageCode; } /** *

* The language of the input documents. All documents must be in the same language. Only English ("en") is currently * supported. *

* * @return The language of the input documents. All documents must be in the same language. Only English ("en") is * currently supported. * @see LanguageCode */ public String getLanguageCode() { return this.languageCode; } /** *

* The language of the input documents. All documents must be in the same language. Only English ("en") is currently * supported. *

* * @param languageCode * The language of the input documents. All documents must be in the same language. Only English ("en") is * currently supported. * @return Returns a reference to this object so that method calls can be chained together. * @see LanguageCode */ public EntityRecognizerProperties withLanguageCode(String languageCode) { setLanguageCode(languageCode); return this; } /** *

* The language of the input documents. All documents must be in the same language. Only English ("en") is currently * supported. *

* * @param languageCode * The language of the input documents. All documents must be in the same language. Only English ("en") is * currently supported. * @return Returns a reference to this object so that method calls can be chained together. * @see LanguageCode */ public EntityRecognizerProperties withLanguageCode(LanguageCode languageCode) { this.languageCode = languageCode.toString(); return this; } /** *

* Provides the status of the entity recognizer. *

* * @param status * Provides the status of the entity recognizer. * @see ModelStatus */ public void setStatus(String status) { this.status = status; } /** *

* Provides the status of the entity recognizer. *

* * @return Provides the status of the entity recognizer. * @see ModelStatus */ public String getStatus() { return this.status; } /** *

* Provides the status of the entity recognizer. *

* * @param status * Provides the status of the entity recognizer. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelStatus */ public EntityRecognizerProperties withStatus(String status) { setStatus(status); return this; } /** *

* Provides the status of the entity recognizer. *

* * @param status * Provides the status of the entity recognizer. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelStatus */ public EntityRecognizerProperties withStatus(ModelStatus status) { this.status = status.toString(); return this; } /** *

* A description of the status of the recognizer. *

* * @param message * A description of the status of the recognizer. */ public void setMessage(String message) { this.message = message; } /** *

* A description of the status of the recognizer. *

* * @return A description of the status of the recognizer. */ public String getMessage() { return this.message; } /** *

* A description of the status of the recognizer. *

* * @param message * A description of the status of the recognizer. * @return Returns a reference to this object so that method calls can be chained together. */ public EntityRecognizerProperties withMessage(String message) { setMessage(message); return this; } /** *

* The time that the recognizer was submitted for processing. *

* * @param submitTime * The time that the recognizer was submitted for processing. */ public void setSubmitTime(java.util.Date submitTime) { this.submitTime = submitTime; } /** *

* The time that the recognizer was submitted for processing. *

* * @return The time that the recognizer was submitted for processing. */ public java.util.Date getSubmitTime() { return this.submitTime; } /** *

* The time that the recognizer was submitted for processing. *

* * @param submitTime * The time that the recognizer was submitted for processing. * @return Returns a reference to this object so that method calls can be chained together. */ public EntityRecognizerProperties withSubmitTime(java.util.Date submitTime) { setSubmitTime(submitTime); return this; } /** *

* The time that the recognizer creation completed. *

* * @param endTime * The time that the recognizer creation completed. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

* The time that the recognizer creation completed. *

* * @return The time that the recognizer creation completed. */ public java.util.Date getEndTime() { return this.endTime; } /** *

* The time that the recognizer creation completed. *

* * @param endTime * The time that the recognizer creation completed. * @return Returns a reference to this object so that method calls can be chained together. */ public EntityRecognizerProperties withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

* The time that training of the entity recognizer started. *

* * @param trainingStartTime * The time that training of the entity recognizer started. */ public void setTrainingStartTime(java.util.Date trainingStartTime) { this.trainingStartTime = trainingStartTime; } /** *

* The time that training of the entity recognizer started. *

* * @return The time that training of the entity recognizer started. */ public java.util.Date getTrainingStartTime() { return this.trainingStartTime; } /** *

* The time that training of the entity recognizer started. *

* * @param trainingStartTime * The time that training of the entity recognizer started. * @return Returns a reference to this object so that method calls can be chained together. */ public EntityRecognizerProperties withTrainingStartTime(java.util.Date trainingStartTime) { setTrainingStartTime(trainingStartTime); return this; } /** *

* The time that training of the entity recognizer was completed. *

* * @param trainingEndTime * The time that training of the entity recognizer was completed. */ public void setTrainingEndTime(java.util.Date trainingEndTime) { this.trainingEndTime = trainingEndTime; } /** *

* The time that training of the entity recognizer was completed. *

* * @return The time that training of the entity recognizer was completed. */ public java.util.Date getTrainingEndTime() { return this.trainingEndTime; } /** *

* The time that training of the entity recognizer was completed. *

* * @param trainingEndTime * The time that training of the entity recognizer was completed. * @return Returns a reference to this object so that method calls can be chained together. */ public EntityRecognizerProperties withTrainingEndTime(java.util.Date trainingEndTime) { setTrainingEndTime(trainingEndTime); return this; } /** *

* The input data properties of an entity recognizer. *

* * @param inputDataConfig * The input data properties of an entity recognizer. */ public void setInputDataConfig(EntityRecognizerInputDataConfig inputDataConfig) { this.inputDataConfig = inputDataConfig; } /** *

* The input data properties of an entity recognizer. *

* * @return The input data properties of an entity recognizer. */ public EntityRecognizerInputDataConfig getInputDataConfig() { return this.inputDataConfig; } /** *

* The input data properties of an entity recognizer. *

* * @param inputDataConfig * The input data properties of an entity recognizer. * @return Returns a reference to this object so that method calls can be chained together. */ public EntityRecognizerProperties withInputDataConfig(EntityRecognizerInputDataConfig inputDataConfig) { setInputDataConfig(inputDataConfig); return this; } /** *

* Provides information about an entity recognizer. *

* * @param recognizerMetadata * Provides information about an entity recognizer. */ public void setRecognizerMetadata(EntityRecognizerMetadata recognizerMetadata) { this.recognizerMetadata = recognizerMetadata; } /** *

* Provides information about an entity recognizer. *

* * @return Provides information about an entity recognizer. */ public EntityRecognizerMetadata getRecognizerMetadata() { return this.recognizerMetadata; } /** *

* Provides information about an entity recognizer. *

* * @param recognizerMetadata * Provides information about an entity recognizer. * @return Returns a reference to this object so that method calls can be chained together. */ public EntityRecognizerProperties withRecognizerMetadata(EntityRecognizerMetadata recognizerMetadata) { setRecognizerMetadata(recognizerMetadata); return this; } /** *

* The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon Comprehend read * access to your input data. *

* * @param dataAccessRoleArn * The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon Comprehend * read access to your input data. */ public void setDataAccessRoleArn(String dataAccessRoleArn) { this.dataAccessRoleArn = dataAccessRoleArn; } /** *

* The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon Comprehend read * access to your input data. *

* * @return The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon * Comprehend read access to your input data. */ public String getDataAccessRoleArn() { return this.dataAccessRoleArn; } /** *

* The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon Comprehend read * access to your input data. *

* * @param dataAccessRoleArn * The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon Comprehend * read access to your input data. * @return Returns a reference to this object so that method calls can be chained together. */ public EntityRecognizerProperties withDataAccessRoleArn(String dataAccessRoleArn) { setDataAccessRoleArn(dataAccessRoleArn); return this; } /** *

* ID for the AWS 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" *

    *
  • *
* * @param volumeKmsKeyId * ID for the AWS 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" *

    *
  • */ public void setVolumeKmsKeyId(String volumeKmsKeyId) { this.volumeKmsKeyId = volumeKmsKeyId; } /** *

    * ID for the AWS 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" *

      *
    • *
    * * @return ID for the AWS 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" *

      *
    • */ public String getVolumeKmsKeyId() { return this.volumeKmsKeyId; } /** *

      * ID for the AWS 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" *

        *
      • *
      * * @param volumeKmsKeyId * ID for the AWS 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" *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public EntityRecognizerProperties withVolumeKmsKeyId(String volumeKmsKeyId) { setVolumeKmsKeyId(volumeKmsKeyId); return this; } /** *

        * Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for * your custom entity recognizer. For more information, see Amazon VPC. *

        * * @param vpcConfig * Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using * for your custom entity recognizer. For more information, see Amazon VPC. */ public void setVpcConfig(VpcConfig vpcConfig) { this.vpcConfig = vpcConfig; } /** *

        * Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for * your custom entity recognizer. For more information, see Amazon VPC. *

        * * @return Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using * for your custom entity recognizer. For more information, see Amazon VPC. */ public VpcConfig getVpcConfig() { return this.vpcConfig; } /** *

        * Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for * your custom entity recognizer. For more information, see Amazon VPC. *

        * * @param vpcConfig * Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using * for your custom entity recognizer. For more information, see Amazon VPC. * @return Returns a reference to this object so that method calls can be chained together. */ public EntityRecognizerProperties withVpcConfig(VpcConfig vpcConfig) { setVpcConfig(vpcConfig); return this; } /** *

        * ID for the AWS Key Management Service (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" *

          *
        • *
        * * @param modelKmsKeyId * ID for the AWS Key Management Service (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" *

          *
        • */ public void setModelKmsKeyId(String modelKmsKeyId) { this.modelKmsKeyId = modelKmsKeyId; } /** *

          * ID for the AWS Key Management Service (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" *

            *
          • *
          * * @return ID for the AWS Key Management Service (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" *

            *
          • */ public String getModelKmsKeyId() { return this.modelKmsKeyId; } /** *

            * ID for the AWS Key Management Service (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" *

              *
            • *
            * * @param modelKmsKeyId * ID for the AWS Key Management Service (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" *

              *
            • * @return Returns a reference to this object so that method calls can be chained together. */ public EntityRecognizerProperties withModelKmsKeyId(String modelKmsKeyId) { setModelKmsKeyId(modelKmsKeyId); return this; } /** *

              * The version name you assigned to the entity recognizer. *

              * * @param versionName * The version name you assigned to the entity recognizer. */ public void setVersionName(String versionName) { this.versionName = versionName; } /** *

              * The version name you assigned to the entity recognizer. *

              * * @return The version name you assigned to the entity recognizer. */ public String getVersionName() { return this.versionName; } /** *

              * The version name you assigned to the entity recognizer. *

              * * @param versionName * The version name you assigned to the entity recognizer. * @return Returns a reference to this object so that method calls can be chained together. */ public EntityRecognizerProperties withVersionName(String versionName) { setVersionName(versionName); return this; } /** *

              * The Amazon Resource Name (ARN) of the source model. This model was imported from a different AWS account to * create the entity recognizer model in your AWS account. *

              * * @param sourceModelArn * The Amazon Resource Name (ARN) of the source model. This model was imported from a different AWS account * to create the entity recognizer model in your AWS account. */ public void setSourceModelArn(String sourceModelArn) { this.sourceModelArn = sourceModelArn; } /** *

              * The Amazon Resource Name (ARN) of the source model. This model was imported from a different AWS account to * create the entity recognizer model in your AWS account. *

              * * @return The Amazon Resource Name (ARN) of the source model. This model was imported from a different AWS account * to create the entity recognizer model in your AWS account. */ public String getSourceModelArn() { return this.sourceModelArn; } /** *

              * The Amazon Resource Name (ARN) of the source model. This model was imported from a different AWS account to * create the entity recognizer model in your AWS account. *

              * * @param sourceModelArn * The Amazon Resource Name (ARN) of the source model. This model was imported from a different AWS account * to create the entity recognizer model in your AWS account. * @return Returns a reference to this object so that method calls can be chained together. */ public EntityRecognizerProperties withSourceModelArn(String sourceModelArn) { setSourceModelArn(sourceModelArn); return this; } /** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getEntityRecognizerArn() != null) sb.append("EntityRecognizerArn: ").append(getEntityRecognizerArn()).append(","); if (getLanguageCode() != null) sb.append("LanguageCode: ").append(getLanguageCode()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getMessage() != null) sb.append("Message: ").append(getMessage()).append(","); if (getSubmitTime() != null) sb.append("SubmitTime: ").append(getSubmitTime()).append(","); if (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).append(","); if (getTrainingStartTime() != null) sb.append("TrainingStartTime: ").append(getTrainingStartTime()).append(","); if (getTrainingEndTime() != null) sb.append("TrainingEndTime: ").append(getTrainingEndTime()).append(","); if (getInputDataConfig() != null) sb.append("InputDataConfig: ").append(getInputDataConfig()).append(","); if (getRecognizerMetadata() != null) sb.append("RecognizerMetadata: ").append("***Sensitive Data Redacted***").append(","); if (getDataAccessRoleArn() != null) sb.append("DataAccessRoleArn: ").append(getDataAccessRoleArn()).append(","); if (getVolumeKmsKeyId() != null) sb.append("VolumeKmsKeyId: ").append(getVolumeKmsKeyId()).append(","); if (getVpcConfig() != null) sb.append("VpcConfig: ").append(getVpcConfig()).append(","); if (getModelKmsKeyId() != null) sb.append("ModelKmsKeyId: ").append(getModelKmsKeyId()).append(","); if (getVersionName() != null) sb.append("VersionName: ").append(getVersionName()).append(","); if (getSourceModelArn() != null) sb.append("SourceModelArn: ").append(getSourceModelArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EntityRecognizerProperties == false) return false; EntityRecognizerProperties other = (EntityRecognizerProperties) obj; if (other.getEntityRecognizerArn() == null ^ this.getEntityRecognizerArn() == null) return false; if (other.getEntityRecognizerArn() != null && other.getEntityRecognizerArn().equals(this.getEntityRecognizerArn()) == false) return false; if (other.getLanguageCode() == null ^ this.getLanguageCode() == null) return false; if (other.getLanguageCode() != null && other.getLanguageCode().equals(this.getLanguageCode()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getMessage() == null ^ this.getMessage() == null) return false; if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false) return false; if (other.getSubmitTime() == null ^ this.getSubmitTime() == null) return false; if (other.getSubmitTime() != null && other.getSubmitTime().equals(this.getSubmitTime()) == false) return false; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; if (other.getTrainingStartTime() == null ^ this.getTrainingStartTime() == null) return false; if (other.getTrainingStartTime() != null && other.getTrainingStartTime().equals(this.getTrainingStartTime()) == false) return false; if (other.getTrainingEndTime() == null ^ this.getTrainingEndTime() == null) return false; if (other.getTrainingEndTime() != null && other.getTrainingEndTime().equals(this.getTrainingEndTime()) == false) return false; if (other.getInputDataConfig() == null ^ this.getInputDataConfig() == null) return false; if (other.getInputDataConfig() != null && other.getInputDataConfig().equals(this.getInputDataConfig()) == false) return false; if (other.getRecognizerMetadata() == null ^ this.getRecognizerMetadata() == null) return false; if (other.getRecognizerMetadata() != null && other.getRecognizerMetadata().equals(this.getRecognizerMetadata()) == false) return false; if (other.getDataAccessRoleArn() == null ^ this.getDataAccessRoleArn() == null) return false; if (other.getDataAccessRoleArn() != null && other.getDataAccessRoleArn().equals(this.getDataAccessRoleArn()) == false) return false; if (other.getVolumeKmsKeyId() == null ^ this.getVolumeKmsKeyId() == null) return false; if (other.getVolumeKmsKeyId() != null && other.getVolumeKmsKeyId().equals(this.getVolumeKmsKeyId()) == false) return false; if (other.getVpcConfig() == null ^ this.getVpcConfig() == null) return false; if (other.getVpcConfig() != null && other.getVpcConfig().equals(this.getVpcConfig()) == false) return false; if (other.getModelKmsKeyId() == null ^ this.getModelKmsKeyId() == null) return false; if (other.getModelKmsKeyId() != null && other.getModelKmsKeyId().equals(this.getModelKmsKeyId()) == false) return false; if (other.getVersionName() == null ^ this.getVersionName() == null) return false; if (other.getVersionName() != null && other.getVersionName().equals(this.getVersionName()) == false) return false; if (other.getSourceModelArn() == null ^ this.getSourceModelArn() == null) return false; if (other.getSourceModelArn() != null && other.getSourceModelArn().equals(this.getSourceModelArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEntityRecognizerArn() == null) ? 0 : getEntityRecognizerArn().hashCode()); hashCode = prime * hashCode + ((getLanguageCode() == null) ? 0 : getLanguageCode().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); hashCode = prime * hashCode + ((getSubmitTime() == null) ? 0 : getSubmitTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getTrainingStartTime() == null) ? 0 : getTrainingStartTime().hashCode()); hashCode = prime * hashCode + ((getTrainingEndTime() == null) ? 0 : getTrainingEndTime().hashCode()); hashCode = prime * hashCode + ((getInputDataConfig() == null) ? 0 : getInputDataConfig().hashCode()); hashCode = prime * hashCode + ((getRecognizerMetadata() == null) ? 0 : getRecognizerMetadata().hashCode()); hashCode = prime * hashCode + ((getDataAccessRoleArn() == null) ? 0 : getDataAccessRoleArn().hashCode()); hashCode = prime * hashCode + ((getVolumeKmsKeyId() == null) ? 0 : getVolumeKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getVpcConfig() == null) ? 0 : getVpcConfig().hashCode()); hashCode = prime * hashCode + ((getModelKmsKeyId() == null) ? 0 : getModelKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getVersionName() == null) ? 0 : getVersionName().hashCode()); hashCode = prime * hashCode + ((getSourceModelArn() == null) ? 0 : getSourceModelArn().hashCode()); return hashCode; } @Override public EntityRecognizerProperties clone() { try { return (EntityRecognizerProperties) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.comprehend.model.transform.EntityRecognizerPropertiesMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy