AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
EvaluationFormSection.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/EvaluationFormItem.h>
9#include <aws/connect/model/EvaluationFormScoreThreshold.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect {
23namespace Model {
24class EvaluationFormItem;
25
34 public:
35 AWS_CONNECT_API EvaluationFormSection() = default;
38 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetTitle() const { return m_title; }
45 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
46 template <typename TitleT = Aws::String>
47 void SetTitle(TitleT&& value) {
48 m_titleHasBeenSet = true;
49 m_title = std::forward<TitleT>(value);
50 }
51 template <typename TitleT = Aws::String>
53 SetTitle(std::forward<TitleT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetRefId() const { return m_refId; }
64 inline bool RefIdHasBeenSet() const { return m_refIdHasBeenSet; }
65 template <typename RefIdT = Aws::String>
66 void SetRefId(RefIdT&& value) {
67 m_refIdHasBeenSet = true;
68 m_refId = std::forward<RefIdT>(value);
69 }
70 template <typename RefIdT = Aws::String>
72 SetRefId(std::forward<RefIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetInstructions() const { return m_instructions; }
82 inline bool InstructionsHasBeenSet() const { return m_instructionsHasBeenSet; }
83 template <typename InstructionsT = Aws::String>
84 void SetInstructions(InstructionsT&& value) {
85 m_instructionsHasBeenSet = true;
86 m_instructions = std::forward<InstructionsT>(value);
87 }
88 template <typename InstructionsT = Aws::String>
89 EvaluationFormSection& WithInstructions(InstructionsT&& value) {
90 SetInstructions(std::forward<InstructionsT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Vector<EvaluationFormItem>& GetItems() const { return m_items; }
100 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
101 template <typename ItemsT = Aws::Vector<EvaluationFormItem>>
102 void SetItems(ItemsT&& value) {
103 m_itemsHasBeenSet = true;
104 m_items = std::forward<ItemsT>(value);
105 }
106 template <typename ItemsT = Aws::Vector<EvaluationFormItem>>
108 SetItems(std::forward<ItemsT>(value));
109 return *this;
110 }
111 template <typename ItemsT = EvaluationFormItem>
113 m_itemsHasBeenSet = true;
114 m_items.emplace_back(std::forward<ItemsT>(value));
115 return *this;
116 }
118
120
123 inline double GetWeight() const { return m_weight; }
124 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
125 inline void SetWeight(double value) {
126 m_weightHasBeenSet = true;
127 m_weight = value;
128 }
129 inline EvaluationFormSection& WithWeight(double value) {
130 SetWeight(value);
131 return *this;
132 }
134
136
139 inline bool GetIsExcludedFromScoring() const { return m_isExcludedFromScoring; }
140 inline bool IsExcludedFromScoringHasBeenSet() const { return m_isExcludedFromScoringHasBeenSet; }
141 inline void SetIsExcludedFromScoring(bool value) {
142 m_isExcludedFromScoringHasBeenSet = true;
143 m_isExcludedFromScoring = value;
144 }
147 return *this;
148 }
150
152
155 inline const Aws::Vector<EvaluationFormScoreThreshold>& GetScoreThresholds() const { return m_scoreThresholds; }
156 inline bool ScoreThresholdsHasBeenSet() const { return m_scoreThresholdsHasBeenSet; }
157 template <typename ScoreThresholdsT = Aws::Vector<EvaluationFormScoreThreshold>>
158 void SetScoreThresholds(ScoreThresholdsT&& value) {
159 m_scoreThresholdsHasBeenSet = true;
160 m_scoreThresholds = std::forward<ScoreThresholdsT>(value);
161 }
162 template <typename ScoreThresholdsT = Aws::Vector<EvaluationFormScoreThreshold>>
163 EvaluationFormSection& WithScoreThresholds(ScoreThresholdsT&& value) {
164 SetScoreThresholds(std::forward<ScoreThresholdsT>(value));
165 return *this;
166 }
167 template <typename ScoreThresholdsT = EvaluationFormScoreThreshold>
168 EvaluationFormSection& AddScoreThresholds(ScoreThresholdsT&& value) {
169 m_scoreThresholdsHasBeenSet = true;
170 m_scoreThresholds.emplace_back(std::forward<ScoreThresholdsT>(value));
171 return *this;
172 }
174 private:
175 Aws::String m_title;
176
177 Aws::String m_refId;
178
179 Aws::String m_instructions;
180
182
183 double m_weight{0.0};
184
185 bool m_isExcludedFromScoring{false};
186
188 bool m_titleHasBeenSet = false;
189 bool m_refIdHasBeenSet = false;
190 bool m_instructionsHasBeenSet = false;
191 bool m_itemsHasBeenSet = false;
192 bool m_weightHasBeenSet = false;
193 bool m_isExcludedFromScoringHasBeenSet = false;
194 bool m_scoreThresholdsHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace Connect
199} // namespace Aws
EvaluationFormSection & WithItems(ItemsT &&value)
EvaluationFormSection & AddItems(ItemsT &&value)
const Aws::Vector< EvaluationFormItem > & GetItems() const
EvaluationFormSection & WithInstructions(InstructionsT &&value)
void SetScoreThresholds(ScoreThresholdsT &&value)
EvaluationFormSection & WithTitle(TitleT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
EvaluationFormSection & WithScoreThresholds(ScoreThresholdsT &&value)
AWS_CONNECT_API EvaluationFormSection()=default
const Aws::Vector< EvaluationFormScoreThreshold > & GetScoreThresholds() const
EvaluationFormSection & WithRefId(RefIdT &&value)
EvaluationFormSection & AddScoreThresholds(ScoreThresholdsT &&value)
EvaluationFormSection & WithWeight(double value)
AWS_CONNECT_API EvaluationFormSection(Aws::Utils::Json::JsonView jsonValue)
EvaluationFormSection & WithIsExcludedFromScoring(bool value)
AWS_CONNECT_API EvaluationFormSection & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue