AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
QuestionOption.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elementalinference/ElementalInference_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ElementalInference {
20namespace Model {
21
29 public:
30 AWS_ELEMENTALINFERENCE_API QuestionOption() = default;
31 AWS_ELEMENTALINFERENCE_API QuestionOption(Aws::Utils::Json::JsonView jsonValue);
32 AWS_ELEMENTALINFERENCE_API QuestionOption& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 QuestionOption& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetText() const { return m_text; }
63 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
64 template <typename TextT = Aws::String>
65 void SetText(TextT&& value) {
66 m_textHasBeenSet = true;
67 m_text = std::forward<TextT>(value);
68 }
69 template <typename TextT = Aws::String>
70 QuestionOption& WithText(TextT&& value) {
71 SetText(std::forward<TextT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_name;
77
78 Aws::String m_text;
79 bool m_nameHasBeenSet = false;
80 bool m_textHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace ElementalInference
85} // namespace Aws
QuestionOption & WithText(TextT &&value)
AWS_ELEMENTALINFERENCE_API QuestionOption()=default
AWS_ELEMENTALINFERENCE_API QuestionOption(Aws::Utils::Json::JsonView jsonValue)
AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const
QuestionOption & WithName(NameT &&value)
AWS_ELEMENTALINFERENCE_API QuestionOption & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue