/* * 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 CreateVocabularyResult implements Serializable { /** *
* The name you chose for your custom vocabulary. *
*
* Constraints:
* Length: 1 - 200
* Pattern: ^[0-9a-zA-Z._-]+
*/
private String vocabularyName;
/**
*
* The language code you selected for your custom vocabulary. *
*
* Constraints:
* Allowed Values: af-ZA, ar-AE, ar-SA, da-DK, de-CH, de-DE, en-AB,
* en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA,
* fr-FR, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR,
* pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN, zh-TW, th-TH, en-ZA, en-NZ,
* vi-VN, sv-SE
*/
private String languageCode;
/**
*
* The processing state of your custom vocabulary. If the state is
* READY
, you can use the custom vocabulary in a
* StartTranscriptionJob
request.
*
* Constraints:
* Allowed Values: PENDING, READY, FAILED
*/
private String vocabularyState;
/**
*
* The date and time you created your custom vocabulary. *
*
* Timestamps are in the format
* YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
* 2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7
* on May 4, 2022.
*
* If VocabularyState
is FAILED
,
* FailureReason
contains information about why the custom
* vocabulary request failed. See also: Common Errors.
*
* The name you chose for your custom vocabulary. *
*
* Constraints:
* Length: 1 - 200
* Pattern: ^[0-9a-zA-Z._-]+
*
* @return
* The name you chose for your custom vocabulary. *
*/ public String getVocabularyName() { return vocabularyName; } /** ** The name you chose for your custom vocabulary. *
*
* Constraints:
* Length: 1 - 200
* Pattern: ^[0-9a-zA-Z._-]+
*
* @param vocabularyName
* The name you chose for your custom vocabulary. *
*/ public void setVocabularyName(String vocabularyName) { this.vocabularyName = vocabularyName; } /** ** The name you chose for your custom vocabulary. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 200
* Pattern: ^[0-9a-zA-Z._-]+
*
* @param vocabularyName
* The name you chose for your custom vocabulary. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateVocabularyResult withVocabularyName(String vocabularyName) { this.vocabularyName = vocabularyName; return this; } /** ** The language code you selected for your custom vocabulary. *
*
* Constraints:
* Allowed Values: af-ZA, ar-AE, ar-SA, da-DK, de-CH, de-DE, en-AB,
* en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA,
* fr-FR, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR,
* pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN, zh-TW, th-TH, en-ZA, en-NZ,
* vi-VN, sv-SE
*
* @return
* The language code you selected for your custom vocabulary. *
* @see LanguageCode */ public String getLanguageCode() { return languageCode; } /** ** The language code you selected for your custom vocabulary. *
*
* Constraints:
* Allowed Values: af-ZA, ar-AE, ar-SA, da-DK, de-CH, de-DE, en-AB,
* en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA,
* fr-FR, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR,
* pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN, zh-TW, th-TH, en-ZA, en-NZ,
* vi-VN, sv-SE
*
* @param languageCode
* The language code you selected for your custom vocabulary. *
* @see LanguageCode */ public void setLanguageCode(String languageCode) { this.languageCode = languageCode; } /** ** The language code you selected for your custom vocabulary. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: af-ZA, ar-AE, ar-SA, da-DK, de-CH, de-DE, en-AB,
* en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA,
* fr-FR, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR,
* pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN, zh-TW, th-TH, en-ZA, en-NZ,
* vi-VN, sv-SE
*
* @param languageCode
* The language code you selected for your custom vocabulary. *
* @return A reference to this updated object so that method calls can be * chained together. * @see LanguageCode */ public CreateVocabularyResult withLanguageCode(String languageCode) { this.languageCode = languageCode; return this; } /** ** The language code you selected for your custom vocabulary. *
*
* Constraints:
* Allowed Values: af-ZA, ar-AE, ar-SA, da-DK, de-CH, de-DE, en-AB,
* en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA,
* fr-FR, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR,
* pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN, zh-TW, th-TH, en-ZA, en-NZ,
* vi-VN, sv-SE
*
* @param languageCode
* The language code you selected for your custom vocabulary. *
* @see LanguageCode */ public void setLanguageCode(LanguageCode languageCode) { this.languageCode = languageCode.toString(); } /** ** The language code you selected for your custom vocabulary. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: af-ZA, ar-AE, ar-SA, da-DK, de-CH, de-DE, en-AB,
* en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA,
* fr-FR, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR,
* pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN, zh-TW, th-TH, en-ZA, en-NZ,
* vi-VN, sv-SE
*
* @param languageCode
* The language code you selected for your custom vocabulary. *
* @return A reference to this updated object so that method calls can be * chained together. * @see LanguageCode */ public CreateVocabularyResult withLanguageCode(LanguageCode languageCode) { this.languageCode = languageCode.toString(); return this; } /** *
* The processing state of your custom vocabulary. If the state is
* READY
, you can use the custom vocabulary in a
* StartTranscriptionJob
request.
*
* Constraints:
* Allowed Values: PENDING, READY, FAILED
*
* @return
* The processing state of your custom vocabulary. If the state is
* READY
, you can use the custom vocabulary in a
* StartTranscriptionJob
request.
*
* The processing state of your custom vocabulary. If the state is
* READY
, you can use the custom vocabulary in a
* StartTranscriptionJob
request.
*
* Constraints:
* Allowed Values: PENDING, READY, FAILED
*
* @param vocabularyState
* The processing state of your custom vocabulary. If the state
* is READY
, you can use the custom vocabulary in a
* StartTranscriptionJob
request.
*
* The processing state of your custom vocabulary. If the state is
* READY
, you can use the custom vocabulary in a
* StartTranscriptionJob
request.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: PENDING, READY, FAILED
*
* @param vocabularyState
* The processing state of your custom vocabulary. If the state
* is READY
, you can use the custom vocabulary in a
* StartTranscriptionJob
request.
*
* The processing state of your custom vocabulary. If the state is
* READY
, you can use the custom vocabulary in a
* StartTranscriptionJob
request.
*
* Constraints:
* Allowed Values: PENDING, READY, FAILED
*
* @param vocabularyState
* The processing state of your custom vocabulary. If the state
* is READY
, you can use the custom vocabulary in a
* StartTranscriptionJob
request.
*
* The processing state of your custom vocabulary. If the state is
* READY
, you can use the custom vocabulary in a
* StartTranscriptionJob
request.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: PENDING, READY, FAILED
*
* @param vocabularyState
* The processing state of your custom vocabulary. If the state
* is READY
, you can use the custom vocabulary in a
* StartTranscriptionJob
request.
*
* The date and time you created your custom vocabulary. *
*
* Timestamps are in the format
* YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
* 2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7
* on May 4, 2022.
*
* The date and time you created your custom vocabulary. *
*
* Timestamps are in the format
* YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
* 2022-05-04T12:32:58.761000-07:00
represents 12:32 PM
* UTC-7 on May 4, 2022.
*
* The date and time you created your custom vocabulary. *
*
* Timestamps are in the format
* YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
* 2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7
* on May 4, 2022.
*
* The date and time you created your custom vocabulary. *
*
* Timestamps are in the format
* YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
* 2022-05-04T12:32:58.761000-07:00
represents 12:32
* PM UTC-7 on May 4, 2022.
*
* The date and time you created your custom vocabulary. *
*
* Timestamps are in the format
* YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
* 2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7
* on May 4, 2022.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param lastModifiedTime
* The date and time you created your custom vocabulary. *
*
* Timestamps are in the format
* YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
* 2022-05-04T12:32:58.761000-07:00
represents 12:32
* PM UTC-7 on May 4, 2022.
*
* If VocabularyState
is FAILED
,
* FailureReason
contains information about why the custom
* vocabulary request failed. See also: Common Errors.
*
* If VocabularyState
is FAILED
,
* FailureReason
contains information about why the
* custom vocabulary request failed. See also: Common Errors.
*
* If VocabularyState
is FAILED
,
* FailureReason
contains information about why the custom
* vocabulary request failed. See also: Common Errors.
*
* If VocabularyState
is FAILED
,
* FailureReason
contains information about why the
* custom vocabulary request failed. See also: Common Errors.
*
* If VocabularyState
is FAILED
,
* FailureReason
contains information about why the custom
* vocabulary request failed. See also: Common Errors.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param failureReason
* If VocabularyState
is FAILED
,
* FailureReason
contains information about why the
* custom vocabulary request failed. See also: Common Errors.
*