AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 ServiceLevelObjectiveBudgetReport& 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 ServiceLevelObjectiveBudgetReport& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
75 inline EvaluationType GetEvaluationType() const { return m_evaluationType; }
76 inline bool EvaluationTypeHasBeenSet() const { return m_evaluationTypeHasBeenSet; }
77 inline void SetEvaluationType(EvaluationType value) { m_evaluationTypeHasBeenSet = true; m_evaluationType = value; }
80
82
94 inline ServiceLevelObjectiveBudgetStatus GetBudgetStatus() const { return m_budgetStatus; }
95 inline bool BudgetStatusHasBeenSet() const { return m_budgetStatusHasBeenSet; }
96 inline void SetBudgetStatus(ServiceLevelObjectiveBudgetStatus value) { m_budgetStatusHasBeenSet = true; m_budgetStatus = value; }
99
101
110 inline double GetAttainment() const { return m_attainment; }
111 inline bool AttainmentHasBeenSet() const { return m_attainmentHasBeenSet; }
112 inline void SetAttainment(double value) { m_attainmentHasBeenSet = true; m_attainment = value; }
113 inline ServiceLevelObjectiveBudgetReport& WithAttainment(double value) { SetAttainment(value); return *this;}
115
117
121 inline int GetTotalBudgetSeconds() const { return m_totalBudgetSeconds; }
122 inline bool TotalBudgetSecondsHasBeenSet() const { return m_totalBudgetSecondsHasBeenSet; }
123 inline void SetTotalBudgetSeconds(int value) { m_totalBudgetSecondsHasBeenSet = true; m_totalBudgetSeconds = value; }
126
128
135 inline int GetBudgetSecondsRemaining() const { return m_budgetSecondsRemaining; }
136 inline bool BudgetSecondsRemainingHasBeenSet() const { return m_budgetSecondsRemainingHasBeenSet; }
137 inline void SetBudgetSecondsRemaining(int value) { m_budgetSecondsRemainingHasBeenSet = true; m_budgetSecondsRemaining = value; }
140
142
152 inline int GetTotalBudgetRequests() const { return m_totalBudgetRequests; }
153 inline bool TotalBudgetRequestsHasBeenSet() const { return m_totalBudgetRequestsHasBeenSet; }
154 inline void SetTotalBudgetRequests(int value) { m_totalBudgetRequestsHasBeenSet = true; m_totalBudgetRequests = value; }
157
159
166 inline int GetBudgetRequestsRemaining() const { return m_budgetRequestsRemaining; }
167 inline bool BudgetRequestsRemainingHasBeenSet() const { return m_budgetRequestsRemainingHasBeenSet; }
168 inline void SetBudgetRequestsRemaining(int value) { m_budgetRequestsRemainingHasBeenSet = true; m_budgetRequestsRemaining = value; }
171
173
177 inline const ServiceLevelIndicator& GetSli() const { return m_sli; }
178 inline bool SliHasBeenSet() const { return m_sliHasBeenSet; }
179 template<typename SliT = ServiceLevelIndicator>
180 void SetSli(SliT&& value) { m_sliHasBeenSet = true; m_sli = std::forward<SliT>(value); }
181 template<typename SliT = ServiceLevelIndicator>
182 ServiceLevelObjectiveBudgetReport& WithSli(SliT&& value) { SetSli(std::forward<SliT>(value)); return *this;}
184
186
187 inline const RequestBasedServiceLevelIndicator& GetRequestBasedSli() const { return m_requestBasedSli; }
188 inline bool RequestBasedSliHasBeenSet() const { return m_requestBasedSliHasBeenSet; }
189 template<typename RequestBasedSliT = RequestBasedServiceLevelIndicator>
190 void SetRequestBasedSli(RequestBasedSliT&& value) { m_requestBasedSliHasBeenSet = true; m_requestBasedSli = std::forward<RequestBasedSliT>(value); }
191 template<typename RequestBasedSliT = RequestBasedServiceLevelIndicator>
192 ServiceLevelObjectiveBudgetReport& WithRequestBasedSli(RequestBasedSliT&& value) { SetRequestBasedSli(std::forward<RequestBasedSliT>(value)); return *this;}
194
196
197 inline const Goal& GetGoal() const { return m_goal; }
198 inline bool GoalHasBeenSet() const { return m_goalHasBeenSet; }
199 template<typename GoalT = Goal>
200 void SetGoal(GoalT&& value) { m_goalHasBeenSet = true; m_goal = std::forward<GoalT>(value); }
201 template<typename GoalT = Goal>
202 ServiceLevelObjectiveBudgetReport& WithGoal(GoalT&& value) { SetGoal(std::forward<GoalT>(value)); return *this;}
204 private:
205
206 Aws::String m_arn;
207 bool m_arnHasBeenSet = false;
208
209 Aws::String m_name;
210 bool m_nameHasBeenSet = false;
211
212 EvaluationType m_evaluationType{EvaluationType::NOT_SET};
213 bool m_evaluationTypeHasBeenSet = false;
214
216 bool m_budgetStatusHasBeenSet = false;
217
218 double m_attainment{0.0};
219 bool m_attainmentHasBeenSet = false;
220
221 int m_totalBudgetSeconds{0};
222 bool m_totalBudgetSecondsHasBeenSet = false;
223
224 int m_budgetSecondsRemaining{0};
225 bool m_budgetSecondsRemainingHasBeenSet = false;
226
227 int m_totalBudgetRequests{0};
228 bool m_totalBudgetRequestsHasBeenSet = false;
229
230 int m_budgetRequestsRemaining{0};
231 bool m_budgetRequestsRemainingHasBeenSet = false;
232
233 ServiceLevelIndicator m_sli;
234 bool m_sliHasBeenSet = false;
235
236 RequestBasedServiceLevelIndicator m_requestBasedSli;
237 bool m_requestBasedSliHasBeenSet = false;
238
239 Goal m_goal;
240 bool m_goalHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace ApplicationSignals
245} // namespace Aws
AWS_APPLICATIONSIGNALS_API ServiceLevelObjectiveBudgetReport(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API ServiceLevelObjectiveBudgetReport()=default
ServiceLevelObjectiveBudgetReport & WithRequestBasedSli(RequestBasedSliT &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONSIGNALS_API ServiceLevelObjectiveBudgetReport & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceLevelObjectiveBudgetReport & WithEvaluationType(EvaluationType value)
ServiceLevelObjectiveBudgetReport & WithBudgetStatus(ServiceLevelObjectiveBudgetStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue