AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CreateRuleRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datazone/DataZoneRequest.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/RuleAction.h>
12#include <aws/datazone/model/RuleDetail.h>
13#include <aws/datazone/model/RuleScope.h>
14#include <aws/datazone/model/RuleTarget.h>
15
16#include <utility>
17
18namespace Aws {
19namespace DataZone {
20namespace Model {
21
25 public:
26 AWS_DATAZONE_API CreateRuleRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateRule"; }
33
34 AWS_DATAZONE_API Aws::String SerializePayload() const override;
35
37
40 inline RuleAction GetAction() const { return m_action; }
41 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
42 inline void SetAction(RuleAction value) {
43 m_actionHasBeenSet = true;
44 m_action = value;
45 }
47 SetAction(value);
48 return *this;
49 }
51
53
57 inline const Aws::String& GetClientToken() const { return m_clientToken; }
58 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
59 template <typename ClientTokenT = Aws::String>
60 void SetClientToken(ClientTokenT&& value) {
61 m_clientTokenHasBeenSet = true;
62 m_clientToken = std::forward<ClientTokenT>(value);
63 }
64 template <typename ClientTokenT = Aws::String>
65 CreateRuleRequest& WithClientToken(ClientTokenT&& value) {
66 SetClientToken(std::forward<ClientTokenT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
83 CreateRuleRequest& WithDescription(DescriptionT&& value) {
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
93 inline const RuleDetail& GetDetail() const { return m_detail; }
94 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
95 template <typename DetailT = RuleDetail>
96 void SetDetail(DetailT&& value) {
97 m_detailHasBeenSet = true;
98 m_detail = std::forward<DetailT>(value);
99 }
100 template <typename DetailT = RuleDetail>
101 CreateRuleRequest& WithDetail(DetailT&& value) {
102 SetDetail(std::forward<DetailT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
112 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
113 template <typename DomainIdentifierT = Aws::String>
114 void SetDomainIdentifier(DomainIdentifierT&& value) {
115 m_domainIdentifierHasBeenSet = true;
116 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
117 }
118 template <typename DomainIdentifierT = Aws::String>
119 CreateRuleRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
120 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetName() const { return m_name; }
130 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
131 template <typename NameT = Aws::String>
132 void SetName(NameT&& value) {
133 m_nameHasBeenSet = true;
134 m_name = std::forward<NameT>(value);
135 }
136 template <typename NameT = Aws::String>
137 CreateRuleRequest& WithName(NameT&& value) {
138 SetName(std::forward<NameT>(value));
139 return *this;
140 }
142
144
147 inline const RuleScope& GetScope() const { return m_scope; }
148 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
149 template <typename ScopeT = RuleScope>
150 void SetScope(ScopeT&& value) {
151 m_scopeHasBeenSet = true;
152 m_scope = std::forward<ScopeT>(value);
153 }
154 template <typename ScopeT = RuleScope>
155 CreateRuleRequest& WithScope(ScopeT&& value) {
156 SetScope(std::forward<ScopeT>(value));
157 return *this;
158 }
160
162
165 inline const RuleTarget& GetTarget() const { return m_target; }
166 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
167 template <typename TargetT = RuleTarget>
168 void SetTarget(TargetT&& value) {
169 m_targetHasBeenSet = true;
170 m_target = std::forward<TargetT>(value);
171 }
172 template <typename TargetT = RuleTarget>
173 CreateRuleRequest& WithTarget(TargetT&& value) {
174 SetTarget(std::forward<TargetT>(value));
175 return *this;
176 }
178 private:
180 bool m_actionHasBeenSet = false;
181
183 bool m_clientTokenHasBeenSet = true;
184
185 Aws::String m_description;
186 bool m_descriptionHasBeenSet = false;
187
188 RuleDetail m_detail;
189 bool m_detailHasBeenSet = false;
190
191 Aws::String m_domainIdentifier;
192 bool m_domainIdentifierHasBeenSet = false;
193
194 Aws::String m_name;
195 bool m_nameHasBeenSet = false;
196
197 RuleScope m_scope;
198 bool m_scopeHasBeenSet = false;
199
200 RuleTarget m_target;
201 bool m_targetHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace DataZone
206} // namespace Aws
CreateRuleRequest & WithDetail(DetailT &&value)
virtual const char * GetServiceRequestName() const override
CreateRuleRequest & WithClientToken(ClientTokenT &&value)
CreateRuleRequest & WithScope(ScopeT &&value)
CreateRuleRequest & WithDomainIdentifier(DomainIdentifierT &&value)
void SetDescription(DescriptionT &&value)
AWS_DATAZONE_API CreateRuleRequest()=default
const Aws::String & GetDescription() const
const Aws::String & GetClientToken() const
void SetDomainIdentifier(DomainIdentifierT &&value)
CreateRuleRequest & WithDescription(DescriptionT &&value)
void SetClientToken(ClientTokenT &&value)
const Aws::String & GetDomainIdentifier() const
CreateRuleRequest & WithName(NameT &&value)
CreateRuleRequest & WithAction(RuleAction value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateRuleRequest & WithTarget(TargetT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String