AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ProfileTemplateQuestion.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/ProfileTemplateChoice.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 ProfileTemplateQuestion();
37 AWS_WELLARCHITECTED_API ProfileTemplateQuestion(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 ProfileTemplateQuestion& WithQuestionId(const Aws::String& value) { SetQuestionId(value); return *this;}
50 inline ProfileTemplateQuestion& WithQuestionId(Aws::String&& value) { SetQuestionId(std::move(value)); return *this;}
51 inline ProfileTemplateQuestion& 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 ProfileTemplateQuestion& WithQuestionTitle(const Aws::String& value) { SetQuestionTitle(value); return *this;}
62 inline ProfileTemplateQuestion& WithQuestionTitle(Aws::String&& value) { SetQuestionTitle(std::move(value)); return *this;}
63 inline ProfileTemplateQuestion& 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); }
74 inline ProfileTemplateQuestion& WithQuestionDescription(Aws::String&& value) { SetQuestionDescription(std::move(value)); return *this;}
75 inline ProfileTemplateQuestion& WithQuestionDescription(const char* value) { SetQuestionDescription(value); return *this;}
77
79
82 inline const Aws::Vector<ProfileTemplateChoice>& GetQuestionChoices() const{ return m_questionChoices; }
83 inline bool QuestionChoicesHasBeenSet() const { return m_questionChoicesHasBeenSet; }
84 inline void SetQuestionChoices(const Aws::Vector<ProfileTemplateChoice>& value) { m_questionChoicesHasBeenSet = true; m_questionChoices = value; }
85 inline void SetQuestionChoices(Aws::Vector<ProfileTemplateChoice>&& value) { m_questionChoicesHasBeenSet = true; m_questionChoices = std::move(value); }
88 inline ProfileTemplateQuestion& AddQuestionChoices(const ProfileTemplateChoice& value) { m_questionChoicesHasBeenSet = true; m_questionChoices.push_back(value); return *this; }
89 inline ProfileTemplateQuestion& AddQuestionChoices(ProfileTemplateChoice&& value) { m_questionChoicesHasBeenSet = true; m_questionChoices.push_back(std::move(value)); return *this; }
91
93
96 inline int GetMinSelectedChoices() const{ return m_minSelectedChoices; }
97 inline bool MinSelectedChoicesHasBeenSet() const { return m_minSelectedChoicesHasBeenSet; }
98 inline void SetMinSelectedChoices(int value) { m_minSelectedChoicesHasBeenSet = true; m_minSelectedChoices = value; }
99 inline ProfileTemplateQuestion& WithMinSelectedChoices(int value) { SetMinSelectedChoices(value); return *this;}
101
103
106 inline int GetMaxSelectedChoices() const{ return m_maxSelectedChoices; }
107 inline bool MaxSelectedChoicesHasBeenSet() const { return m_maxSelectedChoicesHasBeenSet; }
108 inline void SetMaxSelectedChoices(int value) { m_maxSelectedChoicesHasBeenSet = true; m_maxSelectedChoices = value; }
109 inline ProfileTemplateQuestion& WithMaxSelectedChoices(int value) { SetMaxSelectedChoices(value); return *this;}
111 private:
112
113 Aws::String m_questionId;
114 bool m_questionIdHasBeenSet = false;
115
116 Aws::String m_questionTitle;
117 bool m_questionTitleHasBeenSet = false;
118
119 Aws::String m_questionDescription;
120 bool m_questionDescriptionHasBeenSet = false;
121
122 Aws::Vector<ProfileTemplateChoice> m_questionChoices;
123 bool m_questionChoicesHasBeenSet = false;
124
125 int m_minSelectedChoices;
126 bool m_minSelectedChoicesHasBeenSet = false;
127
128 int m_maxSelectedChoices;
129 bool m_maxSelectedChoicesHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace WellArchitected
134} // namespace Aws
ProfileTemplateQuestion & WithQuestionDescription(const Aws::String &value)
void SetQuestionChoices(const Aws::Vector< ProfileTemplateChoice > &value)
ProfileTemplateQuestion & WithQuestionId(const char *value)
ProfileTemplateQuestion & WithQuestionId(Aws::String &&value)
ProfileTemplateQuestion & WithQuestionChoices(Aws::Vector< ProfileTemplateChoice > &&value)
ProfileTemplateQuestion & WithQuestionTitle(Aws::String &&value)
ProfileTemplateQuestion & WithMinSelectedChoices(int value)
ProfileTemplateQuestion & AddQuestionChoices(ProfileTemplateChoice &&value)
ProfileTemplateQuestion & WithQuestionId(const Aws::String &value)
AWS_WELLARCHITECTED_API ProfileTemplateQuestion & operator=(Aws::Utils::Json::JsonView jsonValue)
ProfileTemplateQuestion & WithQuestionTitle(const Aws::String &value)
ProfileTemplateQuestion & WithQuestionDescription(Aws::String &&value)
ProfileTemplateQuestion & WithQuestionChoices(const Aws::Vector< ProfileTemplateChoice > &value)
ProfileTemplateQuestion & WithMaxSelectedChoices(int value)
const Aws::Vector< ProfileTemplateChoice > & GetQuestionChoices() const
ProfileTemplateQuestion & WithQuestionTitle(const char *value)
void SetQuestionChoices(Aws::Vector< ProfileTemplateChoice > &&value)
AWS_WELLARCHITECTED_API ProfileTemplateQuestion(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
ProfileTemplateQuestion & AddQuestionChoices(const ProfileTemplateChoice &value)
ProfileTemplateQuestion & WithQuestionDescription(const char *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