/** * 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 Connect { namespace Model { /** *

Information about the task action.

See Also:

AWS * API Reference

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

The name. Supports variable injection. For more information, see JSONPath * reference in the Amazon Connect Administrators Guide.

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

The name. Supports variable injection. For more information, see JSONPath * reference in the Amazon Connect Administrators Guide.

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

The name. Supports variable injection. For more information, see JSONPath * reference in the Amazon Connect Administrators Guide.

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

The name. Supports variable injection. For more information, see JSONPath * reference in the Amazon Connect Administrators Guide.

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

The name. Supports variable injection. For more information, see JSONPath * reference in the Amazon Connect Administrators Guide.

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

The name. Supports variable injection. For more information, see JSONPath * reference in the Amazon Connect Administrators Guide.

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

The name. Supports variable injection. For more information, see JSONPath * reference in the Amazon Connect Administrators Guide.

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

The name. Supports variable injection. For more information, see JSONPath * reference in the Amazon Connect Administrators Guide.

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

The description. Supports variable injection. For more information, see JSONPath * reference in the Amazon Connect Administrators Guide.

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

The description. Supports variable injection. For more information, see JSONPath * reference in the Amazon Connect Administrators Guide.

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

The description. Supports variable injection. For more information, see JSONPath * reference in the Amazon Connect Administrators Guide.

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

The description. Supports variable injection. For more information, see JSONPath * reference in the Amazon Connect Administrators Guide.

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

The description. Supports variable injection. For more information, see JSONPath * reference in the Amazon Connect Administrators Guide.

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

The description. Supports variable injection. For more information, see JSONPath * reference in the Amazon Connect Administrators Guide.

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

The description. Supports variable injection. For more information, see JSONPath * reference in the Amazon Connect Administrators Guide.

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

The description. Supports variable injection. For more information, see JSONPath * reference in the Amazon Connect Administrators Guide.

*/ inline TaskActionDefinition& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The identifier of the flow.

*/ inline const Aws::String& GetContactFlowId() const{ return m_contactFlowId; } /** *

The identifier of the flow.

*/ inline bool ContactFlowIdHasBeenSet() const { return m_contactFlowIdHasBeenSet; } /** *

The identifier of the flow.

*/ inline void SetContactFlowId(const Aws::String& value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId = value; } /** *

The identifier of the flow.

*/ inline void SetContactFlowId(Aws::String&& value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId = std::move(value); } /** *

The identifier of the flow.

*/ inline void SetContactFlowId(const char* value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId.assign(value); } /** *

The identifier of the flow.

*/ inline TaskActionDefinition& WithContactFlowId(const Aws::String& value) { SetContactFlowId(value); return *this;} /** *

The identifier of the flow.

*/ inline TaskActionDefinition& WithContactFlowId(Aws::String&& value) { SetContactFlowId(std::move(value)); return *this;} /** *

The identifier of the flow.

*/ inline TaskActionDefinition& WithContactFlowId(const char* value) { SetContactFlowId(value); return *this;} /** *

Information about the reference when the referenceType is * URL. Otherwise, null. (Supports variable injection in the * Value field.)

*/ inline const Aws::Map& GetReferences() const{ return m_references; } /** *

Information about the reference when the referenceType is * URL. Otherwise, null. (Supports variable injection in the * Value field.)

*/ inline bool ReferencesHasBeenSet() const { return m_referencesHasBeenSet; } /** *

Information about the reference when the referenceType is * URL. Otherwise, null. (Supports variable injection in the * Value field.)

*/ inline void SetReferences(const Aws::Map& value) { m_referencesHasBeenSet = true; m_references = value; } /** *

Information about the reference when the referenceType is * URL. Otherwise, null. (Supports variable injection in the * Value field.)

*/ inline void SetReferences(Aws::Map&& value) { m_referencesHasBeenSet = true; m_references = std::move(value); } /** *

Information about the reference when the referenceType is * URL. Otherwise, null. (Supports variable injection in the * Value field.)

*/ inline TaskActionDefinition& WithReferences(const Aws::Map& value) { SetReferences(value); return *this;} /** *

Information about the reference when the referenceType is * URL. Otherwise, null. (Supports variable injection in the * Value field.)

*/ inline TaskActionDefinition& WithReferences(Aws::Map&& value) { SetReferences(std::move(value)); return *this;} /** *

Information about the reference when the referenceType is * URL. Otherwise, null. (Supports variable injection in the * Value field.)

*/ inline TaskActionDefinition& AddReferences(const Aws::String& key, const Reference& value) { m_referencesHasBeenSet = true; m_references.emplace(key, value); return *this; } /** *

Information about the reference when the referenceType is * URL. Otherwise, null. (Supports variable injection in the * Value field.)

*/ inline TaskActionDefinition& AddReferences(Aws::String&& key, const Reference& value) { m_referencesHasBeenSet = true; m_references.emplace(std::move(key), value); return *this; } /** *

Information about the reference when the referenceType is * URL. Otherwise, null. (Supports variable injection in the * Value field.)

*/ inline TaskActionDefinition& AddReferences(const Aws::String& key, Reference&& value) { m_referencesHasBeenSet = true; m_references.emplace(key, std::move(value)); return *this; } /** *

Information about the reference when the referenceType is * URL. Otherwise, null. (Supports variable injection in the * Value field.)

*/ inline TaskActionDefinition& AddReferences(Aws::String&& key, Reference&& value) { m_referencesHasBeenSet = true; m_references.emplace(std::move(key), std::move(value)); return *this; } /** *

Information about the reference when the referenceType is * URL. Otherwise, null. (Supports variable injection in the * Value field.)

*/ inline TaskActionDefinition& AddReferences(const char* key, Reference&& value) { m_referencesHasBeenSet = true; m_references.emplace(key, std::move(value)); return *this; } /** *

Information about the reference when the referenceType is * URL. Otherwise, null. (Supports variable injection in the * Value field.)

*/ inline TaskActionDefinition& AddReferences(const char* key, const Reference& value) { m_referencesHasBeenSet = true; m_references.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_contactFlowId; bool m_contactFlowIdHasBeenSet = false; Aws::Map m_references; bool m_referencesHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws