AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetQuestionId(const Aws::String& value) { m_questionIdHasBeenSet = true; m_questionId = value; }
47 inline void SetQuestionId(Aws::String&& value) { m_questionIdHasBeenSet = true; m_questionId = std::move(value); }
48 inline void SetQuestionId(const char* value) { m_questionIdHasBeenSet = true; m_questionId.assign(value); }
49 inline ProfileQuestion& WithQuestionId(const Aws::String& value) { SetQuestionId(value); return *this;}
50 inline ProfileQuestion& WithQuestionId(Aws::String&& value) { SetQuestionId(std::move(value)); return *this;}
51 inline ProfileQuestion& WithQuestionId(const char* value) { SetQuestionId(value); return *this;}
53
55
56 inline const Aws::String& GetQuestionTitle() const{ return m_questionTitle; }
57 inline bool QuestionTitleHasBeenSet() const { return m_questionTitleHasBeenSet; }
58 inline void SetQuestionTitle(const Aws::String& value) { m_questionTitleHasBeenSet = true; m_questionTitle = value; }
59 inline void SetQuestionTitle(Aws::String&& value) { m_questionTitleHasBeenSet = true; m_questionTitle = std::move(value); }
60 inline void SetQuestionTitle(const char* value) { m_questionTitleHasBeenSet = true; m_questionTitle.assign(value); }
61 inline ProfileQuestion& WithQuestionTitle(const Aws::String& value) { SetQuestionTitle(value); return *this;}
62 inline ProfileQuestion& WithQuestionTitle(Aws::String&& value) { SetQuestionTitle(std::move(value)); return *this;}
63 inline ProfileQuestion& WithQuestionTitle(const char* value) { SetQuestionTitle(value); return *this;}
65
67
68 inline const Aws::String& GetQuestionDescription() const{ return m_questionDescription; }
69 inline bool QuestionDescriptionHasBeenSet() const { return m_questionDescriptionHasBeenSet; }
70 inline void SetQuestionDescription(const Aws::String& value) { m_questionDescriptionHasBeenSet = true; m_questionDescription = value; }
71 inline void SetQuestionDescription(Aws::String&& value) { m_questionDescriptionHasBeenSet = true; m_questionDescription = std::move(value); }
72 inline void SetQuestionDescription(const char* value) { m_questionDescriptionHasBeenSet = true; m_questionDescription.assign(value); }
73 inline ProfileQuestion& WithQuestionDescription(const Aws::String& value) { SetQuestionDescription(value); return *this;}
74 inline ProfileQuestion& WithQuestionDescription(Aws::String&& value) { SetQuestionDescription(std::move(value)); return *this;}
75 inline ProfileQuestion& WithQuestionDescription(const char* value) { SetQuestionDescription(value); return *this;}
77
79
82 inline const Aws::Vector<ProfileChoice>& GetQuestionChoices() const{ return m_questionChoices; }
83 inline bool QuestionChoicesHasBeenSet() const { return m_questionChoicesHasBeenSet; }
84 inline void SetQuestionChoices(const Aws::Vector<ProfileChoice>& value) { m_questionChoicesHasBeenSet = true; m_questionChoices = value; }
85 inline void SetQuestionChoices(Aws::Vector<ProfileChoice>&& value) { m_questionChoicesHasBeenSet = true; m_questionChoices = std::move(value); }
87 inline ProfileQuestion& WithQuestionChoices(Aws::Vector<ProfileChoice>&& value) { SetQuestionChoices(std::move(value)); return *this;}
88 inline ProfileQuestion& AddQuestionChoices(const ProfileChoice& value) { m_questionChoicesHasBeenSet = true; m_questionChoices.push_back(value); return *this; }
89 inline ProfileQuestion& AddQuestionChoices(ProfileChoice&& value) { m_questionChoicesHasBeenSet = true; m_questionChoices.push_back(std::move(value)); return *this; }
91
93
96 inline const Aws::Vector<Aws::String>& GetSelectedChoiceIds() const{ return m_selectedChoiceIds; }
97 inline bool SelectedChoiceIdsHasBeenSet() const { return m_selectedChoiceIdsHasBeenSet; }
98 inline void SetSelectedChoiceIds(const Aws::Vector<Aws::String>& value) { m_selectedChoiceIdsHasBeenSet = true; m_selectedChoiceIds = value; }
99 inline void SetSelectedChoiceIds(Aws::Vector<Aws::String>&& value) { m_selectedChoiceIdsHasBeenSet = true; m_selectedChoiceIds = std::move(value); }
101 inline ProfileQuestion& WithSelectedChoiceIds(Aws::Vector<Aws::String>&& value) { SetSelectedChoiceIds(std::move(value)); return *this;}
102 inline ProfileQuestion& AddSelectedChoiceIds(const Aws::String& value) { m_selectedChoiceIdsHasBeenSet = true; m_selectedChoiceIds.push_back(value); return *this; }
103 inline ProfileQuestion& AddSelectedChoiceIds(Aws::String&& value) { m_selectedChoiceIdsHasBeenSet = true; m_selectedChoiceIds.push_back(std::move(value)); return *this; }
104 inline ProfileQuestion& AddSelectedChoiceIds(const char* value) { m_selectedChoiceIdsHasBeenSet = true; m_selectedChoiceIds.push_back(value); return *this; }
106
108
111 inline int GetMinSelectedChoices() const{ return m_minSelectedChoices; }
112 inline bool MinSelectedChoicesHasBeenSet() const { return m_minSelectedChoicesHasBeenSet; }
113 inline void SetMinSelectedChoices(int value) { m_minSelectedChoicesHasBeenSet = true; m_minSelectedChoices = value; }
114 inline ProfileQuestion& WithMinSelectedChoices(int value) { SetMinSelectedChoices(value); return *this;}
116
118
121 inline int GetMaxSelectedChoices() const{ return m_maxSelectedChoices; }
122 inline bool MaxSelectedChoicesHasBeenSet() const { return m_maxSelectedChoicesHasBeenSet; }
123 inline void SetMaxSelectedChoices(int value) { m_maxSelectedChoicesHasBeenSet = true; m_maxSelectedChoices = value; }
124 inline ProfileQuestion& WithMaxSelectedChoices(int value) { SetMaxSelectedChoices(value); return *this;}
126 private:
127
128 Aws::String m_questionId;
129 bool m_questionIdHasBeenSet = false;
130
131 Aws::String m_questionTitle;
132 bool m_questionTitleHasBeenSet = false;
133
134 Aws::String m_questionDescription;
135 bool m_questionDescriptionHasBeenSet = false;
136
137 Aws::Vector<ProfileChoice> m_questionChoices;
138 bool m_questionChoicesHasBeenSet = false;
139
140 Aws::Vector<Aws::String> m_selectedChoiceIds;
141 bool m_selectedChoiceIdsHasBeenSet = false;
142
143 int m_minSelectedChoices;
144 bool m_minSelectedChoicesHasBeenSet = false;
145
146 int m_maxSelectedChoices;
147 bool m_maxSelectedChoicesHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace WellArchitected
152} // namespace Aws
ProfileQuestion & WithQuestionTitle(const Aws::String &value)
ProfileQuestion & WithMinSelectedChoices(int value)
ProfileQuestion & WithQuestionChoices(const Aws::Vector< ProfileChoice > &value)
const Aws::Vector< ProfileChoice > & GetQuestionChoices() const
ProfileQuestion & WithQuestionId(const char *value)
ProfileQuestion & AddSelectedChoiceIds(const Aws::String &value)
void SetSelectedChoiceIds(const Aws::Vector< Aws::String > &value)
ProfileQuestion & AddSelectedChoiceIds(const char *value)
const Aws::String & GetQuestionTitle() const
void SetQuestionId(const Aws::String &value)
ProfileQuestion & WithQuestionChoices(Aws::Vector< ProfileChoice > &&value)
const Aws::Vector< Aws::String > & GetSelectedChoiceIds() const
ProfileQuestion & WithQuestionId(Aws::String &&value)
ProfileQuestion & WithSelectedChoiceIds(const Aws::Vector< Aws::String > &value)
ProfileQuestion & AddSelectedChoiceIds(Aws::String &&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 & AddQuestionChoices(ProfileChoice &&value)
ProfileQuestion & WithQuestionDescription(const Aws::String &value)
ProfileQuestion & WithQuestionTitle(const char *value)
ProfileQuestion & WithQuestionDescription(Aws::String &&value)
void SetQuestionDescription(Aws::String &&value)
ProfileQuestion & AddQuestionChoices(const ProfileChoice &value)
ProfileQuestion & WithQuestionId(const Aws::String &value)
void SetQuestionTitle(const Aws::String &value)
AWS_WELLARCHITECTED_API ProfileQuestion(Aws::Utils::Json::JsonView jsonValue)
ProfileQuestion & WithQuestionDescription(const char *value)
void SetQuestionChoices(Aws::Vector< ProfileChoice > &&value)
void SetQuestionChoices(const Aws::Vector< ProfileChoice > &value)
const Aws::String & GetQuestionDescription() const
ProfileQuestion & WithSelectedChoiceIds(Aws::Vector< Aws::String > &&value)
void SetQuestionDescription(const Aws::String &value)
AWS_WELLARCHITECTED_API ProfileQuestion()
void SetSelectedChoiceIds(Aws::Vector< Aws::String > &&value)
ProfileQuestion & WithQuestionTitle(Aws::String &&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