AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceLevelObjectiveBudgetReport.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/application-signals/model/EvaluationType.h>
10#include <aws/application-signals/model/ServiceLevelObjectiveBudgetStatus.h>
11#include <aws/application-signals/model/ServiceLevelIndicator.h>
12#include <aws/application-signals/model/RequestBasedServiceLevelIndicator.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
38 {
39 public:
40 AWS_APPLICATIONSIGNALS_API ServiceLevelObjectiveBudgetReport();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
53 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
54 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
55 inline ServiceLevelObjectiveBudgetReport& WithArn(const Aws::String& value) { SetArn(value); return *this;}
56 inline ServiceLevelObjectiveBudgetReport& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
57 inline ServiceLevelObjectiveBudgetReport& WithArn(const char* value) { SetArn(value); return *this;}
59
61
64 inline const Aws::String& GetName() const{ return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 inline ServiceLevelObjectiveBudgetReport& WithName(const Aws::String& value) { SetName(value); return *this;}
70 inline ServiceLevelObjectiveBudgetReport& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 inline ServiceLevelObjectiveBudgetReport& WithName(const char* value) { SetName(value); return *this;}
73
75
79 inline const EvaluationType& GetEvaluationType() const{ return m_evaluationType; }
80 inline bool EvaluationTypeHasBeenSet() const { return m_evaluationTypeHasBeenSet; }
81 inline void SetEvaluationType(const EvaluationType& value) { m_evaluationTypeHasBeenSet = true; m_evaluationType = value; }
82 inline void SetEvaluationType(EvaluationType&& value) { m_evaluationTypeHasBeenSet = true; m_evaluationType = std::move(value); }
84 inline ServiceLevelObjectiveBudgetReport& WithEvaluationType(EvaluationType&& value) { SetEvaluationType(std::move(value)); return *this;}
86
88
100 inline const ServiceLevelObjectiveBudgetStatus& GetBudgetStatus() const{ return m_budgetStatus; }
101 inline bool BudgetStatusHasBeenSet() const { return m_budgetStatusHasBeenSet; }
102 inline void SetBudgetStatus(const ServiceLevelObjectiveBudgetStatus& value) { m_budgetStatusHasBeenSet = true; m_budgetStatus = value; }
103 inline void SetBudgetStatus(ServiceLevelObjectiveBudgetStatus&& value) { m_budgetStatusHasBeenSet = true; m_budgetStatus = std::move(value); }
107
109
118 inline double GetAttainment() const{ return m_attainment; }
119 inline bool AttainmentHasBeenSet() const { return m_attainmentHasBeenSet; }
120 inline void SetAttainment(double value) { m_attainmentHasBeenSet = true; m_attainment = value; }
121 inline ServiceLevelObjectiveBudgetReport& WithAttainment(double value) { SetAttainment(value); return *this;}
123
125
129 inline int GetTotalBudgetSeconds() const{ return m_totalBudgetSeconds; }
130 inline bool TotalBudgetSecondsHasBeenSet() const { return m_totalBudgetSecondsHasBeenSet; }
131 inline void SetTotalBudgetSeconds(int value) { m_totalBudgetSecondsHasBeenSet = true; m_totalBudgetSeconds = value; }
134
136
143 inline int GetBudgetSecondsRemaining() const{ return m_budgetSecondsRemaining; }
144 inline bool BudgetSecondsRemainingHasBeenSet() const { return m_budgetSecondsRemainingHasBeenSet; }
145 inline void SetBudgetSecondsRemaining(int value) { m_budgetSecondsRemainingHasBeenSet = true; m_budgetSecondsRemaining = value; }
148
150
160 inline int GetTotalBudgetRequests() const{ return m_totalBudgetRequests; }
161 inline bool TotalBudgetRequestsHasBeenSet() const { return m_totalBudgetRequestsHasBeenSet; }
162 inline void SetTotalBudgetRequests(int value) { m_totalBudgetRequestsHasBeenSet = true; m_totalBudgetRequests = value; }
165
167
174 inline int GetBudgetRequestsRemaining() const{ return m_budgetRequestsRemaining; }
175 inline bool BudgetRequestsRemainingHasBeenSet() const { return m_budgetRequestsRemainingHasBeenSet; }
176 inline void SetBudgetRequestsRemaining(int value) { m_budgetRequestsRemainingHasBeenSet = true; m_budgetRequestsRemaining = value; }
179
181
185 inline const ServiceLevelIndicator& GetSli() const{ return m_sli; }
186 inline bool SliHasBeenSet() const { return m_sliHasBeenSet; }
187 inline void SetSli(const ServiceLevelIndicator& value) { m_sliHasBeenSet = true; m_sli = value; }
188 inline void SetSli(ServiceLevelIndicator&& value) { m_sliHasBeenSet = true; m_sli = std::move(value); }
189 inline ServiceLevelObjectiveBudgetReport& WithSli(const ServiceLevelIndicator& value) { SetSli(value); return *this;}
190 inline ServiceLevelObjectiveBudgetReport& WithSli(ServiceLevelIndicator&& value) { SetSli(std::move(value)); return *this;}
192
194
195 inline const RequestBasedServiceLevelIndicator& GetRequestBasedSli() const{ return m_requestBasedSli; }
196 inline bool RequestBasedSliHasBeenSet() const { return m_requestBasedSliHasBeenSet; }
197 inline void SetRequestBasedSli(const RequestBasedServiceLevelIndicator& value) { m_requestBasedSliHasBeenSet = true; m_requestBasedSli = value; }
198 inline void SetRequestBasedSli(RequestBasedServiceLevelIndicator&& value) { m_requestBasedSliHasBeenSet = true; m_requestBasedSli = std::move(value); }
202
204
205 inline const Goal& GetGoal() const{ return m_goal; }
206 inline bool GoalHasBeenSet() const { return m_goalHasBeenSet; }
207 inline void SetGoal(const Goal& value) { m_goalHasBeenSet = true; m_goal = value; }
208 inline void SetGoal(Goal&& value) { m_goalHasBeenSet = true; m_goal = std::move(value); }
209 inline ServiceLevelObjectiveBudgetReport& WithGoal(const Goal& value) { SetGoal(value); return *this;}
210 inline ServiceLevelObjectiveBudgetReport& WithGoal(Goal&& value) { SetGoal(std::move(value)); return *this;}
212 private:
213
214 Aws::String m_arn;
215 bool m_arnHasBeenSet = false;
216
217 Aws::String m_name;
218 bool m_nameHasBeenSet = false;
219
220 EvaluationType m_evaluationType;
221 bool m_evaluationTypeHasBeenSet = false;
222
224 bool m_budgetStatusHasBeenSet = false;
225
226 double m_attainment;
227 bool m_attainmentHasBeenSet = false;
228
229 int m_totalBudgetSeconds;
230 bool m_totalBudgetSecondsHasBeenSet = false;
231
232 int m_budgetSecondsRemaining;
233 bool m_budgetSecondsRemainingHasBeenSet = false;
234
235 int m_totalBudgetRequests;
236 bool m_totalBudgetRequestsHasBeenSet = false;
237
238 int m_budgetRequestsRemaining;
239 bool m_budgetRequestsRemainingHasBeenSet = false;
240
242 bool m_sliHasBeenSet = false;
243
244 RequestBasedServiceLevelIndicator m_requestBasedSli;
245 bool m_requestBasedSliHasBeenSet = false;
246
247 Goal m_goal;
248 bool m_goalHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace ApplicationSignals
253} // namespace Aws
ServiceLevelObjectiveBudgetReport & WithEvaluationType(const EvaluationType &value)
ServiceLevelObjectiveBudgetReport & WithArn(const Aws::String &value)
ServiceLevelObjectiveBudgetReport & WithBudgetStatus(ServiceLevelObjectiveBudgetStatus &&value)
AWS_APPLICATIONSIGNALS_API ServiceLevelObjectiveBudgetReport(Aws::Utils::Json::JsonView jsonValue)
ServiceLevelObjectiveBudgetReport & WithBudgetStatus(const ServiceLevelObjectiveBudgetStatus &value)
ServiceLevelObjectiveBudgetReport & WithName(Aws::String &&value)
ServiceLevelObjectiveBudgetReport & WithName(const Aws::String &value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceLevelObjectiveBudgetReport & WithSli(const ServiceLevelIndicator &value)
AWS_APPLICATIONSIGNALS_API ServiceLevelObjectiveBudgetReport & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceLevelObjectiveBudgetReport & WithSli(ServiceLevelIndicator &&value)
ServiceLevelObjectiveBudgetReport & WithArn(Aws::String &&value)
ServiceLevelObjectiveBudgetReport & WithEvaluationType(EvaluationType &&value)
ServiceLevelObjectiveBudgetReport & WithRequestBasedSli(const RequestBasedServiceLevelIndicator &value)
ServiceLevelObjectiveBudgetReport & WithRequestBasedSli(RequestBasedServiceLevelIndicator &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue