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

Information about a prompt.

See Also:

AWS API * Reference

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

The Amazon Resource Name (ARN) of the prompt.

*/ inline const Aws::String& GetPromptARN() const{ return m_promptARN; } /** *

The Amazon Resource Name (ARN) of the prompt.

*/ inline bool PromptARNHasBeenSet() const { return m_promptARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the prompt.

*/ inline void SetPromptARN(const Aws::String& value) { m_promptARNHasBeenSet = true; m_promptARN = value; } /** *

The Amazon Resource Name (ARN) of the prompt.

*/ inline void SetPromptARN(Aws::String&& value) { m_promptARNHasBeenSet = true; m_promptARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the prompt.

*/ inline void SetPromptARN(const char* value) { m_promptARNHasBeenSet = true; m_promptARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the prompt.

*/ inline Prompt& WithPromptARN(const Aws::String& value) { SetPromptARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the prompt.

*/ inline Prompt& WithPromptARN(Aws::String&& value) { SetPromptARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the prompt.

*/ inline Prompt& WithPromptARN(const char* value) { SetPromptARN(value); return *this;} /** *

A unique identifier for the prompt.

*/ inline const Aws::String& GetPromptId() const{ return m_promptId; } /** *

A unique identifier for the prompt.

*/ inline bool PromptIdHasBeenSet() const { return m_promptIdHasBeenSet; } /** *

A unique identifier for the prompt.

*/ inline void SetPromptId(const Aws::String& value) { m_promptIdHasBeenSet = true; m_promptId = value; } /** *

A unique identifier for the prompt.

*/ inline void SetPromptId(Aws::String&& value) { m_promptIdHasBeenSet = true; m_promptId = std::move(value); } /** *

A unique identifier for the prompt.

*/ inline void SetPromptId(const char* value) { m_promptIdHasBeenSet = true; m_promptId.assign(value); } /** *

A unique identifier for the prompt.

*/ inline Prompt& WithPromptId(const Aws::String& value) { SetPromptId(value); return *this;} /** *

A unique identifier for the prompt.

*/ inline Prompt& WithPromptId(Aws::String&& value) { SetPromptId(std::move(value)); return *this;} /** *

A unique identifier for the prompt.

*/ inline Prompt& WithPromptId(const char* value) { SetPromptId(value); return *this;} /** *

The name of the prompt.

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

The name of the prompt.

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

The name of the prompt.

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

The name of the prompt.

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

The name of the prompt.

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

The name of the prompt.

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

The name of the prompt.

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

The name of the prompt.

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

The description of the prompt.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the prompt.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the prompt.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the prompt.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the prompt.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the prompt.

*/ inline Prompt& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the prompt.

*/ inline Prompt& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the prompt.

*/ inline Prompt& WithDescription(const char* value) { SetDescription(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 Prompt& 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 Prompt& 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 Prompt& 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 Prompt& 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 Prompt& 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 Prompt& 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 Prompt& 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 Prompt& 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 Prompt& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_promptARN; bool m_promptARNHasBeenSet = false; Aws::String m_promptId; bool m_promptIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws