AWS SDK for C++

AWS SDK for C++ Version 1.11.849

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/EvaluationFormQuestionScoringConfiguration.h>
10#include <aws/connect/model/EvaluationFormQuestionType.h>
11#include <aws/connect/model/EvaluationFormQuestionTypeProperties.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect {
24namespace Model {
25
33 public:
34 AWS_CONNECT_API EvaluationFormQuestion() = default;
37 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetTitle() const { return m_title; }
44 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
45 template <typename TitleT = Aws::String>
46 void SetTitle(TitleT&& value) {
47 m_titleHasBeenSet = true;
48 m_title = std::forward<TitleT>(value);
49 }
50 template <typename TitleT = Aws::String>
52 SetTitle(std::forward<TitleT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetInstructions() const { return m_instructions; }
62 inline bool InstructionsHasBeenSet() const { return m_instructionsHasBeenSet; }
63 template <typename InstructionsT = Aws::String>
64 void SetInstructions(InstructionsT&& value) {
65 m_instructionsHasBeenSet = true;
66 m_instructions = std::forward<InstructionsT>(value);
67 }
68 template <typename InstructionsT = Aws::String>
69 EvaluationFormQuestion& WithInstructions(InstructionsT&& value) {
70 SetInstructions(std::forward<InstructionsT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetRefId() const { return m_refId; }
81 inline bool RefIdHasBeenSet() const { return m_refIdHasBeenSet; }
82 template <typename RefIdT = Aws::String>
83 void SetRefId(RefIdT&& value) {
84 m_refIdHasBeenSet = true;
85 m_refId = std::forward<RefIdT>(value);
86 }
87 template <typename RefIdT = Aws::String>
89 SetRefId(std::forward<RefIdT>(value));
90 return *this;
91 }
93
95
98 inline bool GetNotApplicableEnabled() const { return m_notApplicableEnabled; }
99 inline bool NotApplicableEnabledHasBeenSet() const { return m_notApplicableEnabledHasBeenSet; }
100 inline void SetNotApplicableEnabled(bool value) {
101 m_notApplicableEnabledHasBeenSet = true;
102 m_notApplicableEnabled = value;
103 }
106 return *this;
107 }
109
111
114 inline EvaluationFormQuestionType GetQuestionType() const { return m_questionType; }
115 inline bool QuestionTypeHasBeenSet() const { return m_questionTypeHasBeenSet; }
117 m_questionTypeHasBeenSet = true;
118 m_questionType = value;
119 }
121 SetQuestionType(value);
122 return *this;
123 }
125
127
131 inline const EvaluationFormQuestionTypeProperties& GetQuestionTypeProperties() const { return m_questionTypeProperties; }
132 inline bool QuestionTypePropertiesHasBeenSet() const { return m_questionTypePropertiesHasBeenSet; }
133 template <typename QuestionTypePropertiesT = EvaluationFormQuestionTypeProperties>
134 void SetQuestionTypeProperties(QuestionTypePropertiesT&& value) {
135 m_questionTypePropertiesHasBeenSet = true;
136 m_questionTypeProperties = std::forward<QuestionTypePropertiesT>(value);
137 }
138 template <typename QuestionTypePropertiesT = EvaluationFormQuestionTypeProperties>
139 EvaluationFormQuestion& WithQuestionTypeProperties(QuestionTypePropertiesT&& value) {
140 SetQuestionTypeProperties(std::forward<QuestionTypePropertiesT>(value));
141 return *this;
142 }
144
146
149 inline const EvaluationFormItemEnablementConfiguration& GetEnablement() const { return m_enablement; }
150 inline bool EnablementHasBeenSet() const { return m_enablementHasBeenSet; }
151 template <typename EnablementT = EvaluationFormItemEnablementConfiguration>
152 void SetEnablement(EnablementT&& value) {
153 m_enablementHasBeenSet = true;
154 m_enablement = std::forward<EnablementT>(value);
155 }
156 template <typename EnablementT = EvaluationFormItemEnablementConfiguration>
158 SetEnablement(std::forward<EnablementT>(value));
159 return *this;
160 }
162
164
167 inline double GetWeight() const { return m_weight; }
168 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
169 inline void SetWeight(double value) {
170 m_weightHasBeenSet = true;
171 m_weight = value;
172 }
173 inline EvaluationFormQuestion& WithWeight(double value) {
174 SetWeight(value);
175 return *this;
176 }
178
180
183 inline const EvaluationFormQuestionScoringConfiguration& GetScoringConfiguration() const { return m_scoringConfiguration; }
184 inline bool ScoringConfigurationHasBeenSet() const { return m_scoringConfigurationHasBeenSet; }
185 template <typename ScoringConfigurationT = EvaluationFormQuestionScoringConfiguration>
186 void SetScoringConfiguration(ScoringConfigurationT&& value) {
187 m_scoringConfigurationHasBeenSet = true;
188 m_scoringConfiguration = std::forward<ScoringConfigurationT>(value);
189 }
190 template <typename ScoringConfigurationT = EvaluationFormQuestionScoringConfiguration>
191 EvaluationFormQuestion& WithScoringConfiguration(ScoringConfigurationT&& value) {
192 SetScoringConfiguration(std::forward<ScoringConfigurationT>(value));
193 return *this;
194 }
196 private:
197 Aws::String m_title;
198
199 Aws::String m_instructions;
200
201 Aws::String m_refId;
202
203 bool m_notApplicableEnabled{false};
204
206
207 EvaluationFormQuestionTypeProperties m_questionTypeProperties;
208
209 EvaluationFormItemEnablementConfiguration m_enablement;
210
211 double m_weight{0.0};
212
213 EvaluationFormQuestionScoringConfiguration m_scoringConfiguration;
214 bool m_titleHasBeenSet = false;
215 bool m_instructionsHasBeenSet = false;
216 bool m_refIdHasBeenSet = false;
217 bool m_notApplicableEnabledHasBeenSet = false;
218 bool m_questionTypeHasBeenSet = false;
219 bool m_questionTypePropertiesHasBeenSet = false;
220 bool m_enablementHasBeenSet = false;
221 bool m_weightHasBeenSet = false;
222 bool m_scoringConfigurationHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace Connect
227} // namespace Aws
EvaluationFormQuestion & WithNotApplicableEnabled(bool value)
void SetQuestionType(EvaluationFormQuestionType value)
EvaluationFormQuestion & WithTitle(TitleT &&value)
EvaluationFormQuestion & WithInstructions(InstructionsT &&value)
const EvaluationFormQuestionTypeProperties & GetQuestionTypeProperties() const
const EvaluationFormItemEnablementConfiguration & GetEnablement() 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 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