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

Contains summary information about the custom vocabulary.

See * Also:

AWS * API Reference

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

A unique name of the custom vocabulary.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

A unique name of the custom vocabulary.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A unique name of the custom vocabulary.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

A unique name of the custom vocabulary.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

A unique name of the custom vocabulary.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

A unique name of the custom vocabulary.

*/ inline VocabularySummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A unique name of the custom vocabulary.

*/ inline VocabularySummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

A unique name of the custom vocabulary.

*/ inline VocabularySummary& WithName(const char* value) { SetName(value); return *this;} /** *

The identifier of the custom vocabulary.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier of the custom vocabulary.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier of the custom vocabulary.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The identifier of the custom vocabulary.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The identifier of the custom vocabulary.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The identifier of the custom vocabulary.

*/ inline VocabularySummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier of the custom vocabulary.

*/ inline VocabularySummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier of the custom vocabulary.

*/ inline VocabularySummary& WithId(const char* value) { SetId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the custom vocabulary.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the custom vocabulary.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the custom vocabulary.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the custom vocabulary.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the custom vocabulary.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the custom vocabulary.

*/ inline VocabularySummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the custom vocabulary.

*/ inline VocabularySummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the custom vocabulary.

*/ inline VocabularySummary& WithArn(const char* value) { SetArn(value); return *this;} /** *

The language code of the vocabulary entries. For a list of languages and * their corresponding language codes, see What * is Amazon Transcribe?

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

The language code of the vocabulary entries. For a list of languages and * their corresponding language codes, see What * is Amazon Transcribe?

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

The language code of the vocabulary entries. For a list of languages and * their corresponding language codes, see What * is Amazon Transcribe?

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

The language code of the vocabulary entries. For a list of languages and * their corresponding language codes, see What * is Amazon Transcribe?

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

The language code of the vocabulary entries. For a list of languages and * their corresponding language codes, see What * is Amazon Transcribe?

*/ inline VocabularySummary& WithLanguageCode(const VocabularyLanguageCode& value) { SetLanguageCode(value); return *this;} /** *

The language code of the vocabulary entries. For a list of languages and * their corresponding language codes, see What * is Amazon Transcribe?

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

The current state of the custom vocabulary.

*/ inline const VocabularyState& GetState() const{ return m_state; } /** *

The current state of the custom vocabulary.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The current state of the custom vocabulary.

*/ inline void SetState(const VocabularyState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The current state of the custom vocabulary.

*/ inline void SetState(VocabularyState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The current state of the custom vocabulary.

*/ inline VocabularySummary& WithState(const VocabularyState& value) { SetState(value); return *this;} /** *

The current state of the custom vocabulary.

*/ inline VocabularySummary& WithState(VocabularyState&& value) { SetState(std::move(value)); return *this;} /** *

The timestamp when the custom vocabulary was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

The timestamp when the custom vocabulary was last modified.

*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *

The timestamp when the custom vocabulary was last modified.

*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } /** *

The timestamp when the custom vocabulary was last modified.

*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } /** *

The timestamp when the custom vocabulary was last modified.

*/ inline VocabularySummary& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

The timestamp when the custom vocabulary was last modified.

*/ inline VocabularySummary& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} /** *

The reason why the custom vocabulary was not created.

*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *

The reason why the custom vocabulary was not created.

*/ inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } /** *

The reason why the custom vocabulary was not created.

*/ inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; } /** *

The reason why the custom vocabulary was not created.

*/ inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); } /** *

The reason why the custom vocabulary was not created.

*/ inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); } /** *

The reason why the custom vocabulary was not created.

*/ inline VocabularySummary& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *

The reason why the custom vocabulary was not created.

*/ inline VocabularySummary& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *

The reason why the custom vocabulary was not created.

*/ inline VocabularySummary& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; VocabularyLanguageCode m_languageCode; bool m_languageCodeHasBeenSet = false; VocabularyState m_state; bool m_stateHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; Aws::String m_failureReason; bool m_failureReasonHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws