AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
50 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
51 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
52 inline EvaluationFormQuestion& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
53 inline EvaluationFormQuestion& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
54 inline EvaluationFormQuestion& WithTitle(const char* value) { SetTitle(value); return *this;}
56
58
61 inline const Aws::String& GetInstructions() const{ return m_instructions; }
62 inline bool InstructionsHasBeenSet() const { return m_instructionsHasBeenSet; }
63 inline void SetInstructions(const Aws::String& value) { m_instructionsHasBeenSet = true; m_instructions = value; }
64 inline void SetInstructions(Aws::String&& value) { m_instructionsHasBeenSet = true; m_instructions = std::move(value); }
65 inline void SetInstructions(const char* value) { m_instructionsHasBeenSet = true; m_instructions.assign(value); }
66 inline EvaluationFormQuestion& WithInstructions(const Aws::String& value) { SetInstructions(value); return *this;}
67 inline EvaluationFormQuestion& WithInstructions(Aws::String&& value) { SetInstructions(std::move(value)); return *this;}
68 inline EvaluationFormQuestion& WithInstructions(const char* value) { SetInstructions(value); return *this;}
70
72
76 inline const Aws::String& GetRefId() const{ return m_refId; }
77 inline bool RefIdHasBeenSet() const { return m_refIdHasBeenSet; }
78 inline void SetRefId(const Aws::String& value) { m_refIdHasBeenSet = true; m_refId = value; }
79 inline void SetRefId(Aws::String&& value) { m_refIdHasBeenSet = true; m_refId = std::move(value); }
80 inline void SetRefId(const char* value) { m_refIdHasBeenSet = true; m_refId.assign(value); }
81 inline EvaluationFormQuestion& WithRefId(const Aws::String& value) { SetRefId(value); return *this;}
82 inline EvaluationFormQuestion& WithRefId(Aws::String&& value) { SetRefId(std::move(value)); return *this;}
83 inline EvaluationFormQuestion& WithRefId(const char* value) { SetRefId(value); return *this;}
85
87
90 inline bool GetNotApplicableEnabled() const{ return m_notApplicableEnabled; }
91 inline bool NotApplicableEnabledHasBeenSet() const { return m_notApplicableEnabledHasBeenSet; }
92 inline void SetNotApplicableEnabled(bool value) { m_notApplicableEnabledHasBeenSet = true; m_notApplicableEnabled = value; }
93 inline EvaluationFormQuestion& WithNotApplicableEnabled(bool value) { SetNotApplicableEnabled(value); return *this;}
95
97
100 inline const EvaluationFormQuestionType& GetQuestionType() const{ return m_questionType; }
101 inline bool QuestionTypeHasBeenSet() const { return m_questionTypeHasBeenSet; }
102 inline void SetQuestionType(const EvaluationFormQuestionType& value) { m_questionTypeHasBeenSet = true; m_questionType = value; }
103 inline void SetQuestionType(EvaluationFormQuestionType&& value) { m_questionTypeHasBeenSet = true; m_questionType = std::move(value); }
105 inline EvaluationFormQuestion& WithQuestionType(EvaluationFormQuestionType&& value) { SetQuestionType(std::move(value)); return *this;}
107
109
113 inline const EvaluationFormQuestionTypeProperties& GetQuestionTypeProperties() const{ return m_questionTypeProperties; }
114 inline bool QuestionTypePropertiesHasBeenSet() const { return m_questionTypePropertiesHasBeenSet; }
115 inline void SetQuestionTypeProperties(const EvaluationFormQuestionTypeProperties& value) { m_questionTypePropertiesHasBeenSet = true; m_questionTypeProperties = value; }
116 inline void SetQuestionTypeProperties(EvaluationFormQuestionTypeProperties&& value) { m_questionTypePropertiesHasBeenSet = true; m_questionTypeProperties = std::move(value); }
120
122
125 inline double GetWeight() const{ return m_weight; }
126 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
127 inline void SetWeight(double value) { m_weightHasBeenSet = true; m_weight = value; }
128 inline EvaluationFormQuestion& WithWeight(double value) { SetWeight(value); return *this;}
130 private:
131
132 Aws::String m_title;
133 bool m_titleHasBeenSet = false;
134
135 Aws::String m_instructions;
136 bool m_instructionsHasBeenSet = false;
137
138 Aws::String m_refId;
139 bool m_refIdHasBeenSet = false;
140
141 bool m_notApplicableEnabled;
142 bool m_notApplicableEnabledHasBeenSet = false;
143
144 EvaluationFormQuestionType m_questionType;
145 bool m_questionTypeHasBeenSet = false;
146
147 EvaluationFormQuestionTypeProperties m_questionTypeProperties;
148 bool m_questionTypePropertiesHasBeenSet = false;
149
150 double m_weight;
151 bool m_weightHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace Connect
156} // namespace Aws
EvaluationFormQuestion & WithRefId(Aws::String &&value)
EvaluationFormQuestion & WithNotApplicableEnabled(bool value)
void SetQuestionType(const EvaluationFormQuestionType &value)
const EvaluationFormQuestionTypeProperties & GetQuestionTypeProperties() const
EvaluationFormQuestion & WithInstructions(const Aws::String &value)
EvaluationFormQuestion & WithTitle(const Aws::String &value)
EvaluationFormQuestion & WithTitle(const char *value)
EvaluationFormQuestion & WithInstructions(Aws::String &&value)
EvaluationFormQuestion & WithRefId(const Aws::String &value)
AWS_CONNECT_API EvaluationFormQuestion(Aws::Utils::Json::JsonView jsonValue)
EvaluationFormQuestion & WithQuestionTypeProperties(EvaluationFormQuestionTypeProperties &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
EvaluationFormQuestion & WithQuestionType(const EvaluationFormQuestionType &value)
EvaluationFormQuestion & WithInstructions(const char *value)
const EvaluationFormQuestionType & GetQuestionType() const
AWS_CONNECT_API EvaluationFormQuestion & operator=(Aws::Utils::Json::JsonView jsonValue)
EvaluationFormQuestion & WithQuestionType(EvaluationFormQuestionType &&value)
void SetQuestionTypeProperties(const EvaluationFormQuestionTypeProperties &value)
EvaluationFormQuestion & WithQuestionTypeProperties(const EvaluationFormQuestionTypeProperties &value)
EvaluationFormQuestion & WithWeight(double value)
void SetQuestionTypeProperties(EvaluationFormQuestionTypeProperties &&value)
EvaluationFormQuestion & WithRefId(const char *value)
EvaluationFormQuestion & WithTitle(Aws::String &&value)
void SetQuestionType(EvaluationFormQuestionType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue