/* * Copyright 2010-2023 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.transcribe.model; import java.io.Serializable; public class CreateLanguageModelResult implements Serializable { /** *

* The language code you selected for your custom language model. *

*

* Constraints:
* Allowed Values: en-US, hi-IN, es-US, en-GB, en-AU, de-DE, ja-JP */ private String languageCode; /** *

* The Amazon Transcribe standard language model, or base model, you * specified when creating your custom language model. *

*

* Constraints:
* Allowed Values: NarrowBand, WideBand */ private String baseModelName; /** *

* The name of your custom language model. *

*

* Constraints:
* Length: 1 - 200
* Pattern: ^[0-9a-zA-Z._-]+
*/ private String modelName; /** *

* Lists your data access role ARN (Amazon Resource Name) and the Amazon S3 * locations you provided for your training (S3Uri) and tuning * (TuningDataS3Uri) data. *

*/ private InputDataConfig inputDataConfig; /** *

* The status of your custom language model. When the status displays as * COMPLETED, your model is ready to use. *

*

* Constraints:
* Allowed Values: IN_PROGRESS, FAILED, COMPLETED */ private String modelStatus; /** *

* The language code you selected for your custom language model. *

*

* Constraints:
* Allowed Values: en-US, hi-IN, es-US, en-GB, en-AU, de-DE, ja-JP * * @return

* The language code you selected for your custom language model. *

* @see CLMLanguageCode */ public String getLanguageCode() { return languageCode; } /** *

* The language code you selected for your custom language model. *

*

* Constraints:
* Allowed Values: en-US, hi-IN, es-US, en-GB, en-AU, de-DE, ja-JP * * @param languageCode

* The language code you selected for your custom language model. *

* @see CLMLanguageCode */ public void setLanguageCode(String languageCode) { this.languageCode = languageCode; } /** *

* The language code you selected for your custom language model. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Allowed Values: en-US, hi-IN, es-US, en-GB, en-AU, de-DE, ja-JP * * @param languageCode

* The language code you selected for your custom language model. *

* @return A reference to this updated object so that method calls can be * chained together. * @see CLMLanguageCode */ public CreateLanguageModelResult withLanguageCode(String languageCode) { this.languageCode = languageCode; return this; } /** *

* The language code you selected for your custom language model. *

*

* Constraints:
* Allowed Values: en-US, hi-IN, es-US, en-GB, en-AU, de-DE, ja-JP * * @param languageCode

* The language code you selected for your custom language model. *

* @see CLMLanguageCode */ public void setLanguageCode(CLMLanguageCode languageCode) { this.languageCode = languageCode.toString(); } /** *

* The language code you selected for your custom language model. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Allowed Values: en-US, hi-IN, es-US, en-GB, en-AU, de-DE, ja-JP * * @param languageCode

* The language code you selected for your custom language model. *

* @return A reference to this updated object so that method calls can be * chained together. * @see CLMLanguageCode */ public CreateLanguageModelResult withLanguageCode(CLMLanguageCode languageCode) { this.languageCode = languageCode.toString(); return this; } /** *

* The Amazon Transcribe standard language model, or base model, you * specified when creating your custom language model. *

*

* Constraints:
* Allowed Values: NarrowBand, WideBand * * @return

* The Amazon Transcribe standard language model, or base model, you * specified when creating your custom language model. *

* @see BaseModelName */ public String getBaseModelName() { return baseModelName; } /** *

* The Amazon Transcribe standard language model, or base model, you * specified when creating your custom language model. *

*

* Constraints:
* Allowed Values: NarrowBand, WideBand * * @param baseModelName

* The Amazon Transcribe standard language model, or base model, * you specified when creating your custom language model. *

* @see BaseModelName */ public void setBaseModelName(String baseModelName) { this.baseModelName = baseModelName; } /** *

* The Amazon Transcribe standard language model, or base model, you * specified when creating your custom language model. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Allowed Values: NarrowBand, WideBand * * @param baseModelName

* The Amazon Transcribe standard language model, or base model, * you specified when creating your custom language model. *

* @return A reference to this updated object so that method calls can be * chained together. * @see BaseModelName */ public CreateLanguageModelResult withBaseModelName(String baseModelName) { this.baseModelName = baseModelName; return this; } /** *

* The Amazon Transcribe standard language model, or base model, you * specified when creating your custom language model. *

*

* Constraints:
* Allowed Values: NarrowBand, WideBand * * @param baseModelName

* The Amazon Transcribe standard language model, or base model, * you specified when creating your custom language model. *

* @see BaseModelName */ public void setBaseModelName(BaseModelName baseModelName) { this.baseModelName = baseModelName.toString(); } /** *

* The Amazon Transcribe standard language model, or base model, you * specified when creating your custom language model. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Allowed Values: NarrowBand, WideBand * * @param baseModelName

* The Amazon Transcribe standard language model, or base model, * you specified when creating your custom language model. *

* @return A reference to this updated object so that method calls can be * chained together. * @see BaseModelName */ public CreateLanguageModelResult withBaseModelName(BaseModelName baseModelName) { this.baseModelName = baseModelName.toString(); return this; } /** *

* The name of your custom language model. *

*

* Constraints:
* Length: 1 - 200
* Pattern: ^[0-9a-zA-Z._-]+
* * @return

* The name of your custom language model. *

*/ public String getModelName() { return modelName; } /** *

* The name of your custom language model. *

*

* Constraints:
* Length: 1 - 200
* Pattern: ^[0-9a-zA-Z._-]+
* * @param modelName

* The name of your custom language model. *

*/ public void setModelName(String modelName) { this.modelName = modelName; } /** *

* The name of your custom language model. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Length: 1 - 200
* Pattern: ^[0-9a-zA-Z._-]+
* * @param modelName

* The name of your custom language model. *

* @return A reference to this updated object so that method calls can be * chained together. */ public CreateLanguageModelResult withModelName(String modelName) { this.modelName = modelName; return this; } /** *

* Lists your data access role ARN (Amazon Resource Name) and the Amazon S3 * locations you provided for your training (S3Uri) and tuning * (TuningDataS3Uri) data. *

* * @return

* Lists your data access role ARN (Amazon Resource Name) and the * Amazon S3 locations you provided for your training ( * S3Uri) and tuning (TuningDataS3Uri) * data. *

*/ public InputDataConfig getInputDataConfig() { return inputDataConfig; } /** *

* Lists your data access role ARN (Amazon Resource Name) and the Amazon S3 * locations you provided for your training (S3Uri) and tuning * (TuningDataS3Uri) data. *

* * @param inputDataConfig

* Lists your data access role ARN (Amazon Resource Name) and the * Amazon S3 locations you provided for your training ( * S3Uri) and tuning (TuningDataS3Uri) * data. *

*/ public void setInputDataConfig(InputDataConfig inputDataConfig) { this.inputDataConfig = inputDataConfig; } /** *

* Lists your data access role ARN (Amazon Resource Name) and the Amazon S3 * locations you provided for your training (S3Uri) and tuning * (TuningDataS3Uri) data. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param inputDataConfig

* Lists your data access role ARN (Amazon Resource Name) and the * Amazon S3 locations you provided for your training ( * S3Uri) and tuning (TuningDataS3Uri) * data. *

* @return A reference to this updated object so that method calls can be * chained together. */ public CreateLanguageModelResult withInputDataConfig(InputDataConfig inputDataConfig) { this.inputDataConfig = inputDataConfig; return this; } /** *

* The status of your custom language model. When the status displays as * COMPLETED, your model is ready to use. *

*

* Constraints:
* Allowed Values: IN_PROGRESS, FAILED, COMPLETED * * @return

* The status of your custom language model. When the status * displays as COMPLETED, your model is ready to use. *

* @see ModelStatus */ public String getModelStatus() { return modelStatus; } /** *

* The status of your custom language model. When the status displays as * COMPLETED, your model is ready to use. *

*

* Constraints:
* Allowed Values: IN_PROGRESS, FAILED, COMPLETED * * @param modelStatus

* The status of your custom language model. When the status * displays as COMPLETED, your model is ready to * use. *

* @see ModelStatus */ public void setModelStatus(String modelStatus) { this.modelStatus = modelStatus; } /** *

* The status of your custom language model. When the status displays as * COMPLETED, your model is ready to use. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Allowed Values: IN_PROGRESS, FAILED, COMPLETED * * @param modelStatus

* The status of your custom language model. When the status * displays as COMPLETED, your model is ready to * use. *

* @return A reference to this updated object so that method calls can be * chained together. * @see ModelStatus */ public CreateLanguageModelResult withModelStatus(String modelStatus) { this.modelStatus = modelStatus; return this; } /** *

* The status of your custom language model. When the status displays as * COMPLETED, your model is ready to use. *

*

* Constraints:
* Allowed Values: IN_PROGRESS, FAILED, COMPLETED * * @param modelStatus

* The status of your custom language model. When the status * displays as COMPLETED, your model is ready to * use. *

* @see ModelStatus */ public void setModelStatus(ModelStatus modelStatus) { this.modelStatus = modelStatus.toString(); } /** *

* The status of your custom language model. When the status displays as * COMPLETED, your model is ready to use. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Allowed Values: IN_PROGRESS, FAILED, COMPLETED * * @param modelStatus

* The status of your custom language model. When the status * displays as COMPLETED, your model is ready to * use. *

* @return A reference to this updated object so that method calls can be * chained together. * @see ModelStatus */ public CreateLanguageModelResult withModelStatus(ModelStatus modelStatus) { this.modelStatus = modelStatus.toString(); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getLanguageCode() != null) sb.append("LanguageCode: " + getLanguageCode() + ","); if (getBaseModelName() != null) sb.append("BaseModelName: " + getBaseModelName() + ","); if (getModelName() != null) sb.append("ModelName: " + getModelName() + ","); if (getInputDataConfig() != null) sb.append("InputDataConfig: " + getInputDataConfig() + ","); if (getModelStatus() != null) sb.append("ModelStatus: " + getModelStatus()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLanguageCode() == null) ? 0 : getLanguageCode().hashCode()); hashCode = prime * hashCode + ((getBaseModelName() == null) ? 0 : getBaseModelName().hashCode()); hashCode = prime * hashCode + ((getModelName() == null) ? 0 : getModelName().hashCode()); hashCode = prime * hashCode + ((getInputDataConfig() == null) ? 0 : getInputDataConfig().hashCode()); hashCode = prime * hashCode + ((getModelStatus() == null) ? 0 : getModelStatus().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateLanguageModelResult == false) return false; CreateLanguageModelResult other = (CreateLanguageModelResult) obj; if (other.getLanguageCode() == null ^ this.getLanguageCode() == null) return false; if (other.getLanguageCode() != null && other.getLanguageCode().equals(this.getLanguageCode()) == false) return false; if (other.getBaseModelName() == null ^ this.getBaseModelName() == null) return false; if (other.getBaseModelName() != null && other.getBaseModelName().equals(this.getBaseModelName()) == false) return false; if (other.getModelName() == null ^ this.getModelName() == null) return false; if (other.getModelName() != null && other.getModelName().equals(this.getModelName()) == 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.getModelStatus() == null ^ this.getModelStatus() == null) return false; if (other.getModelStatus() != null && other.getModelStatus().equals(this.getModelStatus()) == false) return false; return true; } }