AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
ServiceLevelObjectiveSummary.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/DependencyConfig.h>
9#include <aws/application-signals/model/EvaluationType.h>
10#include <aws/application-signals/model/MetricSource.h>
11#include <aws/application-signals/model/MetricSourceType.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ApplicationSignals {
26namespace Model {
27
35 public:
36 AWS_APPLICATIONSIGNALS_API ServiceLevelObjectiveSummary() = default;
37 AWS_APPLICATIONSIGNALS_API ServiceLevelObjectiveSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetArn() const { return m_arn; }
46 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 template <typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) {
49 m_arnHasBeenSet = true;
50 m_arn = std::forward<ArnT>(value);
51 }
52 template <typename ArnT = Aws::String>
54 SetArn(std::forward<ArnT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
94 inline const Aws::Map<Aws::String, Aws::String>& GetKeyAttributes() const { return m_keyAttributes; }
95 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
96 template <typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
97 void SetKeyAttributes(KeyAttributesT&& value) {
98 m_keyAttributesHasBeenSet = true;
99 m_keyAttributes = std::forward<KeyAttributesT>(value);
100 }
101 template <typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
103 SetKeyAttributes(std::forward<KeyAttributesT>(value));
104 return *this;
105 }
106 template <typename KeyAttributesKeyT = Aws::String, typename KeyAttributesValueT = Aws::String>
107 ServiceLevelObjectiveSummary& AddKeyAttributes(KeyAttributesKeyT&& key, KeyAttributesValueT&& value) {
108 m_keyAttributesHasBeenSet = true;
109 m_keyAttributes.emplace(std::forward<KeyAttributesKeyT>(key), std::forward<KeyAttributesValueT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetOperationName() const { return m_operationName; }
120 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
121 template <typename OperationNameT = Aws::String>
122 void SetOperationName(OperationNameT&& value) {
123 m_operationNameHasBeenSet = true;
124 m_operationName = std::forward<OperationNameT>(value);
125 }
126 template <typename OperationNameT = Aws::String>
128 SetOperationName(std::forward<OperationNameT>(value));
129 return *this;
130 }
132
134
138 inline const DependencyConfig& GetDependencyConfig() const { return m_dependencyConfig; }
139 inline bool DependencyConfigHasBeenSet() const { return m_dependencyConfigHasBeenSet; }
140 template <typename DependencyConfigT = DependencyConfig>
141 void SetDependencyConfig(DependencyConfigT&& value) {
142 m_dependencyConfigHasBeenSet = true;
143 m_dependencyConfig = std::forward<DependencyConfigT>(value);
144 }
145 template <typename DependencyConfigT = DependencyConfig>
147 SetDependencyConfig(std::forward<DependencyConfigT>(value));
148 return *this;
149 }
151
153
157 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
158 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
159 template <typename CreatedTimeT = Aws::Utils::DateTime>
160 void SetCreatedTime(CreatedTimeT&& value) {
161 m_createdTimeHasBeenSet = true;
162 m_createdTime = std::forward<CreatedTimeT>(value);
163 }
164 template <typename CreatedTimeT = Aws::Utils::DateTime>
166 SetCreatedTime(std::forward<CreatedTimeT>(value));
167 return *this;
168 }
170
172
175 inline EvaluationType GetEvaluationType() const { return m_evaluationType; }
176 inline bool EvaluationTypeHasBeenSet() const { return m_evaluationTypeHasBeenSet; }
178 m_evaluationTypeHasBeenSet = true;
179 m_evaluationType = value;
180 }
182 SetEvaluationType(value);
183 return *this;
184 }
186
188
194 inline MetricSourceType GetMetricSourceType() const { return m_metricSourceType; }
195 inline bool MetricSourceTypeHasBeenSet() const { return m_metricSourceTypeHasBeenSet; }
197 m_metricSourceTypeHasBeenSet = true;
198 m_metricSourceType = value;
199 }
201 SetMetricSourceType(value);
202 return *this;
203 }
205
207
211 inline const MetricSource& GetMetricSource() const { return m_metricSource; }
212 inline bool MetricSourceHasBeenSet() const { return m_metricSourceHasBeenSet; }
213 template <typename MetricSourceT = MetricSource>
214 void SetMetricSource(MetricSourceT&& value) {
215 m_metricSourceHasBeenSet = true;
216 m_metricSource = std::forward<MetricSourceT>(value);
217 }
218 template <typename MetricSourceT = MetricSource>
220 SetMetricSource(std::forward<MetricSourceT>(value));
221 return *this;
222 }
224 private:
225 Aws::String m_arn;
226
227 Aws::String m_name;
228
230
231 Aws::String m_operationName;
232
233 DependencyConfig m_dependencyConfig;
234
235 Aws::Utils::DateTime m_createdTime{};
236
237 EvaluationType m_evaluationType{EvaluationType::NOT_SET};
238
240
241 MetricSource m_metricSource;
242 bool m_arnHasBeenSet = false;
243 bool m_nameHasBeenSet = false;
244 bool m_keyAttributesHasBeenSet = false;
245 bool m_operationNameHasBeenSet = false;
246 bool m_dependencyConfigHasBeenSet = false;
247 bool m_createdTimeHasBeenSet = false;
248 bool m_evaluationTypeHasBeenSet = false;
249 bool m_metricSourceTypeHasBeenSet = false;
250 bool m_metricSourceHasBeenSet = false;
251};
252
253} // namespace Model
254} // namespace ApplicationSignals
255} // namespace Aws
ServiceLevelObjectiveSummary & WithKeyAttributes(KeyAttributesT &&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