AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
EvaluationScore.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Connect {
17namespace Model {
18
26 public:
27 AWS_CONNECT_API EvaluationScore() = default;
28 AWS_CONNECT_API EvaluationScore(Aws::Utils::Json::JsonView jsonValue);
30 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline double GetPercentage() const { return m_percentage; }
37 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
38 inline void SetPercentage(double value) {
39 m_percentageHasBeenSet = true;
40 m_percentage = value;
41 }
42 inline EvaluationScore& WithPercentage(double value) {
43 SetPercentage(value);
44 return *this;
45 }
47
49
52 inline bool GetNotApplicable() const { return m_notApplicable; }
53 inline bool NotApplicableHasBeenSet() const { return m_notApplicableHasBeenSet; }
54 inline void SetNotApplicable(bool value) {
55 m_notApplicableHasBeenSet = true;
56 m_notApplicable = value;
57 }
58 inline EvaluationScore& WithNotApplicable(bool value) {
59 SetNotApplicable(value);
60 return *this;
61 }
63
65
69 inline bool GetAutomaticFail() const { return m_automaticFail; }
70 inline bool AutomaticFailHasBeenSet() const { return m_automaticFailHasBeenSet; }
71 inline void SetAutomaticFail(bool value) {
72 m_automaticFailHasBeenSet = true;
73 m_automaticFail = value;
74 }
75 inline EvaluationScore& WithAutomaticFail(bool value) {
76 SetAutomaticFail(value);
77 return *this;
78 }
80
82
85 inline double GetAppliedWeight() const { return m_appliedWeight; }
86 inline bool AppliedWeightHasBeenSet() const { return m_appliedWeightHasBeenSet; }
87 inline void SetAppliedWeight(double value) {
88 m_appliedWeightHasBeenSet = true;
89 m_appliedWeight = value;
90 }
91 inline EvaluationScore& WithAppliedWeight(double value) {
92 SetAppliedWeight(value);
93 return *this;
94 }
96 private:
97 double m_percentage{0.0};
98
99 bool m_notApplicable{false};
100
101 bool m_automaticFail{false};
102
103 double m_appliedWeight{0.0};
104 bool m_percentageHasBeenSet = false;
105 bool m_notApplicableHasBeenSet = false;
106 bool m_automaticFailHasBeenSet = false;
107 bool m_appliedWeightHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace Connect
112} // namespace Aws
AWS_CONNECT_API EvaluationScore & operator=(Aws::Utils::Json::JsonView jsonValue)
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)
AWS_CONNECT_API EvaluationScore()=default
Aws::Utils::Json::JsonValue JsonValue