AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EvaluationFormQuestion.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/EvaluationFormQuestionType.h>
10#include <aws/connect/model/EvaluationFormQuestionTypeProperties.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CONNECT_API EvaluationFormQuestion() = default;
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetTitle() const { return m_title; }
48 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
49 template<typename TitleT = Aws::String>
50 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
51 template<typename TitleT = Aws::String>
52 EvaluationFormQuestion& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
54
56
59 inline const Aws::String& GetInstructions() const { return m_instructions; }
60 inline bool InstructionsHasBeenSet() const { return m_instructionsHasBeenSet; }
61 template<typename InstructionsT = Aws::String>
62 void SetInstructions(InstructionsT&& value) { m_instructionsHasBeenSet = true; m_instructions = std::forward<InstructionsT>(value); }
63 template<typename InstructionsT = Aws::String>
64 EvaluationFormQuestion& WithInstructions(InstructionsT&& value) { SetInstructions(std::forward<InstructionsT>(value)); return *this;}
66
68
72 inline const Aws::String& GetRefId() const { return m_refId; }
73 inline bool RefIdHasBeenSet() const { return m_refIdHasBeenSet; }
74 template<typename RefIdT = Aws::String>
75 void SetRefId(RefIdT&& value) { m_refIdHasBeenSet = true; m_refId = std::forward<RefIdT>(value); }
76 template<typename RefIdT = Aws::String>
77 EvaluationFormQuestion& WithRefId(RefIdT&& value) { SetRefId(std::forward<RefIdT>(value)); return *this;}
79
81
84 inline bool GetNotApplicableEnabled() const { return m_notApplicableEnabled; }
85 inline bool NotApplicableEnabledHasBeenSet() const { return m_notApplicableEnabledHasBeenSet; }
86 inline void SetNotApplicableEnabled(bool value) { m_notApplicableEnabledHasBeenSet = true; m_notApplicableEnabled = value; }
87 inline EvaluationFormQuestion& WithNotApplicableEnabled(bool value) { SetNotApplicableEnabled(value); return *this;}
89
91
94 inline EvaluationFormQuestionType GetQuestionType() const { return m_questionType; }
95 inline bool QuestionTypeHasBeenSet() const { return m_questionTypeHasBeenSet; }
96 inline void SetQuestionType(EvaluationFormQuestionType value) { m_questionTypeHasBeenSet = true; m_questionType = value; }
99
101
105 inline const EvaluationFormQuestionTypeProperties& GetQuestionTypeProperties() const { return m_questionTypeProperties; }
106 inline bool QuestionTypePropertiesHasBeenSet() const { return m_questionTypePropertiesHasBeenSet; }
107 template<typename QuestionTypePropertiesT = EvaluationFormQuestionTypeProperties>
108 void SetQuestionTypeProperties(QuestionTypePropertiesT&& value) { m_questionTypePropertiesHasBeenSet = true; m_questionTypeProperties = std::forward<QuestionTypePropertiesT>(value); }
109 template<typename QuestionTypePropertiesT = EvaluationFormQuestionTypeProperties>
110 EvaluationFormQuestion& WithQuestionTypeProperties(QuestionTypePropertiesT&& value) { SetQuestionTypeProperties(std::forward<QuestionTypePropertiesT>(value)); return *this;}
112
114
117 inline double GetWeight() const { return m_weight; }
118 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
119 inline void SetWeight(double value) { m_weightHasBeenSet = true; m_weight = value; }
120 inline EvaluationFormQuestion& WithWeight(double value) { SetWeight(value); return *this;}
122 private:
123
124 Aws::String m_title;
125 bool m_titleHasBeenSet = false;
126
127 Aws::String m_instructions;
128 bool m_instructionsHasBeenSet = false;
129
130 Aws::String m_refId;
131 bool m_refIdHasBeenSet = false;
132
133 bool m_notApplicableEnabled{false};
134 bool m_notApplicableEnabledHasBeenSet = false;
135
137 bool m_questionTypeHasBeenSet = false;
138
139 EvaluationFormQuestionTypeProperties m_questionTypeProperties;
140 bool m_questionTypePropertiesHasBeenSet = false;
141
142 double m_weight{0.0};
143 bool m_weightHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace Connect
148} // namespace Aws
EvaluationFormQuestion & WithNotApplicableEnabled(bool value)
void SetQuestionType(EvaluationFormQuestionType value)
EvaluationFormQuestion & WithTitle(TitleT &&value)
EvaluationFormQuestion & WithInstructions(InstructionsT &&value)
const EvaluationFormQuestionTypeProperties & GetQuestionTypeProperties() 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 & WithRefId(RefIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue