AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceLevelObjective.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/DateTime.h>
10#include <aws/application-signals/model/ServiceLevelIndicator.h>
11#include <aws/application-signals/model/RequestBasedServiceLevelIndicator.h>
12#include <aws/application-signals/model/EvaluationType.h>
13#include <aws/application-signals/model/Goal.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
44 {
45 public:
46 AWS_APPLICATIONSIGNALS_API ServiceLevelObjective();
47 AWS_APPLICATIONSIGNALS_API ServiceLevelObjective(Aws::Utils::Json::JsonView jsonValue);
48 AWS_APPLICATIONSIGNALS_API ServiceLevelObjective& operator=(Aws::Utils::Json::JsonView jsonValue);
49 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
56 inline const Aws::String& GetArn() const{ return m_arn; }
57 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
58 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
59 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
60 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
61 inline ServiceLevelObjective& WithArn(const Aws::String& value) { SetArn(value); return *this;}
62 inline ServiceLevelObjective& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
63 inline ServiceLevelObjective& WithArn(const char* value) { SetArn(value); return *this;}
65
67
70 inline const Aws::String& GetName() const{ return m_name; }
71 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
72 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
73 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
74 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
75 inline ServiceLevelObjective& WithName(const Aws::String& value) { SetName(value); return *this;}
76 inline ServiceLevelObjective& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
77 inline ServiceLevelObjective& WithName(const char* value) { SetName(value); return *this;}
79
81
84 inline const Aws::String& GetDescription() const{ return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
87 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
88 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
89 inline ServiceLevelObjective& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
90 inline ServiceLevelObjective& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
91 inline ServiceLevelObjective& WithDescription(const char* value) { SetDescription(value); return *this;}
93
95
100 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
101 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
102 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
103 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
104 inline ServiceLevelObjective& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
105 inline ServiceLevelObjective& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
107
109
114 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
115 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
116 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
117 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
119 inline ServiceLevelObjective& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
121
123
127 inline const ServiceLevelIndicator& GetSli() const{ return m_sli; }
128 inline bool SliHasBeenSet() const { return m_sliHasBeenSet; }
129 inline void SetSli(const ServiceLevelIndicator& value) { m_sliHasBeenSet = true; m_sli = value; }
130 inline void SetSli(ServiceLevelIndicator&& value) { m_sliHasBeenSet = true; m_sli = std::move(value); }
131 inline ServiceLevelObjective& WithSli(const ServiceLevelIndicator& value) { SetSli(value); return *this;}
132 inline ServiceLevelObjective& WithSli(ServiceLevelIndicator&& value) { SetSli(std::move(value)); return *this;}
134
136
140 inline const RequestBasedServiceLevelIndicator& GetRequestBasedSli() const{ return m_requestBasedSli; }
141 inline bool RequestBasedSliHasBeenSet() const { return m_requestBasedSliHasBeenSet; }
142 inline void SetRequestBasedSli(const RequestBasedServiceLevelIndicator& value) { m_requestBasedSliHasBeenSet = true; m_requestBasedSli = value; }
143 inline void SetRequestBasedSli(RequestBasedServiceLevelIndicator&& value) { m_requestBasedSliHasBeenSet = true; m_requestBasedSli = std::move(value); }
147
149
152 inline const EvaluationType& GetEvaluationType() const{ return m_evaluationType; }
153 inline bool EvaluationTypeHasBeenSet() const { return m_evaluationTypeHasBeenSet; }
154 inline void SetEvaluationType(const EvaluationType& value) { m_evaluationTypeHasBeenSet = true; m_evaluationType = value; }
155 inline void SetEvaluationType(EvaluationType&& value) { m_evaluationTypeHasBeenSet = true; m_evaluationType = std::move(value); }
156 inline ServiceLevelObjective& WithEvaluationType(const EvaluationType& value) { SetEvaluationType(value); return *this;}
157 inline ServiceLevelObjective& WithEvaluationType(EvaluationType&& value) { SetEvaluationType(std::move(value)); return *this;}
159
161
162 inline const Goal& GetGoal() const{ return m_goal; }
163 inline bool GoalHasBeenSet() const { return m_goalHasBeenSet; }
164 inline void SetGoal(const Goal& value) { m_goalHasBeenSet = true; m_goal = value; }
165 inline void SetGoal(Goal&& value) { m_goalHasBeenSet = true; m_goal = std::move(value); }
166 inline ServiceLevelObjective& WithGoal(const Goal& value) { SetGoal(value); return *this;}
167 inline ServiceLevelObjective& WithGoal(Goal&& value) { SetGoal(std::move(value)); return *this;}
169 private:
170
171 Aws::String m_arn;
172 bool m_arnHasBeenSet = false;
173
174 Aws::String m_name;
175 bool m_nameHasBeenSet = false;
176
177 Aws::String m_description;
178 bool m_descriptionHasBeenSet = false;
179
180 Aws::Utils::DateTime m_createdTime;
181 bool m_createdTimeHasBeenSet = false;
182
183 Aws::Utils::DateTime m_lastUpdatedTime;
184 bool m_lastUpdatedTimeHasBeenSet = false;
185
187 bool m_sliHasBeenSet = false;
188
189 RequestBasedServiceLevelIndicator m_requestBasedSli;
190 bool m_requestBasedSliHasBeenSet = false;
191
192 EvaluationType m_evaluationType;
193 bool m_evaluationTypeHasBeenSet = false;
194
195 Goal m_goal;
196 bool m_goalHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace ApplicationSignals
201} // namespace Aws
void SetRequestBasedSli(RequestBasedServiceLevelIndicator &&value)
AWS_APPLICATIONSIGNALS_API ServiceLevelObjective(Aws::Utils::Json::JsonView jsonValue)
ServiceLevelObjective & WithName(const char *value)
ServiceLevelObjective & WithDescription(const Aws::String &value)
ServiceLevelObjective & WithSli(const ServiceLevelIndicator &value)
AWS_APPLICATIONSIGNALS_API ServiceLevelObjective & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceLevelObjective & WithName(const Aws::String &value)
ServiceLevelObjective & WithName(Aws::String &&value)
ServiceLevelObjective & WithDescription(Aws::String &&value)
ServiceLevelObjective & WithGoal(const Goal &value)
ServiceLevelObjective & WithEvaluationType(const EvaluationType &value)
void SetRequestBasedSli(const RequestBasedServiceLevelIndicator &value)
ServiceLevelObjective & WithArn(const char *value)
const RequestBasedServiceLevelIndicator & GetRequestBasedSli() const
ServiceLevelObjective & WithRequestBasedSli(RequestBasedServiceLevelIndicator &&value)
ServiceLevelObjective & WithEvaluationType(EvaluationType &&value)
ServiceLevelObjective & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
ServiceLevelObjective & WithCreatedTime(Aws::Utils::DateTime &&value)
ServiceLevelObjective & WithDescription(const char *value)
ServiceLevelObjective & WithRequestBasedSli(const RequestBasedServiceLevelIndicator &value)
ServiceLevelObjective & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
void SetCreatedTime(const Aws::Utils::DateTime &value)
ServiceLevelObjective & WithCreatedTime(const Aws::Utils::DateTime &value)
ServiceLevelObjective & WithArn(const Aws::String &value)
ServiceLevelObjective & WithArn(Aws::String &&value)
ServiceLevelObjective & WithSli(ServiceLevelIndicator &&value)
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue