AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ServiceLevelObjectiveSummary.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/application-signals/model/DependencyConfig.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/application-signals/model/EvaluationType.h>
13#include <aws/application-signals/model/MetricSourceType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ApplicationSignals
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_APPLICATIONSIGNALS_API ServiceLevelObjectiveSummary() = default;
41 AWS_APPLICATIONSIGNALS_API ServiceLevelObjectiveSummary(Aws::Utils::Json::JsonView jsonValue);
43 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetArn() const { return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 template<typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 ServiceLevelObjectiveSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template<typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 ServiceLevelObjectiveSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
87 inline const Aws::Map<Aws::String, Aws::String>& GetKeyAttributes() const { return m_keyAttributes; }
88 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
89 template<typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
90 void SetKeyAttributes(KeyAttributesT&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::forward<KeyAttributesT>(value); }
91 template<typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
92 ServiceLevelObjectiveSummary& WithKeyAttributes(KeyAttributesT&& value) { SetKeyAttributes(std::forward<KeyAttributesT>(value)); return *this;}
93 template<typename KeyAttributesKeyT = Aws::String, typename KeyAttributesValueT = Aws::String>
94 ServiceLevelObjectiveSummary& AddKeyAttributes(KeyAttributesKeyT&& key, KeyAttributesValueT&& value) {
95 m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::forward<KeyAttributesKeyT>(key), std::forward<KeyAttributesValueT>(value)); return *this;
96 }
98
100
104 inline const Aws::String& GetOperationName() const { return m_operationName; }
105 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
106 template<typename OperationNameT = Aws::String>
107 void SetOperationName(OperationNameT&& value) { m_operationNameHasBeenSet = true; m_operationName = std::forward<OperationNameT>(value); }
108 template<typename OperationNameT = Aws::String>
109 ServiceLevelObjectiveSummary& WithOperationName(OperationNameT&& value) { SetOperationName(std::forward<OperationNameT>(value)); return *this;}
111
113
117 inline const DependencyConfig& GetDependencyConfig() const { return m_dependencyConfig; }
118 inline bool DependencyConfigHasBeenSet() const { return m_dependencyConfigHasBeenSet; }
119 template<typename DependencyConfigT = DependencyConfig>
120 void SetDependencyConfig(DependencyConfigT&& value) { m_dependencyConfigHasBeenSet = true; m_dependencyConfig = std::forward<DependencyConfigT>(value); }
121 template<typename DependencyConfigT = DependencyConfig>
122 ServiceLevelObjectiveSummary& WithDependencyConfig(DependencyConfigT&& value) { SetDependencyConfig(std::forward<DependencyConfigT>(value)); return *this;}
124
126
130 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
131 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
132 template<typename CreatedTimeT = Aws::Utils::DateTime>
133 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
134 template<typename CreatedTimeT = Aws::Utils::DateTime>
135 ServiceLevelObjectiveSummary& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
137
139
142 inline EvaluationType GetEvaluationType() const { return m_evaluationType; }
143 inline bool EvaluationTypeHasBeenSet() const { return m_evaluationTypeHasBeenSet; }
144 inline void SetEvaluationType(EvaluationType value) { m_evaluationTypeHasBeenSet = true; m_evaluationType = value; }
147
149
154 inline MetricSourceType GetMetricSourceType() const { return m_metricSourceType; }
155 inline bool MetricSourceTypeHasBeenSet() const { return m_metricSourceTypeHasBeenSet; }
156 inline void SetMetricSourceType(MetricSourceType value) { m_metricSourceTypeHasBeenSet = true; m_metricSourceType = value; }
159 private:
160
161 Aws::String m_arn;
162 bool m_arnHasBeenSet = false;
163
164 Aws::String m_name;
165 bool m_nameHasBeenSet = false;
166
168 bool m_keyAttributesHasBeenSet = false;
169
170 Aws::String m_operationName;
171 bool m_operationNameHasBeenSet = false;
172
173 DependencyConfig m_dependencyConfig;
174 bool m_dependencyConfigHasBeenSet = false;
175
176 Aws::Utils::DateTime m_createdTime{};
177 bool m_createdTimeHasBeenSet = false;
178
179 EvaluationType m_evaluationType{EvaluationType::NOT_SET};
180 bool m_evaluationTypeHasBeenSet = false;
181
183 bool m_metricSourceTypeHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace ApplicationSignals
188} // 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)
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