AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRuleRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connect/model/RuleTriggerEventSource.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/connect/model/RulePublishStatus.h>
13#include <aws/connect/model/RuleAction.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace Connect
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CONNECT_API CreateRuleRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateRule"; }
36
37 AWS_CONNECT_API Aws::String SerializePayload() const override;
38
39
41
46 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
47 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
48 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
49 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
50 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
51 inline CreateRuleRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
52 inline CreateRuleRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
53 inline CreateRuleRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
55
57
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 inline CreateRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline CreateRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline CreateRuleRequest& WithName(const char* value) { SetName(value); return *this;}
69
71
74 inline const RuleTriggerEventSource& GetTriggerEventSource() const{ return m_triggerEventSource; }
75 inline bool TriggerEventSourceHasBeenSet() const { return m_triggerEventSourceHasBeenSet; }
76 inline void SetTriggerEventSource(const RuleTriggerEventSource& value) { m_triggerEventSourceHasBeenSet = true; m_triggerEventSource = value; }
77 inline void SetTriggerEventSource(RuleTriggerEventSource&& value) { m_triggerEventSourceHasBeenSet = true; m_triggerEventSource = std::move(value); }
79 inline CreateRuleRequest& WithTriggerEventSource(RuleTriggerEventSource&& value) { SetTriggerEventSource(std::move(value)); return *this;}
81
83
86 inline const Aws::String& GetFunction() const{ return m_function; }
87 inline bool FunctionHasBeenSet() const { return m_functionHasBeenSet; }
88 inline void SetFunction(const Aws::String& value) { m_functionHasBeenSet = true; m_function = value; }
89 inline void SetFunction(Aws::String&& value) { m_functionHasBeenSet = true; m_function = std::move(value); }
90 inline void SetFunction(const char* value) { m_functionHasBeenSet = true; m_function.assign(value); }
91 inline CreateRuleRequest& WithFunction(const Aws::String& value) { SetFunction(value); return *this;}
92 inline CreateRuleRequest& WithFunction(Aws::String&& value) { SetFunction(std::move(value)); return *this;}
93 inline CreateRuleRequest& WithFunction(const char* value) { SetFunction(value); return *this;}
95
97
100 inline const Aws::Vector<RuleAction>& GetActions() const{ return m_actions; }
101 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
102 inline void SetActions(const Aws::Vector<RuleAction>& value) { m_actionsHasBeenSet = true; m_actions = value; }
103 inline void SetActions(Aws::Vector<RuleAction>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
104 inline CreateRuleRequest& WithActions(const Aws::Vector<RuleAction>& value) { SetActions(value); return *this;}
105 inline CreateRuleRequest& WithActions(Aws::Vector<RuleAction>&& value) { SetActions(std::move(value)); return *this;}
106 inline CreateRuleRequest& AddActions(const RuleAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
107 inline CreateRuleRequest& AddActions(RuleAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
109
111
114 inline const RulePublishStatus& GetPublishStatus() const{ return m_publishStatus; }
115 inline bool PublishStatusHasBeenSet() const { return m_publishStatusHasBeenSet; }
116 inline void SetPublishStatus(const RulePublishStatus& value) { m_publishStatusHasBeenSet = true; m_publishStatus = value; }
117 inline void SetPublishStatus(RulePublishStatus&& value) { m_publishStatusHasBeenSet = true; m_publishStatus = std::move(value); }
118 inline CreateRuleRequest& WithPublishStatus(const RulePublishStatus& value) { SetPublishStatus(value); return *this;}
119 inline CreateRuleRequest& WithPublishStatus(RulePublishStatus&& value) { SetPublishStatus(std::move(value)); return *this;}
121
123
130 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
131 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
132 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
133 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
134 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
135 inline CreateRuleRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
136 inline CreateRuleRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
137 inline CreateRuleRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
139 private:
140
141 Aws::String m_instanceId;
142 bool m_instanceIdHasBeenSet = false;
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
147 RuleTriggerEventSource m_triggerEventSource;
148 bool m_triggerEventSourceHasBeenSet = false;
149
150 Aws::String m_function;
151 bool m_functionHasBeenSet = false;
152
153 Aws::Vector<RuleAction> m_actions;
154 bool m_actionsHasBeenSet = false;
155
156 RulePublishStatus m_publishStatus;
157 bool m_publishStatusHasBeenSet = false;
158
159 Aws::String m_clientToken;
160 bool m_clientTokenHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace Connect
165} // namespace Aws
CreateRuleRequest & WithPublishStatus(const RulePublishStatus &value)
void SetTriggerEventSource(const RuleTriggerEventSource &value)
CreateRuleRequest & WithName(Aws::String &&value)
CreateRuleRequest & WithTriggerEventSource(RuleTriggerEventSource &&value)
CreateRuleRequest & WithInstanceId(const char *value)
void SetClientToken(const Aws::String &value)
CreateRuleRequest & WithFunction(const Aws::String &value)
const Aws::String & GetInstanceId() const
CreateRuleRequest & WithFunction(const char *value)
void SetName(const Aws::String &value)
const RulePublishStatus & GetPublishStatus() const
CreateRuleRequest & WithInstanceId(const Aws::String &value)
void SetTriggerEventSource(RuleTriggerEventSource &&value)
CreateRuleRequest & WithClientToken(const char *value)
const Aws::String & GetFunction() const
void SetActions(const Aws::Vector< RuleAction > &value)
CreateRuleRequest & WithTriggerEventSource(const RuleTriggerEventSource &value)
const Aws::String & GetName() const
CreateRuleRequest & WithPublishStatus(RulePublishStatus &&value)
const Aws::Vector< RuleAction > & GetActions() const
void SetInstanceId(const Aws::String &value)
CreateRuleRequest & AddActions(const RuleAction &value)
CreateRuleRequest & WithFunction(Aws::String &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateRuleRequest & AddActions(RuleAction &&value)
const RuleTriggerEventSource & GetTriggerEventSource() const
CreateRuleRequest & WithClientToken(const Aws::String &value)
const Aws::String & GetClientToken() const
void SetFunction(const Aws::String &value)
CreateRuleRequest & WithName(const Aws::String &value)
void SetPublishStatus(const RulePublishStatus &value)
void SetInstanceId(Aws::String &&value)
CreateRuleRequest & WithActions(const Aws::Vector< RuleAction > &value)
CreateRuleRequest & WithClientToken(Aws::String &&value)
CreateRuleRequest & WithActions(Aws::Vector< RuleAction > &&value)
void SetPublishStatus(RulePublishStatus &&value)
CreateRuleRequest & WithName(const char *value)
CreateRuleRequest & WithInstanceId(Aws::String &&value)
void SetActions(Aws::Vector< RuleAction > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector