AWS SDK for C++

AWS SDK for C++ Version 1.11.910

Loading...
Searching...
No Matches
EvaluationFormQuestion.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/EvaluationFormItemEnablementConfiguration.h>
9#include <aws/connect/model/EvaluationFormMetricConfiguration.h>
10#include <aws/connect/model/EvaluationFormQuestionScoringConfiguration.h>
11#include <aws/connect/model/EvaluationFormQuestionType.h>
12#include <aws/connect/model/EvaluationFormQuestionTypeProperties.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Connect {
25namespace Model {
26
34 public:
35 AWS_CONNECT_API EvaluationFormQuestion() = 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
62 inline const Aws::String& GetInstructions() const { return m_instructions; }
63 inline bool InstructionsHasBeenSet() const { return m_instructionsHasBeenSet; }
64 template <typename InstructionsT = Aws::String>
65 void SetInstructions(InstructionsT&& value) {
66 m_instructionsHasBeenSet = true;
67 m_instructions = std::forward<InstructionsT>(value);
68 }
69 template <typename InstructionsT = Aws::String>
70 EvaluationFormQuestion& WithInstructions(InstructionsT&& value) {
71 SetInstructions(std::forward<InstructionsT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetRefId() const { return m_refId; }
82 inline bool RefIdHasBeenSet() const { return m_refIdHasBeenSet; }
83 template <typename RefIdT = Aws::String>
84 void SetRefId(RefIdT&& value) {
85 m_refIdHasBeenSet = true;
86 m_refId = std::forward<RefIdT>(value);
87 }
88 template <typename RefIdT = Aws::String>
90 SetRefId(std::forward<RefIdT>(value));
91 return *this;
92 }
94
96
99 inline bool GetNotApplicableEnabled() const { return m_notApplicableEnabled; }
100 inline bool NotApplicableEnabledHasBeenSet() const { return m_notApplicableEnabledHasBeenSet; }
101 inline void SetNotApplicableEnabled(bool value) {
102 m_notApplicableEnabledHasBeenSet = true;
103 m_notApplicableEnabled = value;
104 }
107 return *this;
108 }
110
112
115 inline EvaluationFormQuestionType GetQuestionType() const { return m_questionType; }
116 inline bool QuestionTypeHasBeenSet() const { return m_questionTypeHasBeenSet; }
118 m_questionTypeHasBeenSet = true;
119 m_questionType = value;
120 }
122 SetQuestionType(value);
123 return *this;
124 }
126
128
132 inline const EvaluationFormQuestionTypeProperties& GetQuestionTypeProperties() const { return m_questionTypeProperties; }
133 inline bool QuestionTypePropertiesHasBeenSet() const { return m_questionTypePropertiesHasBeenSet; }
134 template <typename QuestionTypePropertiesT = EvaluationFormQuestionTypeProperties>
135 void SetQuestionTypeProperties(QuestionTypePropertiesT&& value) {
136 m_questionTypePropertiesHasBeenSet = true;
137 m_questionTypeProperties = std::forward<QuestionTypePropertiesT>(value);
138 }
139 template <typename QuestionTypePropertiesT = EvaluationFormQuestionTypeProperties>
140 EvaluationFormQuestion& WithQuestionTypeProperties(QuestionTypePropertiesT&& value) {
141 SetQuestionTypeProperties(std::forward<QuestionTypePropertiesT>(value));
142 return *this;
143 }
145
147
150 inline const EvaluationFormItemEnablementConfiguration& GetEnablement() const { return m_enablement; }
151 inline bool EnablementHasBeenSet() const { return m_enablementHasBeenSet; }
152 template <typename EnablementT = EvaluationFormItemEnablementConfiguration>
153 void SetEnablement(EnablementT&& value) {
154 m_enablementHasBeenSet = true;
155 m_enablement = std::forward<EnablementT>(value);
156 }
157 template <typename EnablementT = EvaluationFormItemEnablementConfiguration>
159 SetEnablement(std::forward<EnablementT>(value));
160 return *this;
161 }
163
165
168 inline double GetWeight() const { return m_weight; }
169 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
170 inline void SetWeight(double value) {
171 m_weightHasBeenSet = true;
172 m_weight = value;
173 }
174 inline EvaluationFormQuestion& WithWeight(double value) {
175 SetWeight(value);
176 return *this;
177 }
179
181
184 inline const EvaluationFormQuestionScoringConfiguration& GetScoringConfiguration() const { return m_scoringConfiguration; }
185 inline bool ScoringConfigurationHasBeenSet() const { return m_scoringConfigurationHasBeenSet; }
186 template <typename ScoringConfigurationT = EvaluationFormQuestionScoringConfiguration>
187 void SetScoringConfiguration(ScoringConfigurationT&& value) {
188 m_scoringConfigurationHasBeenSet = true;
189 m_scoringConfiguration = std::forward<ScoringConfigurationT>(value);
190 }
191 template <typename ScoringConfigurationT = EvaluationFormQuestionScoringConfiguration>
192 EvaluationFormQuestion& WithScoringConfiguration(ScoringConfigurationT&& value) {
193 SetScoringConfiguration(std::forward<ScoringConfigurationT>(value));
194 return *this;
195 }
197
199
203 inline const EvaluationFormMetricConfiguration& GetMetricConfiguration() const { return m_metricConfiguration; }
204 inline bool MetricConfigurationHasBeenSet() const { return m_metricConfigurationHasBeenSet; }
205 template <typename MetricConfigurationT = EvaluationFormMetricConfiguration>
206 void SetMetricConfiguration(MetricConfigurationT&& value) {
207 m_metricConfigurationHasBeenSet = true;
208 m_metricConfiguration = std::forward<MetricConfigurationT>(value);
209 }
210 template <typename MetricConfigurationT = EvaluationFormMetricConfiguration>
211 EvaluationFormQuestion& WithMetricConfiguration(MetricConfigurationT&& value) {
212 SetMetricConfiguration(std::forward<MetricConfigurationT>(value));
213 return *this;
214 }
216 private:
217 Aws::String m_title;
218
219 Aws::String m_instructions;
220
221 Aws::String m_refId;
222
223 bool m_notApplicableEnabled{false};
224
226
227 EvaluationFormQuestionTypeProperties m_questionTypeProperties;
228
229 EvaluationFormItemEnablementConfiguration m_enablement;
230
231 double m_weight{0.0};
232
233 EvaluationFormQuestionScoringConfiguration m_scoringConfiguration;
234
235 EvaluationFormMetricConfiguration m_metricConfiguration;
236 bool m_titleHasBeenSet = false;
237 bool m_instructionsHasBeenSet = false;
238 bool m_refIdHasBeenSet = false;
239 bool m_notApplicableEnabledHasBeenSet = false;
240 bool m_questionTypeHasBeenSet = false;
241 bool m_questionTypePropertiesHasBeenSet = false;
242 bool m_enablementHasBeenSet = false;
243 bool m_weightHasBeenSet = false;
244 bool m_scoringConfigurationHasBeenSet = false;
245 bool m_metricConfigurationHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace Connect
250} // namespace Aws
EvaluationFormQuestion & WithNotApplicableEnabled(bool value)
void SetQuestionType(EvaluationFormQuestionType value)
EvaluationFormQuestion & WithTitle(TitleT &&value)
EvaluationFormQuestion & WithInstructions(InstructionsT &&value)
EvaluationFormQuestion & WithMetricConfiguration(MetricConfigurationT &&value)
const EvaluationFormQuestionTypeProperties & GetQuestionTypeProperties() const
const EvaluationFormItemEnablementConfiguration & GetEnablement() const
const EvaluationFormMetricConfiguration & GetMetricConfiguration() const
EvaluationFormQuestion & WithQuestionTypeProperties(QuestionTypePropertiesT &&value)
AWS_CONNECT_API EvaluationFormQuestion(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
EvaluationFormQuestionType GetQuestionType() const
void SetMetricConfiguration(MetricConfigurationT &&value)
void SetScoringConfiguration(ScoringConfigurationT &&value)
AWS_CONNECT_API EvaluationFormQuestion & operator=(Aws::Utils::Json::JsonView jsonValue)
EvaluationFormQuestion & WithScoringConfiguration(ScoringConfigurationT &&value)
EvaluationFormQuestion & WithQuestionType(EvaluationFormQuestionType value)
const EvaluationFormQuestionScoringConfiguration & GetScoringConfiguration() const
AWS_CONNECT_API EvaluationFormQuestion()=default
void SetQuestionTypeProperties(QuestionTypePropertiesT &&value)
EvaluationFormQuestion & WithWeight(double value)
EvaluationFormQuestion & WithEnablement(EnablementT &&value)
EvaluationFormQuestion & WithRefId(RefIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue