AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
EvaluationScore.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/PerformanceCategoryName.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Connect {
20namespace Model {
21
29 public:
30 AWS_CONNECT_API EvaluationScore() = default;
31 AWS_CONNECT_API EvaluationScore(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline double GetPercentage() const { return m_percentage; }
40 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
41 inline void SetPercentage(double value) {
42 m_percentageHasBeenSet = true;
43 m_percentage = value;
44 }
45 inline EvaluationScore& WithPercentage(double value) {
46 SetPercentage(value);
47 return *this;
48 }
50
52
55 inline bool GetNotApplicable() const { return m_notApplicable; }
56 inline bool NotApplicableHasBeenSet() const { return m_notApplicableHasBeenSet; }
57 inline void SetNotApplicable(bool value) {
58 m_notApplicableHasBeenSet = true;
59 m_notApplicable = value;
60 }
61 inline EvaluationScore& WithNotApplicable(bool value) {
62 SetNotApplicable(value);
63 return *this;
64 }
66
68
72 inline bool GetAutomaticFail() const { return m_automaticFail; }
73 inline bool AutomaticFailHasBeenSet() const { return m_automaticFailHasBeenSet; }
74 inline void SetAutomaticFail(bool value) {
75 m_automaticFailHasBeenSet = true;
76 m_automaticFail = value;
77 }
78 inline EvaluationScore& WithAutomaticFail(bool value) {
79 SetAutomaticFail(value);
80 return *this;
81 }
83
85
88 inline double GetAppliedWeight() const { return m_appliedWeight; }
89 inline bool AppliedWeightHasBeenSet() const { return m_appliedWeightHasBeenSet; }
90 inline void SetAppliedWeight(double value) {
91 m_appliedWeightHasBeenSet = true;
92 m_appliedWeight = value;
93 }
94 inline EvaluationScore& WithAppliedWeight(double value) {
95 SetAppliedWeight(value);
96 return *this;
97 }
99
101
104 inline int GetEarnedPoints() const { return m_earnedPoints; }
105 inline bool EarnedPointsHasBeenSet() const { return m_earnedPointsHasBeenSet; }
106 inline void SetEarnedPoints(int value) {
107 m_earnedPointsHasBeenSet = true;
108 m_earnedPoints = value;
109 }
111 SetEarnedPoints(value);
112 return *this;
113 }
115
117
120 inline int GetMaxBasePoint() const { return m_maxBasePoint; }
121 inline bool MaxBasePointHasBeenSet() const { return m_maxBasePointHasBeenSet; }
122 inline void SetMaxBasePoint(int value) {
123 m_maxBasePointHasBeenSet = true;
124 m_maxBasePoint = value;
125 }
127 SetMaxBasePoint(value);
128 return *this;
129 }
131
133
136 inline PerformanceCategoryName GetPerformanceCategory() const { return m_performanceCategory; }
137 inline bool PerformanceCategoryHasBeenSet() const { return m_performanceCategoryHasBeenSet; }
139 m_performanceCategoryHasBeenSet = true;
140 m_performanceCategory = value;
141 }
144 return *this;
145 }
147 private:
148 double m_percentage{0.0};
149
150 bool m_notApplicable{false};
151
152 bool m_automaticFail{false};
153
154 double m_appliedWeight{0.0};
155
156 int m_earnedPoints{0};
157
158 int m_maxBasePoint{0};
159
161 bool m_percentageHasBeenSet = false;
162 bool m_notApplicableHasBeenSet = false;
163 bool m_automaticFailHasBeenSet = false;
164 bool m_appliedWeightHasBeenSet = false;
165 bool m_earnedPointsHasBeenSet = false;
166 bool m_maxBasePointHasBeenSet = false;
167 bool m_performanceCategoryHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace Connect
172} // namespace Aws
AWS_CONNECT_API EvaluationScore & operator=(Aws::Utils::Json::JsonView jsonValue)
PerformanceCategoryName GetPerformanceCategory() const
EvaluationScore & WithAppliedWeight(double value)
EvaluationScore & WithAutomaticFail(bool value)
AWS_CONNECT_API EvaluationScore(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
EvaluationScore & WithPercentage(double value)
EvaluationScore & WithNotApplicable(bool value)
EvaluationScore & WithMaxBasePoint(int value)
void SetPerformanceCategory(PerformanceCategoryName value)
AWS_CONNECT_API EvaluationScore()=default
EvaluationScore & WithEarnedPoints(int value)
EvaluationScore & WithPerformanceCategory(PerformanceCategoryName value)
Aws::Utils::Json::JsonValue JsonValue