AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateRuleResult.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/model/RuleAction.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/datazone/model/RuleDetail.h>
12#include <aws/datazone/model/RuleType.h>
13#include <aws/datazone/model/RuleScope.h>
14#include <aws/datazone/model/RuleTarget.h>
15#include <aws/datazone/model/RuleTargetType.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace DataZone
31{
32namespace Model
33{
35 {
36 public:
37 AWS_DATAZONE_API CreateRuleResult() = default;
40
41
43
46 inline RuleAction GetAction() const { return m_action; }
47 inline void SetAction(RuleAction value) { m_actionHasBeenSet = true; m_action = value; }
48 inline CreateRuleResult& WithAction(RuleAction value) { SetAction(value); return *this;}
50
52
55 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
56 template<typename CreatedAtT = Aws::Utils::DateTime>
57 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
58 template<typename CreatedAtT = Aws::Utils::DateTime>
59 CreateRuleResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
61
63
66 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
67 template<typename CreatedByT = Aws::String>
68 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
69 template<typename CreatedByT = Aws::String>
70 CreateRuleResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 template<typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
80 template<typename DescriptionT = Aws::String>
81 CreateRuleResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
83
85
88 inline const RuleDetail& GetDetail() const { return m_detail; }
89 template<typename DetailT = RuleDetail>
90 void SetDetail(DetailT&& value) { m_detailHasBeenSet = true; m_detail = std::forward<DetailT>(value); }
91 template<typename DetailT = RuleDetail>
92 CreateRuleResult& WithDetail(DetailT&& value) { SetDetail(std::forward<DetailT>(value)); return *this;}
94
96
99 inline const Aws::String& GetIdentifier() const { return m_identifier; }
100 template<typename IdentifierT = Aws::String>
101 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
102 template<typename IdentifierT = Aws::String>
103 CreateRuleResult& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
105
107
110 inline const Aws::String& GetName() const { return m_name; }
111 template<typename NameT = Aws::String>
112 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
113 template<typename NameT = Aws::String>
114 CreateRuleResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
116
118
121 inline RuleType GetRuleType() const { return m_ruleType; }
122 inline void SetRuleType(RuleType value) { m_ruleTypeHasBeenSet = true; m_ruleType = value; }
123 inline CreateRuleResult& WithRuleType(RuleType value) { SetRuleType(value); return *this;}
125
127
130 inline const RuleScope& GetScope() const { return m_scope; }
131 template<typename ScopeT = RuleScope>
132 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
133 template<typename ScopeT = RuleScope>
134 CreateRuleResult& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
136
138
141 inline const RuleTarget& GetTarget() const { return m_target; }
142 template<typename TargetT = RuleTarget>
143 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
144 template<typename TargetT = RuleTarget>
145 CreateRuleResult& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
147
149
152 inline RuleTargetType GetTargetType() const { return m_targetType; }
153 inline void SetTargetType(RuleTargetType value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
154 inline CreateRuleResult& WithTargetType(RuleTargetType value) { SetTargetType(value); return *this;}
156
158
159 inline const Aws::String& GetRequestId() const { return m_requestId; }
160 template<typename RequestIdT = Aws::String>
161 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
162 template<typename RequestIdT = Aws::String>
163 CreateRuleResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
165 private:
166
168 bool m_actionHasBeenSet = false;
169
170 Aws::Utils::DateTime m_createdAt{};
171 bool m_createdAtHasBeenSet = false;
172
173 Aws::String m_createdBy;
174 bool m_createdByHasBeenSet = false;
175
176 Aws::String m_description;
177 bool m_descriptionHasBeenSet = false;
178
179 RuleDetail m_detail;
180 bool m_detailHasBeenSet = false;
181
182 Aws::String m_identifier;
183 bool m_identifierHasBeenSet = false;
184
185 Aws::String m_name;
186 bool m_nameHasBeenSet = false;
187
188 RuleType m_ruleType{RuleType::NOT_SET};
189 bool m_ruleTypeHasBeenSet = false;
190
191 RuleScope m_scope;
192 bool m_scopeHasBeenSet = false;
193
194 RuleTarget m_target;
195 bool m_targetHasBeenSet = false;
196
198 bool m_targetTypeHasBeenSet = false;
199
200 Aws::String m_requestId;
201 bool m_requestIdHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace DataZone
206} // namespace Aws
CreateRuleResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetCreatedBy() const
const Aws::String & GetName() const
const Aws::String & GetIdentifier() const
CreateRuleResult & WithDetail(DetailT &&value)
AWS_DATAZONE_API CreateRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetIdentifier(IdentifierT &&value)
const Aws::String & GetDescription() const
CreateRuleResult & WithName(NameT &&value)
CreateRuleResult & WithCreatedAt(CreatedAtT &&value)
AWS_DATAZONE_API CreateRuleResult()=default
CreateRuleResult & WithCreatedBy(CreatedByT &&value)
CreateRuleResult & WithIdentifier(IdentifierT &&value)
CreateRuleResult & WithAction(RuleAction value)
void SetTargetType(RuleTargetType value)
AWS_DATAZONE_API CreateRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetDescription(DescriptionT &&value)
CreateRuleResult & WithTargetType(RuleTargetType value)
const RuleDetail & GetDetail() const
CreateRuleResult & WithScope(ScopeT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
CreateRuleResult & WithDescription(DescriptionT &&value)
CreateRuleResult & WithRuleType(RuleType value)
CreateRuleResult & WithTarget(TargetT &&value)
const Aws::String & GetRequestId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue