/* * 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.
*
* 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.
*
* Lists your data access role ARN (Amazon Resource Name) and the
* Amazon S3 locations you provided for your training (
* S3Uri
) and tuning (TuningDataS3Uri
)
* data.
*
* Lists your data access role ARN (Amazon Resource Name) and the Amazon S3
* locations you provided for your training (S3Uri
) and tuning
* (TuningDataS3Uri
) data.
*
* Lists your data access role ARN (Amazon Resource Name) and the
* Amazon S3 locations you provided for your training (
* S3Uri
) and tuning (TuningDataS3Uri
)
* data.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*