AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleAction.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/ActionType.h>
9#include <aws/connect/model/TaskActionDefinition.h>
10#include <aws/connect/model/EventBridgeActionDefinition.h>
11#include <aws/connect/model/AssignContactCategoryActionDefinition.h>
12#include <aws/connect/model/SendNotificationActionDefinition.h>
13#include <aws/connect/model/CreateCaseActionDefinition.h>
14#include <aws/connect/model/UpdateCaseActionDefinition.h>
15#include <aws/connect/model/EndAssociatedTasksActionDefinition.h>
16#include <aws/connect/model/SubmitAutoEvaluationActionDefinition.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace Connect
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_CONNECT_API RuleAction();
44 AWS_CONNECT_API RuleAction(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CONNECT_API RuleAction& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const ActionType& GetActionType() const{ return m_actionType; }
54 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
55 inline void SetActionType(const ActionType& value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
56 inline void SetActionType(ActionType&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); }
57 inline RuleAction& WithActionType(const ActionType& value) { SetActionType(value); return *this;}
58 inline RuleAction& WithActionType(ActionType&& value) { SetActionType(std::move(value)); return *this;}
60
62
68 inline const TaskActionDefinition& GetTaskAction() const{ return m_taskAction; }
69 inline bool TaskActionHasBeenSet() const { return m_taskActionHasBeenSet; }
70 inline void SetTaskAction(const TaskActionDefinition& value) { m_taskActionHasBeenSet = true; m_taskAction = value; }
71 inline void SetTaskAction(TaskActionDefinition&& value) { m_taskActionHasBeenSet = true; m_taskAction = std::move(value); }
72 inline RuleAction& WithTaskAction(const TaskActionDefinition& value) { SetTaskAction(value); return *this;}
73 inline RuleAction& WithTaskAction(TaskActionDefinition&& value) { SetTaskAction(std::move(value)); return *this;}
75
77
85 inline const EventBridgeActionDefinition& GetEventBridgeAction() const{ return m_eventBridgeAction; }
86 inline bool EventBridgeActionHasBeenSet() const { return m_eventBridgeActionHasBeenSet; }
87 inline void SetEventBridgeAction(const EventBridgeActionDefinition& value) { m_eventBridgeActionHasBeenSet = true; m_eventBridgeAction = value; }
88 inline void SetEventBridgeAction(EventBridgeActionDefinition&& value) { m_eventBridgeActionHasBeenSet = true; m_eventBridgeAction = std::move(value); }
90 inline RuleAction& WithEventBridgeAction(EventBridgeActionDefinition&& value) { SetEventBridgeAction(std::move(value)); return *this;}
92
94
103 inline const AssignContactCategoryActionDefinition& GetAssignContactCategoryAction() const{ return m_assignContactCategoryAction; }
104 inline bool AssignContactCategoryActionHasBeenSet() const { return m_assignContactCategoryActionHasBeenSet; }
105 inline void SetAssignContactCategoryAction(const AssignContactCategoryActionDefinition& value) { m_assignContactCategoryActionHasBeenSet = true; m_assignContactCategoryAction = value; }
106 inline void SetAssignContactCategoryAction(AssignContactCategoryActionDefinition&& value) { m_assignContactCategoryActionHasBeenSet = true; m_assignContactCategoryAction = std::move(value); }
110
112
120 inline const SendNotificationActionDefinition& GetSendNotificationAction() const{ return m_sendNotificationAction; }
121 inline bool SendNotificationActionHasBeenSet() const { return m_sendNotificationActionHasBeenSet; }
122 inline void SetSendNotificationAction(const SendNotificationActionDefinition& value) { m_sendNotificationActionHasBeenSet = true; m_sendNotificationAction = value; }
123 inline void SetSendNotificationAction(SendNotificationActionDefinition&& value) { m_sendNotificationActionHasBeenSet = true; m_sendNotificationAction = std::move(value); }
127
129
134 inline const CreateCaseActionDefinition& GetCreateCaseAction() const{ return m_createCaseAction; }
135 inline bool CreateCaseActionHasBeenSet() const { return m_createCaseActionHasBeenSet; }
136 inline void SetCreateCaseAction(const CreateCaseActionDefinition& value) { m_createCaseActionHasBeenSet = true; m_createCaseAction = value; }
137 inline void SetCreateCaseAction(CreateCaseActionDefinition&& value) { m_createCaseActionHasBeenSet = true; m_createCaseAction = std::move(value); }
139 inline RuleAction& WithCreateCaseAction(CreateCaseActionDefinition&& value) { SetCreateCaseAction(std::move(value)); return *this;}
141
143
148 inline const UpdateCaseActionDefinition& GetUpdateCaseAction() const{ return m_updateCaseAction; }
149 inline bool UpdateCaseActionHasBeenSet() const { return m_updateCaseActionHasBeenSet; }
150 inline void SetUpdateCaseAction(const UpdateCaseActionDefinition& value) { m_updateCaseActionHasBeenSet = true; m_updateCaseAction = value; }
151 inline void SetUpdateCaseAction(UpdateCaseActionDefinition&& value) { m_updateCaseActionHasBeenSet = true; m_updateCaseAction = std::move(value); }
153 inline RuleAction& WithUpdateCaseAction(UpdateCaseActionDefinition&& value) { SetUpdateCaseAction(std::move(value)); return *this;}
155
157
161 inline const EndAssociatedTasksActionDefinition& GetEndAssociatedTasksAction() const{ return m_endAssociatedTasksAction; }
162 inline bool EndAssociatedTasksActionHasBeenSet() const { return m_endAssociatedTasksActionHasBeenSet; }
163 inline void SetEndAssociatedTasksAction(const EndAssociatedTasksActionDefinition& value) { m_endAssociatedTasksActionHasBeenSet = true; m_endAssociatedTasksAction = value; }
164 inline void SetEndAssociatedTasksAction(EndAssociatedTasksActionDefinition&& value) { m_endAssociatedTasksActionHasBeenSet = true; m_endAssociatedTasksAction = std::move(value); }
168
170
173 inline const SubmitAutoEvaluationActionDefinition& GetSubmitAutoEvaluationAction() const{ return m_submitAutoEvaluationAction; }
174 inline bool SubmitAutoEvaluationActionHasBeenSet() const { return m_submitAutoEvaluationActionHasBeenSet; }
175 inline void SetSubmitAutoEvaluationAction(const SubmitAutoEvaluationActionDefinition& value) { m_submitAutoEvaluationActionHasBeenSet = true; m_submitAutoEvaluationAction = value; }
176 inline void SetSubmitAutoEvaluationAction(SubmitAutoEvaluationActionDefinition&& value) { m_submitAutoEvaluationActionHasBeenSet = true; m_submitAutoEvaluationAction = std::move(value); }
180 private:
181
182 ActionType m_actionType;
183 bool m_actionTypeHasBeenSet = false;
184
185 TaskActionDefinition m_taskAction;
186 bool m_taskActionHasBeenSet = false;
187
188 EventBridgeActionDefinition m_eventBridgeAction;
189 bool m_eventBridgeActionHasBeenSet = false;
190
191 AssignContactCategoryActionDefinition m_assignContactCategoryAction;
192 bool m_assignContactCategoryActionHasBeenSet = false;
193
194 SendNotificationActionDefinition m_sendNotificationAction;
195 bool m_sendNotificationActionHasBeenSet = false;
196
197 CreateCaseActionDefinition m_createCaseAction;
198 bool m_createCaseActionHasBeenSet = false;
199
200 UpdateCaseActionDefinition m_updateCaseAction;
201 bool m_updateCaseActionHasBeenSet = false;
202
203 EndAssociatedTasksActionDefinition m_endAssociatedTasksAction;
204 bool m_endAssociatedTasksActionHasBeenSet = false;
205
206 SubmitAutoEvaluationActionDefinition m_submitAutoEvaluationAction;
207 bool m_submitAutoEvaluationActionHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace Connect
212} // namespace Aws
RuleAction & WithTaskAction(TaskActionDefinition &&value)
Definition RuleAction.h:73
RuleAction & WithActionType(const ActionType &value)
Definition RuleAction.h:57
void SetActionType(const ActionType &value)
Definition RuleAction.h:55
void SetActionType(ActionType &&value)
Definition RuleAction.h:56
const ActionType & GetActionType() const
Definition RuleAction.h:53
void SetEndAssociatedTasksAction(const EndAssociatedTasksActionDefinition &value)
Definition RuleAction.h:163
RuleAction & WithAssignContactCategoryAction(AssignContactCategoryActionDefinition &&value)
Definition RuleAction.h:108
const EventBridgeActionDefinition & GetEventBridgeAction() const
Definition RuleAction.h:85
RuleAction & WithSendNotificationAction(SendNotificationActionDefinition &&value)
Definition RuleAction.h:125
const AssignContactCategoryActionDefinition & GetAssignContactCategoryAction() const
Definition RuleAction.h:103
void SetAssignContactCategoryAction(AssignContactCategoryActionDefinition &&value)
Definition RuleAction.h:106
RuleAction & WithSubmitAutoEvaluationAction(const SubmitAutoEvaluationActionDefinition &value)
Definition RuleAction.h:177
RuleAction & WithCreateCaseAction(CreateCaseActionDefinition &&value)
Definition RuleAction.h:139
void SetCreateCaseAction(CreateCaseActionDefinition &&value)
Definition RuleAction.h:137
void SetEndAssociatedTasksAction(EndAssociatedTasksActionDefinition &&value)
Definition RuleAction.h:164
RuleAction & WithEventBridgeAction(const EventBridgeActionDefinition &value)
Definition RuleAction.h:89
const UpdateCaseActionDefinition & GetUpdateCaseAction() const
Definition RuleAction.h:148
void SetTaskAction(const TaskActionDefinition &value)
Definition RuleAction.h:70
void SetSendNotificationAction(const SendNotificationActionDefinition &value)
Definition RuleAction.h:122
void SetCreateCaseAction(const CreateCaseActionDefinition &value)
Definition RuleAction.h:136
RuleAction & WithActionType(ActionType &&value)
Definition RuleAction.h:58
RuleAction & WithTaskAction(const TaskActionDefinition &value)
Definition RuleAction.h:72
RuleAction & WithEventBridgeAction(EventBridgeActionDefinition &&value)
Definition RuleAction.h:90
RuleAction & WithEndAssociatedTasksAction(const EndAssociatedTasksActionDefinition &value)
Definition RuleAction.h:165
RuleAction & WithUpdateCaseAction(const UpdateCaseActionDefinition &value)
Definition RuleAction.h:152
void SetUpdateCaseAction(const UpdateCaseActionDefinition &value)
Definition RuleAction.h:150
void SetUpdateCaseAction(UpdateCaseActionDefinition &&value)
Definition RuleAction.h:151
void SetTaskAction(TaskActionDefinition &&value)
Definition RuleAction.h:71
RuleAction & WithCreateCaseAction(const CreateCaseActionDefinition &value)
Definition RuleAction.h:138
void SetAssignContactCategoryAction(const AssignContactCategoryActionDefinition &value)
Definition RuleAction.h:105
void SetSubmitAutoEvaluationAction(const SubmitAutoEvaluationActionDefinition &value)
Definition RuleAction.h:175
bool CreateCaseActionHasBeenSet() const
Definition RuleAction.h:135
const CreateCaseActionDefinition & GetCreateCaseAction() const
Definition RuleAction.h:134
RuleAction & WithAssignContactCategoryAction(const AssignContactCategoryActionDefinition &value)
Definition RuleAction.h:107
RuleAction & WithUpdateCaseAction(UpdateCaseActionDefinition &&value)
Definition RuleAction.h:153
RuleAction & WithEndAssociatedTasksAction(EndAssociatedTasksActionDefinition &&value)
Definition RuleAction.h:166
void SetEventBridgeAction(EventBridgeActionDefinition &&value)
Definition RuleAction.h:88
const TaskActionDefinition & GetTaskAction() const
Definition RuleAction.h:68
void SetEventBridgeAction(const EventBridgeActionDefinition &value)
Definition RuleAction.h:87
bool SendNotificationActionHasBeenSet() const
Definition RuleAction.h:121
RuleAction & WithSendNotificationAction(const SendNotificationActionDefinition &value)
Definition RuleAction.h:124
const SendNotificationActionDefinition & GetSendNotificationAction() const
Definition RuleAction.h:120
bool EventBridgeActionHasBeenSet() const
Definition RuleAction.h:86
const SubmitAutoEvaluationActionDefinition & GetSubmitAutoEvaluationAction() const
Definition RuleAction.h:173
AWS_CONNECT_API RuleAction(Aws::Utils::Json::JsonView jsonValue)
void SetSendNotificationAction(SendNotificationActionDefinition &&value)
Definition RuleAction.h:123
AWS_CONNECT_API RuleAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSubmitAutoEvaluationAction(SubmitAutoEvaluationActionDefinition &&value)
Definition RuleAction.h:176
bool EndAssociatedTasksActionHasBeenSet() const
Definition RuleAction.h:162
bool SubmitAutoEvaluationActionHasBeenSet() const
Definition RuleAction.h:174
const EndAssociatedTasksActionDefinition & GetEndAssociatedTasksAction() const
Definition RuleAction.h:161
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
RuleAction & WithSubmitAutoEvaluationAction(SubmitAutoEvaluationActionDefinition &&value)
Definition RuleAction.h:178
bool UpdateCaseActionHasBeenSet() const
Definition RuleAction.h:149
bool AssignContactCategoryActionHasBeenSet() const
Definition RuleAction.h:104
Aws::Utils::Json::JsonValue JsonValue