/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Polly { namespace Model { /** *

Contains metadata describing the lexicon such as the number of lexemes, * language code, and so on. For more information, see Managing * Lexicons.

See Also:

AWS * API Reference

*/ class LexiconAttributes { public: AWS_POLLY_API LexiconAttributes(); AWS_POLLY_API LexiconAttributes(Aws::Utils::Json::JsonView jsonValue); AWS_POLLY_API LexiconAttributes& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Phonetic alphabet used in the lexicon. Valid values are ipa and * x-sampa.

*/ inline const Aws::String& GetAlphabet() const{ return m_alphabet; } /** *

Phonetic alphabet used in the lexicon. Valid values are ipa and * x-sampa.

*/ inline bool AlphabetHasBeenSet() const { return m_alphabetHasBeenSet; } /** *

Phonetic alphabet used in the lexicon. Valid values are ipa and * x-sampa.

*/ inline void SetAlphabet(const Aws::String& value) { m_alphabetHasBeenSet = true; m_alphabet = value; } /** *

Phonetic alphabet used in the lexicon. Valid values are ipa and * x-sampa.

*/ inline void SetAlphabet(Aws::String&& value) { m_alphabetHasBeenSet = true; m_alphabet = std::move(value); } /** *

Phonetic alphabet used in the lexicon. Valid values are ipa and * x-sampa.

*/ inline void SetAlphabet(const char* value) { m_alphabetHasBeenSet = true; m_alphabet.assign(value); } /** *

Phonetic alphabet used in the lexicon. Valid values are ipa and * x-sampa.

*/ inline LexiconAttributes& WithAlphabet(const Aws::String& value) { SetAlphabet(value); return *this;} /** *

Phonetic alphabet used in the lexicon. Valid values are ipa and * x-sampa.

*/ inline LexiconAttributes& WithAlphabet(Aws::String&& value) { SetAlphabet(std::move(value)); return *this;} /** *

Phonetic alphabet used in the lexicon. Valid values are ipa and * x-sampa.

*/ inline LexiconAttributes& WithAlphabet(const char* value) { SetAlphabet(value); return *this;} /** *

Language code that the lexicon applies to. A lexicon with a language code * such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, * en-WLS, and so on.

*/ inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; } /** *

Language code that the lexicon applies to. A lexicon with a language code * such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, * en-WLS, and so on.

*/ inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; } /** *

Language code that the lexicon applies to. A lexicon with a language code * such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, * en-WLS, and so on.

*/ inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; } /** *

Language code that the lexicon applies to. A lexicon with a language code * such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, * en-WLS, and so on.

*/ inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); } /** *

Language code that the lexicon applies to. A lexicon with a language code * such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, * en-WLS, and so on.

*/ inline LexiconAttributes& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;} /** *

Language code that the lexicon applies to. A lexicon with a language code * such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, * en-WLS, and so on.

*/ inline LexiconAttributes& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;} /** *

Date lexicon was last modified (a timestamp value).

*/ inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; } /** *

Date lexicon was last modified (a timestamp value).

*/ inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; } /** *

Date lexicon was last modified (a timestamp value).

*/ inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; } /** *

Date lexicon was last modified (a timestamp value).

*/ inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); } /** *

Date lexicon was last modified (a timestamp value).

*/ inline LexiconAttributes& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;} /** *

Date lexicon was last modified (a timestamp value).

*/ inline LexiconAttributes& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;} /** *

Amazon Resource Name (ARN) of the lexicon.

*/ inline const Aws::String& GetLexiconArn() const{ return m_lexiconArn; } /** *

Amazon Resource Name (ARN) of the lexicon.

*/ inline bool LexiconArnHasBeenSet() const { return m_lexiconArnHasBeenSet; } /** *

Amazon Resource Name (ARN) of the lexicon.

*/ inline void SetLexiconArn(const Aws::String& value) { m_lexiconArnHasBeenSet = true; m_lexiconArn = value; } /** *

Amazon Resource Name (ARN) of the lexicon.

*/ inline void SetLexiconArn(Aws::String&& value) { m_lexiconArnHasBeenSet = true; m_lexiconArn = std::move(value); } /** *

Amazon Resource Name (ARN) of the lexicon.

*/ inline void SetLexiconArn(const char* value) { m_lexiconArnHasBeenSet = true; m_lexiconArn.assign(value); } /** *

Amazon Resource Name (ARN) of the lexicon.

*/ inline LexiconAttributes& WithLexiconArn(const Aws::String& value) { SetLexiconArn(value); return *this;} /** *

Amazon Resource Name (ARN) of the lexicon.

*/ inline LexiconAttributes& WithLexiconArn(Aws::String&& value) { SetLexiconArn(std::move(value)); return *this;} /** *

Amazon Resource Name (ARN) of the lexicon.

*/ inline LexiconAttributes& WithLexiconArn(const char* value) { SetLexiconArn(value); return *this;} /** *

Number of lexemes in the lexicon.

*/ inline int GetLexemesCount() const{ return m_lexemesCount; } /** *

Number of lexemes in the lexicon.

*/ inline bool LexemesCountHasBeenSet() const { return m_lexemesCountHasBeenSet; } /** *

Number of lexemes in the lexicon.

*/ inline void SetLexemesCount(int value) { m_lexemesCountHasBeenSet = true; m_lexemesCount = value; } /** *

Number of lexemes in the lexicon.

*/ inline LexiconAttributes& WithLexemesCount(int value) { SetLexemesCount(value); return *this;} /** *

Total size of the lexicon, in characters.

*/ inline int GetSize() const{ return m_size; } /** *

Total size of the lexicon, in characters.

*/ inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; } /** *

Total size of the lexicon, in characters.

*/ inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; } /** *

Total size of the lexicon, in characters.

*/ inline LexiconAttributes& WithSize(int value) { SetSize(value); return *this;} private: Aws::String m_alphabet; bool m_alphabetHasBeenSet = false; LanguageCode m_languageCode; bool m_languageCodeHasBeenSet = false; Aws::Utils::DateTime m_lastModified; bool m_lastModifiedHasBeenSet = false; Aws::String m_lexiconArn; bool m_lexiconArnHasBeenSet = false; int m_lexemesCount; bool m_lexemesCountHasBeenSet = false; int m_size; bool m_sizeHasBeenSet = false; }; } // namespace Model } // namespace Polly } // namespace Aws