AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TaskActionDefinition.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/connect/model/Reference.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CONNECT_API TaskActionDefinition();
39 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline TaskActionDefinition& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline TaskActionDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline TaskActionDefinition& WithName(const char* value) { SetName(value); return *this;}
57
59
64 inline const Aws::String& GetDescription() const{ return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
67 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
68 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
69 inline TaskActionDefinition& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
70 inline TaskActionDefinition& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
71 inline TaskActionDefinition& WithDescription(const char* value) { SetDescription(value); return *this;}
73
75
78 inline const Aws::String& GetContactFlowId() const{ return m_contactFlowId; }
79 inline bool ContactFlowIdHasBeenSet() const { return m_contactFlowIdHasBeenSet; }
80 inline void SetContactFlowId(const Aws::String& value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId = value; }
81 inline void SetContactFlowId(Aws::String&& value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId = std::move(value); }
82 inline void SetContactFlowId(const char* value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId.assign(value); }
83 inline TaskActionDefinition& WithContactFlowId(const Aws::String& value) { SetContactFlowId(value); return *this;}
84 inline TaskActionDefinition& WithContactFlowId(Aws::String&& value) { SetContactFlowId(std::move(value)); return *this;}
85 inline TaskActionDefinition& WithContactFlowId(const char* value) { SetContactFlowId(value); return *this;}
87
89
94 inline const Aws::Map<Aws::String, Reference>& GetReferences() const{ return m_references; }
95 inline bool ReferencesHasBeenSet() const { return m_referencesHasBeenSet; }
96 inline void SetReferences(const Aws::Map<Aws::String, Reference>& value) { m_referencesHasBeenSet = true; m_references = value; }
97 inline void SetReferences(Aws::Map<Aws::String, Reference>&& value) { m_referencesHasBeenSet = true; m_references = std::move(value); }
99 inline TaskActionDefinition& WithReferences(Aws::Map<Aws::String, Reference>&& value) { SetReferences(std::move(value)); return *this;}
100 inline TaskActionDefinition& AddReferences(const Aws::String& key, const Reference& value) { m_referencesHasBeenSet = true; m_references.emplace(key, value); return *this; }
101 inline TaskActionDefinition& AddReferences(Aws::String&& key, const Reference& value) { m_referencesHasBeenSet = true; m_references.emplace(std::move(key), value); return *this; }
102 inline TaskActionDefinition& AddReferences(const Aws::String& key, Reference&& value) { m_referencesHasBeenSet = true; m_references.emplace(key, std::move(value)); return *this; }
103 inline TaskActionDefinition& AddReferences(Aws::String&& key, Reference&& value) { m_referencesHasBeenSet = true; m_references.emplace(std::move(key), std::move(value)); return *this; }
104 inline TaskActionDefinition& AddReferences(const char* key, Reference&& value) { m_referencesHasBeenSet = true; m_references.emplace(key, std::move(value)); return *this; }
105 inline TaskActionDefinition& AddReferences(const char* key, const Reference& value) { m_referencesHasBeenSet = true; m_references.emplace(key, value); return *this; }
107 private:
108
109 Aws::String m_name;
110 bool m_nameHasBeenSet = false;
111
112 Aws::String m_description;
113 bool m_descriptionHasBeenSet = false;
114
115 Aws::String m_contactFlowId;
116 bool m_contactFlowIdHasBeenSet = false;
117
119 bool m_referencesHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace Connect
124} // namespace Aws
TaskActionDefinition & WithDescription(const Aws::String &value)
TaskActionDefinition & WithDescription(const char *value)
TaskActionDefinition & WithName(const char *value)
TaskActionDefinition & AddReferences(Aws::String &&key, Reference &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
TaskActionDefinition & AddReferences(const Aws::String &key, const Reference &value)
TaskActionDefinition & WithContactFlowId(const char *value)
TaskActionDefinition & WithReferences(Aws::Map< Aws::String, Reference > &&value)
TaskActionDefinition & WithDescription(Aws::String &&value)
TaskActionDefinition & WithName(const Aws::String &value)
AWS_CONNECT_API TaskActionDefinition(Aws::Utils::Json::JsonView jsonValue)
TaskActionDefinition & WithReferences(const Aws::Map< Aws::String, Reference > &value)
TaskActionDefinition & AddReferences(Aws::String &&key, const Reference &value)
TaskActionDefinition & WithContactFlowId(const Aws::String &value)
TaskActionDefinition & WithName(Aws::String &&value)
void SetContactFlowId(const Aws::String &value)
void SetReferences(const Aws::Map< Aws::String, Reference > &value)
const Aws::Map< Aws::String, Reference > & GetReferences() const
AWS_CONNECT_API TaskActionDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReferences(Aws::Map< Aws::String, Reference > &&value)
TaskActionDefinition & WithContactFlowId(Aws::String &&value)
TaskActionDefinition & AddReferences(const char *key, Reference &&value)
TaskActionDefinition & AddReferences(const Aws::String &key, Reference &&value)
void SetDescription(const Aws::String &value)
TaskActionDefinition & AddReferences(const char *key, const Reference &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue