AWS SDK for C++

AWS SDK for C++ Version 1.11.831

Loading...
Searching...
No Matches
ServiceLevelObjectiveSummary.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/CompositeSliConfig.h>
9#include <aws/application-signals/model/DependencyConfig.h>
10#include <aws/application-signals/model/EvaluationType.h>
11#include <aws/application-signals/model/MetricSource.h>
12#include <aws/application-signals/model/MetricSourceType.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ApplicationSignals {
27namespace Model {
28
36 public:
37 AWS_APPLICATIONSIGNALS_API ServiceLevelObjectiveSummary() = default;
38 AWS_APPLICATIONSIGNALS_API ServiceLevelObjectiveSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 template <typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) {
50 m_arnHasBeenSet = true;
51 m_arn = std::forward<ArnT>(value);
52 }
53 template <typename ArnT = Aws::String>
55 SetArn(std::forward<ArnT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
95 inline const Aws::Map<Aws::String, Aws::String>& GetKeyAttributes() const { return m_keyAttributes; }
96 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
97 template <typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
98 void SetKeyAttributes(KeyAttributesT&& value) {
99 m_keyAttributesHasBeenSet = true;
100 m_keyAttributes = std::forward<KeyAttributesT>(value);
101 }
102 template <typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
104 SetKeyAttributes(std::forward<KeyAttributesT>(value));
105 return *this;
106 }
107 template <typename KeyAttributesKeyT = Aws::String, typename KeyAttributesValueT = Aws::String>
108 ServiceLevelObjectiveSummary& AddKeyAttributes(KeyAttributesKeyT&& key, KeyAttributesValueT&& value) {
109 m_keyAttributesHasBeenSet = true;
110 m_keyAttributes.emplace(std::forward<KeyAttributesKeyT>(key), std::forward<KeyAttributesValueT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetOperationName() const { return m_operationName; }
121 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
122 template <typename OperationNameT = Aws::String>
123 void SetOperationName(OperationNameT&& value) {
124 m_operationNameHasBeenSet = true;
125 m_operationName = std::forward<OperationNameT>(value);
126 }
127 template <typename OperationNameT = Aws::String>
129 SetOperationName(std::forward<OperationNameT>(value));
130 return *this;
131 }
133
135
139 inline const DependencyConfig& GetDependencyConfig() const { return m_dependencyConfig; }
140 inline bool DependencyConfigHasBeenSet() const { return m_dependencyConfigHasBeenSet; }
141 template <typename DependencyConfigT = DependencyConfig>
142 void SetDependencyConfig(DependencyConfigT&& value) {
143 m_dependencyConfigHasBeenSet = true;
144 m_dependencyConfig = std::forward<DependencyConfigT>(value);
145 }
146 template <typename DependencyConfigT = DependencyConfig>
148 SetDependencyConfig(std::forward<DependencyConfigT>(value));
149 return *this;
150 }
152
154
158 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
159 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
160 template <typename CreatedTimeT = Aws::Utils::DateTime>
161 void SetCreatedTime(CreatedTimeT&& value) {
162 m_createdTimeHasBeenSet = true;
163 m_createdTime = std::forward<CreatedTimeT>(value);
164 }
165 template <typename CreatedTimeT = Aws::Utils::DateTime>
167 SetCreatedTime(std::forward<CreatedTimeT>(value));
168 return *this;
169 }
171
173
176 inline EvaluationType GetEvaluationType() const { return m_evaluationType; }
177 inline bool EvaluationTypeHasBeenSet() const { return m_evaluationTypeHasBeenSet; }
179 m_evaluationTypeHasBeenSet = true;
180 m_evaluationType = value;
181 }
183 SetEvaluationType(value);
184 return *this;
185 }
187
189
195 inline MetricSourceType GetMetricSourceType() const { return m_metricSourceType; }
196 inline bool MetricSourceTypeHasBeenSet() const { return m_metricSourceTypeHasBeenSet; }
198 m_metricSourceTypeHasBeenSet = true;
199 m_metricSourceType = value;
200 }
202 SetMetricSourceType(value);
203 return *this;
204 }
206
208
212 inline const MetricSource& GetMetricSource() const { return m_metricSource; }
213 inline bool MetricSourceHasBeenSet() const { return m_metricSourceHasBeenSet; }
214 template <typename MetricSourceT = MetricSource>
215 void SetMetricSource(MetricSourceT&& value) {
216 m_metricSourceHasBeenSet = true;
217 m_metricSource = std::forward<MetricSourceT>(value);
218 }
219 template <typename MetricSourceT = MetricSource>
221 SetMetricSource(std::forward<MetricSourceT>(value));
222 return *this;
223 }
225
227
231 inline const CompositeSliConfig& GetCompositeSliConfig() const { return m_compositeSliConfig; }
232 inline bool CompositeSliConfigHasBeenSet() const { return m_compositeSliConfigHasBeenSet; }
233 template <typename CompositeSliConfigT = CompositeSliConfig>
234 void SetCompositeSliConfig(CompositeSliConfigT&& value) {
235 m_compositeSliConfigHasBeenSet = true;
236 m_compositeSliConfig = std::forward<CompositeSliConfigT>(value);
237 }
238 template <typename CompositeSliConfigT = CompositeSliConfig>
240 SetCompositeSliConfig(std::forward<CompositeSliConfigT>(value));
241 return *this;
242 }
244 private:
245 Aws::String m_arn;
246
247 Aws::String m_name;
248
250
251 Aws::String m_operationName;
252
253 DependencyConfig m_dependencyConfig;
254
255 Aws::Utils::DateTime m_createdTime{};
256
257 EvaluationType m_evaluationType{EvaluationType::NOT_SET};
258
260
261 MetricSource m_metricSource;
262
263 CompositeSliConfig m_compositeSliConfig;
264 bool m_arnHasBeenSet = false;
265 bool m_nameHasBeenSet = false;
266 bool m_keyAttributesHasBeenSet = false;
267 bool m_operationNameHasBeenSet = false;
268 bool m_dependencyConfigHasBeenSet = false;
269 bool m_createdTimeHasBeenSet = false;
270 bool m_evaluationTypeHasBeenSet = false;
271 bool m_metricSourceTypeHasBeenSet = false;
272 bool m_metricSourceHasBeenSet = false;
273 bool m_compositeSliConfigHasBeenSet = false;
274};
275
276} // namespace Model
277} // namespace ApplicationSignals
278} // namespace Aws
ServiceLevelObjectiveSummary & WithKeyAttributes(KeyAttributesT &&value)
ServiceLevelObjectiveSummary & WithCompositeSliConfig(CompositeSliConfigT &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceLevelObjectiveSummary & WithCreatedTime(CreatedTimeT &&value)
AWS_APPLICATIONSIGNALS_API ServiceLevelObjectiveSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API ServiceLevelObjectiveSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetKeyAttributes() const
AWS_APPLICATIONSIGNALS_API ServiceLevelObjectiveSummary()=default
ServiceLevelObjectiveSummary & WithMetricSourceType(MetricSourceType value)
ServiceLevelObjectiveSummary & WithOperationName(OperationNameT &&value)
ServiceLevelObjectiveSummary & WithDependencyConfig(DependencyConfigT &&value)
ServiceLevelObjectiveSummary & AddKeyAttributes(KeyAttributesKeyT &&key, KeyAttributesValueT &&value)
ServiceLevelObjectiveSummary & WithEvaluationType(EvaluationType value)
ServiceLevelObjectiveSummary & WithMetricSource(MetricSourceT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue