/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Connect { namespace Model { /** */ class CreateVocabularyRequest : public ConnectRequest { public: AWS_CONNECT_API CreateVocabularyRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateVocabulary"; } AWS_CONNECT_API Aws::String SerializePayload() const override; /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs. If a create request is received more than * once with same client token, subsequent requests return the previous response * without creating a vocabulary again.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs. If a create request is received more than * once with same client token, subsequent requests return the previous response * without creating a vocabulary again.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs. If a create request is received more than * once with same client token, subsequent requests return the previous response * without creating a vocabulary again.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs. If a create request is received more than * once with same client token, subsequent requests return the previous response * without creating a vocabulary again.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs. If a create request is received more than * once with same client token, subsequent requests return the previous response * without creating a vocabulary again.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs. If a create request is received more than * once with same client token, subsequent requests return the previous response * without creating a vocabulary again.

*/ inline CreateVocabularyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs. If a create request is received more than * once with same client token, subsequent requests return the previous response * without creating a vocabulary again.

*/ inline CreateVocabularyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs. If a create request is received more than * once with same client token, subsequent requests return the previous response * without creating a vocabulary again.

*/ inline CreateVocabularyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline CreateVocabularyRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline CreateVocabularyRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline CreateVocabularyRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

A unique name of the custom vocabulary.

*/ inline const Aws::String& GetVocabularyName() const{ return m_vocabularyName; } /** *

A unique name of the custom vocabulary.

*/ inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; } /** *

A unique name of the custom vocabulary.

*/ inline void SetVocabularyName(const Aws::String& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = value; } /** *

A unique name of the custom vocabulary.

*/ inline void SetVocabularyName(Aws::String&& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = std::move(value); } /** *

A unique name of the custom vocabulary.

*/ inline void SetVocabularyName(const char* value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName.assign(value); } /** *

A unique name of the custom vocabulary.

*/ inline CreateVocabularyRequest& WithVocabularyName(const Aws::String& value) { SetVocabularyName(value); return *this;} /** *

A unique name of the custom vocabulary.

*/ inline CreateVocabularyRequest& WithVocabularyName(Aws::String&& value) { SetVocabularyName(std::move(value)); return *this;} /** *

A unique name of the custom vocabulary.

*/ inline CreateVocabularyRequest& WithVocabularyName(const char* value) { SetVocabularyName(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 CreateVocabularyRequest& 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 CreateVocabularyRequest& WithLanguageCode(VocabularyLanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;} /** *

The content of the custom vocabulary in plain-text format with a table of * values. Each row in the table represents a word or a phrase, described with * Phrase, IPA, SoundsLike, and * DisplayAs fields. Separate the fields with TAB characters. The size * limit is 50KB. For more information, see Create * a custom vocabulary using a table.

*/ inline const Aws::String& GetContent() const{ return m_content; } /** *

The content of the custom vocabulary in plain-text format with a table of * values. Each row in the table represents a word or a phrase, described with * Phrase, IPA, SoundsLike, and * DisplayAs fields. Separate the fields with TAB characters. The size * limit is 50KB. For more information, see Create * a custom vocabulary using a table.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

The content of the custom vocabulary in plain-text format with a table of * values. Each row in the table represents a word or a phrase, described with * Phrase, IPA, SoundsLike, and * DisplayAs fields. Separate the fields with TAB characters. The size * limit is 50KB. For more information, see Create * a custom vocabulary using a table.

*/ inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; } /** *

The content of the custom vocabulary in plain-text format with a table of * values. Each row in the table represents a word or a phrase, described with * Phrase, IPA, SoundsLike, and * DisplayAs fields. Separate the fields with TAB characters. The size * limit is 50KB. For more information, see Create * a custom vocabulary using a table.

*/ inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

The content of the custom vocabulary in plain-text format with a table of * values. Each row in the table represents a word or a phrase, described with * Phrase, IPA, SoundsLike, and * DisplayAs fields. Separate the fields with TAB characters. The size * limit is 50KB. For more information, see Create * a custom vocabulary using a table.

*/ inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); } /** *

The content of the custom vocabulary in plain-text format with a table of * values. Each row in the table represents a word or a phrase, described with * Phrase, IPA, SoundsLike, and * DisplayAs fields. Separate the fields with TAB characters. The size * limit is 50KB. For more information, see Create * a custom vocabulary using a table.

*/ inline CreateVocabularyRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;} /** *

The content of the custom vocabulary in plain-text format with a table of * values. Each row in the table represents a word or a phrase, described with * Phrase, IPA, SoundsLike, and * DisplayAs fields. Separate the fields with TAB characters. The size * limit is 50KB. For more information, see Create * a custom vocabulary using a table.

*/ inline CreateVocabularyRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;} /** *

The content of the custom vocabulary in plain-text format with a table of * values. Each row in the table represents a word or a phrase, described with * Phrase, IPA, SoundsLike, and * DisplayAs fields. Separate the fields with TAB characters. The size * limit is 50KB. For more information, see Create * a custom vocabulary using a table.

*/ inline CreateVocabularyRequest& WithContent(const char* value) { SetContent(value); return *this;} /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateVocabularyRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateVocabularyRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateVocabularyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateVocabularyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateVocabularyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateVocabularyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateVocabularyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateVocabularyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateVocabularyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_vocabularyName; bool m_vocabularyNameHasBeenSet = false; VocabularyLanguageCode m_languageCode; bool m_languageCodeHasBeenSet = false; Aws::String m_content; bool m_contentHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws