AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ProfileQuestion.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wellarchitected/model/ProfileChoice.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 WellArchitected
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_WELLARCHITECTED_API ProfileQuestion() = default;
37 AWS_WELLARCHITECTED_API ProfileQuestion(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WELLARCHITECTED_API ProfileQuestion& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const Aws::String& GetQuestionId() const { return m_questionId; }
45 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
46 template<typename QuestionIdT = Aws::String>
47 void SetQuestionId(QuestionIdT&& value) { m_questionIdHasBeenSet = true; m_questionId = std::forward<QuestionIdT>(value); }
48 template<typename QuestionIdT = Aws::String>
49 ProfileQuestion& WithQuestionId(QuestionIdT&& value) { SetQuestionId(std::forward<QuestionIdT>(value)); return *this;}
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) { m_questionTitleHasBeenSet = true; m_questionTitle = std::forward<QuestionTitleT>(value); }
58 template<typename QuestionTitleT = Aws::String>
59 ProfileQuestion& WithQuestionTitle(QuestionTitleT&& value) { SetQuestionTitle(std::forward<QuestionTitleT>(value)); return *this;}
61
63
64 inline const Aws::String& GetQuestionDescription() const { return m_questionDescription; }
65 inline bool QuestionDescriptionHasBeenSet() const { return m_questionDescriptionHasBeenSet; }
66 template<typename QuestionDescriptionT = Aws::String>
67 void SetQuestionDescription(QuestionDescriptionT&& value) { m_questionDescriptionHasBeenSet = true; m_questionDescription = std::forward<QuestionDescriptionT>(value); }
68 template<typename QuestionDescriptionT = Aws::String>
69 ProfileQuestion& WithQuestionDescription(QuestionDescriptionT&& value) { SetQuestionDescription(std::forward<QuestionDescriptionT>(value)); return *this;}
71
73
76 inline const Aws::Vector<ProfileChoice>& GetQuestionChoices() const { return m_questionChoices; }
77 inline bool QuestionChoicesHasBeenSet() const { return m_questionChoicesHasBeenSet; }
78 template<typename QuestionChoicesT = Aws::Vector<ProfileChoice>>
79 void SetQuestionChoices(QuestionChoicesT&& value) { m_questionChoicesHasBeenSet = true; m_questionChoices = std::forward<QuestionChoicesT>(value); }
80 template<typename QuestionChoicesT = Aws::Vector<ProfileChoice>>
81 ProfileQuestion& WithQuestionChoices(QuestionChoicesT&& value) { SetQuestionChoices(std::forward<QuestionChoicesT>(value)); return *this;}
82 template<typename QuestionChoicesT = ProfileChoice>
83 ProfileQuestion& AddQuestionChoices(QuestionChoicesT&& value) { m_questionChoicesHasBeenSet = true; m_questionChoices.emplace_back(std::forward<QuestionChoicesT>(value)); return *this; }
85
87
90 inline const Aws::Vector<Aws::String>& GetSelectedChoiceIds() const { return m_selectedChoiceIds; }
91 inline bool SelectedChoiceIdsHasBeenSet() const { return m_selectedChoiceIdsHasBeenSet; }
92 template<typename SelectedChoiceIdsT = Aws::Vector<Aws::String>>
93 void SetSelectedChoiceIds(SelectedChoiceIdsT&& value) { m_selectedChoiceIdsHasBeenSet = true; m_selectedChoiceIds = std::forward<SelectedChoiceIdsT>(value); }
94 template<typename SelectedChoiceIdsT = Aws::Vector<Aws::String>>
95 ProfileQuestion& WithSelectedChoiceIds(SelectedChoiceIdsT&& value) { SetSelectedChoiceIds(std::forward<SelectedChoiceIdsT>(value)); return *this;}
96 template<typename SelectedChoiceIdsT = Aws::String>
97 ProfileQuestion& AddSelectedChoiceIds(SelectedChoiceIdsT&& value) { m_selectedChoiceIdsHasBeenSet = true; m_selectedChoiceIds.emplace_back(std::forward<SelectedChoiceIdsT>(value)); return *this; }
99
101
104 inline int GetMinSelectedChoices() const { return m_minSelectedChoices; }
105 inline bool MinSelectedChoicesHasBeenSet() const { return m_minSelectedChoicesHasBeenSet; }
106 inline void SetMinSelectedChoices(int value) { m_minSelectedChoicesHasBeenSet = true; m_minSelectedChoices = value; }
107 inline ProfileQuestion& WithMinSelectedChoices(int value) { SetMinSelectedChoices(value); return *this;}
109
111
114 inline int GetMaxSelectedChoices() const { return m_maxSelectedChoices; }
115 inline bool MaxSelectedChoicesHasBeenSet() const { return m_maxSelectedChoicesHasBeenSet; }
116 inline void SetMaxSelectedChoices(int value) { m_maxSelectedChoicesHasBeenSet = true; m_maxSelectedChoices = value; }
117 inline ProfileQuestion& WithMaxSelectedChoices(int value) { SetMaxSelectedChoices(value); return *this;}
119 private:
120
121 Aws::String m_questionId;
122 bool m_questionIdHasBeenSet = false;
123
124 Aws::String m_questionTitle;
125 bool m_questionTitleHasBeenSet = false;
126
127 Aws::String m_questionDescription;
128 bool m_questionDescriptionHasBeenSet = false;
129
130 Aws::Vector<ProfileChoice> m_questionChoices;
131 bool m_questionChoicesHasBeenSet = false;
132
133 Aws::Vector<Aws::String> m_selectedChoiceIds;
134 bool m_selectedChoiceIdsHasBeenSet = false;
135
136 int m_minSelectedChoices{0};
137 bool m_minSelectedChoicesHasBeenSet = false;
138
139 int m_maxSelectedChoices{0};
140 bool m_maxSelectedChoicesHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace WellArchitected
145} // namespace Aws
ProfileQuestion & WithMinSelectedChoices(int value)
const Aws::Vector< ProfileChoice > & GetQuestionChoices() const
ProfileQuestion & WithQuestionTitle(QuestionTitleT &&value)
ProfileQuestion & WithQuestionId(QuestionIdT &&value)
void SetQuestionTitle(QuestionTitleT &&value)
ProfileQuestion & AddQuestionChoices(QuestionChoicesT &&value)
const Aws::String & GetQuestionTitle() const
ProfileQuestion & AddSelectedChoiceIds(SelectedChoiceIdsT &&value)
ProfileQuestion & WithSelectedChoiceIds(SelectedChoiceIdsT &&value)
const Aws::Vector< Aws::String > & GetSelectedChoiceIds() const
void SetSelectedChoiceIds(SelectedChoiceIdsT &&value)
ProfileQuestion & WithQuestionDescription(QuestionDescriptionT &&value)
AWS_WELLARCHITECTED_API ProfileQuestion & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
ProfileQuestion & WithMaxSelectedChoices(int value)
ProfileQuestion & WithQuestionChoices(QuestionChoicesT &&value)
AWS_WELLARCHITECTED_API ProfileQuestion(Aws::Utils::Json::JsonView jsonValue)
void SetQuestionChoices(QuestionChoicesT &&value)
AWS_WELLARCHITECTED_API ProfileQuestion()=default
const Aws::String & GetQuestionDescription() const
void SetQuestionDescription(QuestionDescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue