AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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/EvaluationFormQuestionType.h>
10#include <aws/connect/model/EvaluationFormQuestionTypeProperties.h>
11#include <aws/core/utils/memory/stl/AWSString.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 {
24
32 public:
33 AWS_CONNECT_API EvaluationFormQuestion() = default;
36 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetTitle() const { return m_title; }
43 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
44 template <typename TitleT = Aws::String>
45 void SetTitle(TitleT&& value) {
46 m_titleHasBeenSet = true;
47 m_title = std::forward<TitleT>(value);
48 }
49 template <typename TitleT = Aws::String>
51 SetTitle(std::forward<TitleT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetInstructions() const { return m_instructions; }
61 inline bool InstructionsHasBeenSet() const { return m_instructionsHasBeenSet; }
62 template <typename InstructionsT = Aws::String>
63 void SetInstructions(InstructionsT&& value) {
64 m_instructionsHasBeenSet = true;
65 m_instructions = std::forward<InstructionsT>(value);
66 }
67 template <typename InstructionsT = Aws::String>
68 EvaluationFormQuestion& WithInstructions(InstructionsT&& value) {
69 SetInstructions(std::forward<InstructionsT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetRefId() const { return m_refId; }
80 inline bool RefIdHasBeenSet() const { return m_refIdHasBeenSet; }
81 template <typename RefIdT = Aws::String>
82 void SetRefId(RefIdT&& value) {
83 m_refIdHasBeenSet = true;
84 m_refId = std::forward<RefIdT>(value);
85 }
86 template <typename RefIdT = Aws::String>
88 SetRefId(std::forward<RefIdT>(value));
89 return *this;
90 }
92
94
97 inline bool GetNotApplicableEnabled() const { return m_notApplicableEnabled; }
98 inline bool NotApplicableEnabledHasBeenSet() const { return m_notApplicableEnabledHasBeenSet; }
99 inline void SetNotApplicableEnabled(bool value) {
100 m_notApplicableEnabledHasBeenSet = true;
101 m_notApplicableEnabled = value;
102 }
105 return *this;
106 }
108
110
113 inline EvaluationFormQuestionType GetQuestionType() const { return m_questionType; }
114 inline bool QuestionTypeHasBeenSet() const { return m_questionTypeHasBeenSet; }
116 m_questionTypeHasBeenSet = true;
117 m_questionType = value;
118 }
120 SetQuestionType(value);
121 return *this;
122 }
124
126
130 inline const EvaluationFormQuestionTypeProperties& GetQuestionTypeProperties() const { return m_questionTypeProperties; }
131 inline bool QuestionTypePropertiesHasBeenSet() const { return m_questionTypePropertiesHasBeenSet; }
132 template <typename QuestionTypePropertiesT = EvaluationFormQuestionTypeProperties>
133 void SetQuestionTypeProperties(QuestionTypePropertiesT&& value) {
134 m_questionTypePropertiesHasBeenSet = true;
135 m_questionTypeProperties = std::forward<QuestionTypePropertiesT>(value);
136 }
137 template <typename QuestionTypePropertiesT = EvaluationFormQuestionTypeProperties>
138 EvaluationFormQuestion& WithQuestionTypeProperties(QuestionTypePropertiesT&& value) {
139 SetQuestionTypeProperties(std::forward<QuestionTypePropertiesT>(value));
140 return *this;
141 }
143
145
148 inline const EvaluationFormItemEnablementConfiguration& GetEnablement() const { return m_enablement; }
149 inline bool EnablementHasBeenSet() const { return m_enablementHasBeenSet; }
150 template <typename EnablementT = EvaluationFormItemEnablementConfiguration>
151 void SetEnablement(EnablementT&& value) {
152 m_enablementHasBeenSet = true;
153 m_enablement = std::forward<EnablementT>(value);
154 }
155 template <typename EnablementT = EvaluationFormItemEnablementConfiguration>
157 SetEnablement(std::forward<EnablementT>(value));
158 return *this;
159 }
161
163
166 inline double GetWeight() const { return m_weight; }
167 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
168 inline void SetWeight(double value) {
169 m_weightHasBeenSet = true;
170 m_weight = value;
171 }
172 inline EvaluationFormQuestion& WithWeight(double value) {
173 SetWeight(value);
174 return *this;
175 }
177 private:
178 Aws::String m_title;
179
180 Aws::String m_instructions;
181
182 Aws::String m_refId;
183
184 bool m_notApplicableEnabled{false};
185
187
188 EvaluationFormQuestionTypeProperties m_questionTypeProperties;
189
190 EvaluationFormItemEnablementConfiguration m_enablement;
191
192 double m_weight{0.0};
193 bool m_titleHasBeenSet = false;
194 bool m_instructionsHasBeenSet = false;
195 bool m_refIdHasBeenSet = false;
196 bool m_notApplicableEnabledHasBeenSet = false;
197 bool m_questionTypeHasBeenSet = false;
198 bool m_questionTypePropertiesHasBeenSet = false;
199 bool m_enablementHasBeenSet = false;
200 bool m_weightHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace Connect
205} // 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
AWS_CONNECT_API EvaluationFormQuestion & operator=(Aws::Utils::Json::JsonView jsonValue)
EvaluationFormQuestion & WithQuestionType(EvaluationFormQuestionType value)
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