AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
YesNoQuestion.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
30 public:
31 AWS_ELEMENTALINFERENCE_API YesNoQuestion() = default;
32 AWS_ELEMENTALINFERENCE_API YesNoQuestion(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ELEMENTALINFERENCE_API YesNoQuestion& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 YesNoQuestion& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::String& GetQuestion() const { return m_question; }
65 inline bool QuestionHasBeenSet() const { return m_questionHasBeenSet; }
66 template <typename QuestionT = Aws::String>
67 void SetQuestion(QuestionT&& value) {
68 m_questionHasBeenSet = true;
69 m_question = std::forward<QuestionT>(value);
70 }
71 template <typename QuestionT = Aws::String>
72 YesNoQuestion& WithQuestion(QuestionT&& value) {
73 SetQuestion(std::forward<QuestionT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_name;
79
80 Aws::String m_question;
81 bool m_nameHasBeenSet = false;
82 bool m_questionHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace ElementalInference
87} // namespace Aws
YesNoQuestion & WithName(NameT &&value)
YesNoQuestion & WithQuestion(QuestionT &&value)
AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELEMENTALINFERENCE_API YesNoQuestion()=default
AWS_ELEMENTALINFERENCE_API YesNoQuestion(Aws::Utils::Json::JsonView jsonValue)
AWS_ELEMENTALINFERENCE_API YesNoQuestion & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue