AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
YesNoPerOptionQuestion.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/elementalinference/ElementalInference_EXPORTS.h>
10#include <aws/elementalinference/model/QuestionOption.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ElementalInference {
22namespace Model {
23
34 public:
35 AWS_ELEMENTALINFERENCE_API YesNoPerOptionQuestion() = default;
36 AWS_ELEMENTALINFERENCE_API YesNoPerOptionQuestion(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ELEMENTALINFERENCE_API YesNoPerOptionQuestion& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template <typename NameT = Aws::String>
50 void SetName(NameT&& value) {
51 m_nameHasBeenSet = true;
52 m_name = std::forward<NameT>(value);
53 }
54 template <typename NameT = Aws::String>
56 SetName(std::forward<NameT>(value));
57 return *this;
58 }
60
62
68 inline const Aws::String& GetQuestion() const { return m_question; }
69 inline bool QuestionHasBeenSet() const { return m_questionHasBeenSet; }
70 template <typename QuestionT = Aws::String>
71 void SetQuestion(QuestionT&& value) {
72 m_questionHasBeenSet = true;
73 m_question = std::forward<QuestionT>(value);
74 }
75 template <typename QuestionT = Aws::String>
77 SetQuestion(std::forward<QuestionT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::Vector<QuestionOption>& GetOptions() const { return m_options; }
89 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
90 template <typename OptionsT = Aws::Vector<QuestionOption>>
91 void SetOptions(OptionsT&& value) {
92 m_optionsHasBeenSet = true;
93 m_options = std::forward<OptionsT>(value);
94 }
95 template <typename OptionsT = Aws::Vector<QuestionOption>>
97 SetOptions(std::forward<OptionsT>(value));
98 return *this;
99 }
100 template <typename OptionsT = QuestionOption>
102 m_optionsHasBeenSet = true;
103 m_options.emplace_back(std::forward<OptionsT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_name;
109
110 Aws::String m_question;
111
113 bool m_nameHasBeenSet = false;
114 bool m_questionHasBeenSet = false;
115 bool m_optionsHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace ElementalInference
120} // namespace Aws
const Aws::Vector< QuestionOption > & GetOptions() const
AWS_ELEMENTALINFERENCE_API YesNoPerOptionQuestion()=default
YesNoPerOptionQuestion & WithQuestion(QuestionT &&value)
YesNoPerOptionQuestion & WithOptions(OptionsT &&value)
AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const
YesNoPerOptionQuestion & AddOptions(OptionsT &&value)
AWS_ELEMENTALINFERENCE_API YesNoPerOptionQuestion & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ELEMENTALINFERENCE_API YesNoPerOptionQuestion(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue