AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ProfileTemplateQuestion.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
10#include <aws/wellarchitected/model/ProfileTemplateChoice.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WellArchitected {
22namespace Model {
23
30 public:
31 AWS_WELLARCHITECTED_API ProfileTemplateQuestion() = default;
32 AWS_WELLARCHITECTED_API ProfileTemplateQuestion(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const Aws::String& GetQuestionId() const { return m_questionId; }
39 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
40 template <typename QuestionIdT = Aws::String>
41 void SetQuestionId(QuestionIdT&& value) {
42 m_questionIdHasBeenSet = true;
43 m_questionId = std::forward<QuestionIdT>(value);
44 }
45 template <typename QuestionIdT = Aws::String>
47 SetQuestionId(std::forward<QuestionIdT>(value));
48 return *this;
49 }
51
53
54 inline const Aws::String& GetQuestionTitle() const { return m_questionTitle; }
55 inline bool QuestionTitleHasBeenSet() const { return m_questionTitleHasBeenSet; }
56 template <typename QuestionTitleT = Aws::String>
57 void SetQuestionTitle(QuestionTitleT&& value) {
58 m_questionTitleHasBeenSet = true;
59 m_questionTitle = std::forward<QuestionTitleT>(value);
60 }
61 template <typename QuestionTitleT = Aws::String>
62 ProfileTemplateQuestion& WithQuestionTitle(QuestionTitleT&& value) {
63 SetQuestionTitle(std::forward<QuestionTitleT>(value));
64 return *this;
65 }
67
69
70 inline const Aws::String& GetQuestionDescription() const { return m_questionDescription; }
71 inline bool QuestionDescriptionHasBeenSet() const { return m_questionDescriptionHasBeenSet; }
72 template <typename QuestionDescriptionT = Aws::String>
73 void SetQuestionDescription(QuestionDescriptionT&& value) {
74 m_questionDescriptionHasBeenSet = true;
75 m_questionDescription = std::forward<QuestionDescriptionT>(value);
76 }
77 template <typename QuestionDescriptionT = Aws::String>
78 ProfileTemplateQuestion& WithQuestionDescription(QuestionDescriptionT&& value) {
79 SetQuestionDescription(std::forward<QuestionDescriptionT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Vector<ProfileTemplateChoice>& GetQuestionChoices() const { return m_questionChoices; }
89 inline bool QuestionChoicesHasBeenSet() const { return m_questionChoicesHasBeenSet; }
90 template <typename QuestionChoicesT = Aws::Vector<ProfileTemplateChoice>>
91 void SetQuestionChoices(QuestionChoicesT&& value) {
92 m_questionChoicesHasBeenSet = true;
93 m_questionChoices = std::forward<QuestionChoicesT>(value);
94 }
95 template <typename QuestionChoicesT = Aws::Vector<ProfileTemplateChoice>>
96 ProfileTemplateQuestion& WithQuestionChoices(QuestionChoicesT&& value) {
97 SetQuestionChoices(std::forward<QuestionChoicesT>(value));
98 return *this;
99 }
100 template <typename QuestionChoicesT = ProfileTemplateChoice>
101 ProfileTemplateQuestion& AddQuestionChoices(QuestionChoicesT&& value) {
102 m_questionChoicesHasBeenSet = true;
103 m_questionChoices.emplace_back(std::forward<QuestionChoicesT>(value));
104 return *this;
105 }
107
109
112 inline int GetMinSelectedChoices() const { return m_minSelectedChoices; }
113 inline bool MinSelectedChoicesHasBeenSet() const { return m_minSelectedChoicesHasBeenSet; }
114 inline void SetMinSelectedChoices(int value) {
115 m_minSelectedChoicesHasBeenSet = true;
116 m_minSelectedChoices = value;
117 }
120 return *this;
121 }
123
125
128 inline int GetMaxSelectedChoices() const { return m_maxSelectedChoices; }
129 inline bool MaxSelectedChoicesHasBeenSet() const { return m_maxSelectedChoicesHasBeenSet; }
130 inline void SetMaxSelectedChoices(int value) {
131 m_maxSelectedChoicesHasBeenSet = true;
132 m_maxSelectedChoices = value;
133 }
136 return *this;
137 }
139 private:
140 Aws::String m_questionId;
141
142 Aws::String m_questionTitle;
143
144 Aws::String m_questionDescription;
145
146 Aws::Vector<ProfileTemplateChoice> m_questionChoices;
147
148 int m_minSelectedChoices{0};
149
150 int m_maxSelectedChoices{0};
151 bool m_questionIdHasBeenSet = false;
152 bool m_questionTitleHasBeenSet = false;
153 bool m_questionDescriptionHasBeenSet = false;
154 bool m_questionChoicesHasBeenSet = false;
155 bool m_minSelectedChoicesHasBeenSet = false;
156 bool m_maxSelectedChoicesHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace WellArchitected
161} // namespace Aws
ProfileTemplateQuestion & AddQuestionChoices(QuestionChoicesT &&value)
ProfileTemplateQuestion & WithQuestionTitle(QuestionTitleT &&value)
ProfileTemplateQuestion & WithQuestionDescription(QuestionDescriptionT &&value)
ProfileTemplateQuestion & WithMinSelectedChoices(int value)
AWS_WELLARCHITECTED_API ProfileTemplateQuestion & operator=(Aws::Utils::Json::JsonView jsonValue)
ProfileTemplateQuestion & WithQuestionChoices(QuestionChoicesT &&value)
ProfileTemplateQuestion & WithQuestionId(QuestionIdT &&value)
AWS_WELLARCHITECTED_API ProfileTemplateQuestion()=default
ProfileTemplateQuestion & WithMaxSelectedChoices(int value)
const Aws::Vector< ProfileTemplateChoice > & GetQuestionChoices() const
AWS_WELLARCHITECTED_API ProfileTemplateQuestion(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue