AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
CentralizationRuleSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
9#include <aws/observabilityadmin/model/CentralizationFailureReason.h>
10#include <aws/observabilityadmin/model/RuleHealth.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ObservabilityAdmin {
22namespace Model {
23
31 public:
32 AWS_OBSERVABILITYADMIN_API CentralizationRuleSummary() = default;
33 AWS_OBSERVABILITYADMIN_API CentralizationRuleSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OBSERVABILITYADMIN_API CentralizationRuleSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetRuleName() const { return m_ruleName; }
42 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
43 template <typename RuleNameT = Aws::String>
44 void SetRuleName(RuleNameT&& value) {
45 m_ruleNameHasBeenSet = true;
46 m_ruleName = std::forward<RuleNameT>(value);
47 }
48 template <typename RuleNameT = Aws::String>
50 SetRuleName(std::forward<RuleNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
60 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
61 template <typename RuleArnT = Aws::String>
62 void SetRuleArn(RuleArnT&& value) {
63 m_ruleArnHasBeenSet = true;
64 m_ruleArn = std::forward<RuleArnT>(value);
65 }
66 template <typename RuleArnT = Aws::String>
68 SetRuleArn(std::forward<RuleArnT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetCreatorAccountId() const { return m_creatorAccountId; }
79 inline bool CreatorAccountIdHasBeenSet() const { return m_creatorAccountIdHasBeenSet; }
80 template <typename CreatorAccountIdT = Aws::String>
81 void SetCreatorAccountId(CreatorAccountIdT&& value) {
82 m_creatorAccountIdHasBeenSet = true;
83 m_creatorAccountId = std::forward<CreatorAccountIdT>(value);
84 }
85 template <typename CreatorAccountIdT = Aws::String>
86 CentralizationRuleSummary& WithCreatorAccountId(CreatorAccountIdT&& value) {
87 SetCreatorAccountId(std::forward<CreatorAccountIdT>(value));
88 return *this;
89 }
91
93
96 inline long long GetCreatedTimeStamp() const { return m_createdTimeStamp; }
97 inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; }
98 inline void SetCreatedTimeStamp(long long value) {
99 m_createdTimeStampHasBeenSet = true;
100 m_createdTimeStamp = value;
101 }
103 SetCreatedTimeStamp(value);
104 return *this;
105 }
107
109
113 inline const Aws::String& GetCreatedRegion() const { return m_createdRegion; }
114 inline bool CreatedRegionHasBeenSet() const { return m_createdRegionHasBeenSet; }
115 template <typename CreatedRegionT = Aws::String>
116 void SetCreatedRegion(CreatedRegionT&& value) {
117 m_createdRegionHasBeenSet = true;
118 m_createdRegion = std::forward<CreatedRegionT>(value);
119 }
120 template <typename CreatedRegionT = Aws::String>
122 SetCreatedRegion(std::forward<CreatedRegionT>(value));
123 return *this;
124 }
126
128
131 inline long long GetLastUpdateTimeStamp() const { return m_lastUpdateTimeStamp; }
132 inline bool LastUpdateTimeStampHasBeenSet() const { return m_lastUpdateTimeStampHasBeenSet; }
133 inline void SetLastUpdateTimeStamp(long long value) {
134 m_lastUpdateTimeStampHasBeenSet = true;
135 m_lastUpdateTimeStamp = value;
136 }
139 return *this;
140 }
142
144
147 inline RuleHealth GetRuleHealth() const { return m_ruleHealth; }
148 inline bool RuleHealthHasBeenSet() const { return m_ruleHealthHasBeenSet; }
149 inline void SetRuleHealth(RuleHealth value) {
150 m_ruleHealthHasBeenSet = true;
151 m_ruleHealth = value;
152 }
154 SetRuleHealth(value);
155 return *this;
156 }
158
160
163 inline CentralizationFailureReason GetFailureReason() const { return m_failureReason; }
164 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
166 m_failureReasonHasBeenSet = true;
167 m_failureReason = value;
168 }
170 SetFailureReason(value);
171 return *this;
172 }
174
176
179 inline const Aws::String& GetDestinationAccountId() const { return m_destinationAccountId; }
180 inline bool DestinationAccountIdHasBeenSet() const { return m_destinationAccountIdHasBeenSet; }
181 template <typename DestinationAccountIdT = Aws::String>
182 void SetDestinationAccountId(DestinationAccountIdT&& value) {
183 m_destinationAccountIdHasBeenSet = true;
184 m_destinationAccountId = std::forward<DestinationAccountIdT>(value);
185 }
186 template <typename DestinationAccountIdT = Aws::String>
187 CentralizationRuleSummary& WithDestinationAccountId(DestinationAccountIdT&& value) {
188 SetDestinationAccountId(std::forward<DestinationAccountIdT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::String& GetDestinationRegion() const { return m_destinationRegion; }
198 inline bool DestinationRegionHasBeenSet() const { return m_destinationRegionHasBeenSet; }
199 template <typename DestinationRegionT = Aws::String>
200 void SetDestinationRegion(DestinationRegionT&& value) {
201 m_destinationRegionHasBeenSet = true;
202 m_destinationRegion = std::forward<DestinationRegionT>(value);
203 }
204 template <typename DestinationRegionT = Aws::String>
206 SetDestinationRegion(std::forward<DestinationRegionT>(value));
207 return *this;
208 }
210 private:
211 Aws::String m_ruleName;
212
213 Aws::String m_ruleArn;
214
215 Aws::String m_creatorAccountId;
216
217 long long m_createdTimeStamp{0};
218
219 Aws::String m_createdRegion;
220
221 long long m_lastUpdateTimeStamp{0};
222
223 RuleHealth m_ruleHealth{RuleHealth::NOT_SET};
224
226
227 Aws::String m_destinationAccountId;
228
229 Aws::String m_destinationRegion;
230 bool m_ruleNameHasBeenSet = false;
231 bool m_ruleArnHasBeenSet = false;
232 bool m_creatorAccountIdHasBeenSet = false;
233 bool m_createdTimeStampHasBeenSet = false;
234 bool m_createdRegionHasBeenSet = false;
235 bool m_lastUpdateTimeStampHasBeenSet = false;
236 bool m_ruleHealthHasBeenSet = false;
237 bool m_failureReasonHasBeenSet = false;
238 bool m_destinationAccountIdHasBeenSet = false;
239 bool m_destinationRegionHasBeenSet = false;
240};
241
242} // namespace Model
243} // namespace ObservabilityAdmin
244} // namespace Aws
CentralizationRuleSummary & WithRuleName(RuleNameT &&value)
CentralizationRuleSummary & WithFailureReason(CentralizationFailureReason value)
CentralizationRuleSummary & WithCreatorAccountId(CreatorAccountIdT &&value)
CentralizationRuleSummary & WithDestinationRegion(DestinationRegionT &&value)
AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
CentralizationRuleSummary & WithLastUpdateTimeStamp(long long value)
CentralizationRuleSummary & WithCreatedTimeStamp(long long value)
AWS_OBSERVABILITYADMIN_API CentralizationRuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
CentralizationRuleSummary & WithCreatedRegion(CreatedRegionT &&value)
CentralizationRuleSummary & WithRuleHealth(RuleHealth value)
CentralizationRuleSummary & WithRuleArn(RuleArnT &&value)
AWS_OBSERVABILITYADMIN_API CentralizationRuleSummary()=default
CentralizationRuleSummary & WithDestinationAccountId(DestinationAccountIdT &&value)
AWS_OBSERVABILITYADMIN_API CentralizationRuleSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue