AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ChooseOneQuestion.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
32 public:
33 AWS_ELEMENTALINFERENCE_API ChooseOneQuestion() = default;
34 AWS_ELEMENTALINFERENCE_API ChooseOneQuestion(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ELEMENTALINFERENCE_API ChooseOneQuestion& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
53 ChooseOneQuestion& WithName(NameT&& value) {
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
66 inline const Aws::String& GetQuestion() const { return m_question; }
67 inline bool QuestionHasBeenSet() const { return m_questionHasBeenSet; }
68 template <typename QuestionT = Aws::String>
69 void SetQuestion(QuestionT&& value) {
70 m_questionHasBeenSet = true;
71 m_question = std::forward<QuestionT>(value);
72 }
73 template <typename QuestionT = Aws::String>
74 ChooseOneQuestion& WithQuestion(QuestionT&& value) {
75 SetQuestion(std::forward<QuestionT>(value));
76 return *this;
77 }
79
81
86 inline const Aws::Vector<QuestionOption>& GetOptions() const { return m_options; }
87 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
88 template <typename OptionsT = Aws::Vector<QuestionOption>>
89 void SetOptions(OptionsT&& value) {
90 m_optionsHasBeenSet = true;
91 m_options = std::forward<OptionsT>(value);
92 }
93 template <typename OptionsT = Aws::Vector<QuestionOption>>
94 ChooseOneQuestion& WithOptions(OptionsT&& value) {
95 SetOptions(std::forward<OptionsT>(value));
96 return *this;
97 }
98 template <typename OptionsT = QuestionOption>
99 ChooseOneQuestion& AddOptions(OptionsT&& value) {
100 m_optionsHasBeenSet = true;
101 m_options.emplace_back(std::forward<OptionsT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_name;
107
108 Aws::String m_question;
109
111 bool m_nameHasBeenSet = false;
112 bool m_questionHasBeenSet = false;
113 bool m_optionsHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace ElementalInference
118} // namespace Aws
ChooseOneQuestion & AddOptions(OptionsT &&value)
ChooseOneQuestion & WithName(NameT &&value)
AWS_ELEMENTALINFERENCE_API ChooseOneQuestion & operator=(Aws::Utils::Json::JsonView jsonValue)
ChooseOneQuestion & WithQuestion(QuestionT &&value)
AWS_ELEMENTALINFERENCE_API ChooseOneQuestion(Aws::Utils::Json::JsonView jsonValue)
AWS_ELEMENTALINFERENCE_API ChooseOneQuestion()=default
const Aws::Vector< QuestionOption > & GetOptions() const
AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const
ChooseOneQuestion & WithOptions(OptionsT &&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