AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateRuleRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/connect/model/RulePublishStatus.h>
12#include <aws/connect/model/RuleAction.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Connect
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CONNECT_API UpdateRuleRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateRule"; }
34
35 AWS_CONNECT_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetRuleId() const{ return m_ruleId; }
43 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
44 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
45 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
46 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
47 inline UpdateRuleRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
48 inline UpdateRuleRequest& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
49 inline UpdateRuleRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;}
51
53
58 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
59 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
60 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
61 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
62 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
63 inline UpdateRuleRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
64 inline UpdateRuleRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
65 inline UpdateRuleRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
67
69
75 inline const Aws::String& GetName() const{ return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
78 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
79 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
80 inline UpdateRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
81 inline UpdateRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
82 inline UpdateRuleRequest& WithName(const char* value) { SetName(value); return *this;}
84
86
89 inline const Aws::String& GetFunction() const{ return m_function; }
90 inline bool FunctionHasBeenSet() const { return m_functionHasBeenSet; }
91 inline void SetFunction(const Aws::String& value) { m_functionHasBeenSet = true; m_function = value; }
92 inline void SetFunction(Aws::String&& value) { m_functionHasBeenSet = true; m_function = std::move(value); }
93 inline void SetFunction(const char* value) { m_functionHasBeenSet = true; m_function.assign(value); }
94 inline UpdateRuleRequest& WithFunction(const Aws::String& value) { SetFunction(value); return *this;}
95 inline UpdateRuleRequest& WithFunction(Aws::String&& value) { SetFunction(std::move(value)); return *this;}
96 inline UpdateRuleRequest& WithFunction(const char* value) { SetFunction(value); return *this;}
98
100
103 inline const Aws::Vector<RuleAction>& GetActions() const{ return m_actions; }
104 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
105 inline void SetActions(const Aws::Vector<RuleAction>& value) { m_actionsHasBeenSet = true; m_actions = value; }
106 inline void SetActions(Aws::Vector<RuleAction>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
107 inline UpdateRuleRequest& WithActions(const Aws::Vector<RuleAction>& value) { SetActions(value); return *this;}
108 inline UpdateRuleRequest& WithActions(Aws::Vector<RuleAction>&& value) { SetActions(std::move(value)); return *this;}
109 inline UpdateRuleRequest& AddActions(const RuleAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
110 inline UpdateRuleRequest& AddActions(RuleAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
112
114
117 inline const RulePublishStatus& GetPublishStatus() const{ return m_publishStatus; }
118 inline bool PublishStatusHasBeenSet() const { return m_publishStatusHasBeenSet; }
119 inline void SetPublishStatus(const RulePublishStatus& value) { m_publishStatusHasBeenSet = true; m_publishStatus = value; }
120 inline void SetPublishStatus(RulePublishStatus&& value) { m_publishStatusHasBeenSet = true; m_publishStatus = std::move(value); }
121 inline UpdateRuleRequest& WithPublishStatus(const RulePublishStatus& value) { SetPublishStatus(value); return *this;}
122 inline UpdateRuleRequest& WithPublishStatus(RulePublishStatus&& value) { SetPublishStatus(std::move(value)); return *this;}
124 private:
125
126 Aws::String m_ruleId;
127 bool m_ruleIdHasBeenSet = false;
128
129 Aws::String m_instanceId;
130 bool m_instanceIdHasBeenSet = false;
131
132 Aws::String m_name;
133 bool m_nameHasBeenSet = false;
134
135 Aws::String m_function;
136 bool m_functionHasBeenSet = false;
137
138 Aws::Vector<RuleAction> m_actions;
139 bool m_actionsHasBeenSet = false;
140
141 RulePublishStatus m_publishStatus;
142 bool m_publishStatusHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace Connect
147} // namespace Aws
const Aws::String & GetInstanceId() const
UpdateRuleRequest & WithPublishStatus(const RulePublishStatus &value)
UpdateRuleRequest & AddActions(const RuleAction &value)
const RulePublishStatus & GetPublishStatus() const
UpdateRuleRequest & WithInstanceId(const char *value)
void SetRuleId(const Aws::String &value)
UpdateRuleRequest & WithFunction(Aws::String &&value)
UpdateRuleRequest & WithRuleId(Aws::String &&value)
void SetActions(Aws::Vector< RuleAction > &&value)
UpdateRuleRequest & AddActions(RuleAction &&value)
void SetFunction(const Aws::String &value)
void SetActions(const Aws::Vector< RuleAction > &value)
virtual const char * GetServiceRequestName() const override
UpdateRuleRequest & WithInstanceId(Aws::String &&value)
void SetName(const Aws::String &value)
const Aws::String & GetName() const
UpdateRuleRequest & WithName(Aws::String &&value)
void SetInstanceId(Aws::String &&value)
UpdateRuleRequest & WithName(const char *value)
UpdateRuleRequest & WithRuleId(const Aws::String &value)
UpdateRuleRequest & WithActions(const Aws::Vector< RuleAction > &value)
const Aws::Vector< RuleAction > & GetActions() const
UpdateRuleRequest & WithPublishStatus(RulePublishStatus &&value)
const Aws::String & GetRuleId() const
UpdateRuleRequest & WithInstanceId(const Aws::String &value)
AWS_CONNECT_API Aws::String SerializePayload() const override
void SetInstanceId(const Aws::String &value)
void SetPublishStatus(const RulePublishStatus &value)
UpdateRuleRequest & WithFunction(const char *value)
UpdateRuleRequest & WithActions(Aws::Vector< RuleAction > &&value)
UpdateRuleRequest & WithName(const Aws::String &value)
UpdateRuleRequest & WithFunction(const Aws::String &value)
const Aws::String & GetFunction() const
UpdateRuleRequest & WithRuleId(const char *value)
void SetPublishStatus(RulePublishStatus &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector