AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ProfileQuestionUpdate.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WellArchitected {
21namespace Model {
22
29 public:
30 AWS_WELLARCHITECTED_API ProfileQuestionUpdate() = default;
31 AWS_WELLARCHITECTED_API ProfileQuestionUpdate(Aws::Utils::Json::JsonView jsonValue);
32 AWS_WELLARCHITECTED_API ProfileQuestionUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
37 inline const Aws::String& GetQuestionId() const { return m_questionId; }
38 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
39 template <typename QuestionIdT = Aws::String>
40 void SetQuestionId(QuestionIdT&& value) {
41 m_questionIdHasBeenSet = true;
42 m_questionId = std::forward<QuestionIdT>(value);
43 }
44 template <typename QuestionIdT = Aws::String>
45 ProfileQuestionUpdate& WithQuestionId(QuestionIdT&& value) {
46 SetQuestionId(std::forward<QuestionIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Vector<Aws::String>& GetSelectedChoiceIds() const { return m_selectedChoiceIds; }
56 inline bool SelectedChoiceIdsHasBeenSet() const { return m_selectedChoiceIdsHasBeenSet; }
57 template <typename SelectedChoiceIdsT = Aws::Vector<Aws::String>>
58 void SetSelectedChoiceIds(SelectedChoiceIdsT&& value) {
59 m_selectedChoiceIdsHasBeenSet = true;
60 m_selectedChoiceIds = std::forward<SelectedChoiceIdsT>(value);
61 }
62 template <typename SelectedChoiceIdsT = Aws::Vector<Aws::String>>
63 ProfileQuestionUpdate& WithSelectedChoiceIds(SelectedChoiceIdsT&& value) {
64 SetSelectedChoiceIds(std::forward<SelectedChoiceIdsT>(value));
65 return *this;
66 }
67 template <typename SelectedChoiceIdsT = Aws::String>
68 ProfileQuestionUpdate& AddSelectedChoiceIds(SelectedChoiceIdsT&& value) {
69 m_selectedChoiceIdsHasBeenSet = true;
70 m_selectedChoiceIds.emplace_back(std::forward<SelectedChoiceIdsT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_questionId;
76
77 Aws::Vector<Aws::String> m_selectedChoiceIds;
78 bool m_questionIdHasBeenSet = false;
79 bool m_selectedChoiceIdsHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace WellArchitected
84} // namespace Aws
AWS_WELLARCHITECTED_API ProfileQuestionUpdate()=default
AWS_WELLARCHITECTED_API ProfileQuestionUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSelectedChoiceIds() const
ProfileQuestionUpdate & AddSelectedChoiceIds(SelectedChoiceIdsT &&value)
ProfileQuestionUpdate & WithSelectedChoiceIds(SelectedChoiceIdsT &&value)
AWS_WELLARCHITECTED_API ProfileQuestionUpdate(Aws::Utils::Json::JsonView jsonValue)
ProfileQuestionUpdate & WithQuestionId(QuestionIdT &&value)
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