AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
ChoiceAnswer.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
9#include <aws/wellarchitected/model/ChoiceReason.h>
10#include <aws/wellarchitected/model/ChoiceStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WellArchitected {
22namespace Model {
23
31 public:
32 AWS_WELLARCHITECTED_API ChoiceAnswer() = default;
33 AWS_WELLARCHITECTED_API ChoiceAnswer(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WELLARCHITECTED_API ChoiceAnswer& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Aws::String& GetChoiceId() const { return m_choiceId; }
40 inline bool ChoiceIdHasBeenSet() const { return m_choiceIdHasBeenSet; }
41 template <typename ChoiceIdT = Aws::String>
42 void SetChoiceId(ChoiceIdT&& value) {
43 m_choiceIdHasBeenSet = true;
44 m_choiceId = std::forward<ChoiceIdT>(value);
45 }
46 template <typename ChoiceIdT = Aws::String>
47 ChoiceAnswer& WithChoiceId(ChoiceIdT&& value) {
48 SetChoiceId(std::forward<ChoiceIdT>(value));
49 return *this;
50 }
52
54
57 inline ChoiceStatus GetStatus() const { return m_status; }
58 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
59 inline void SetStatus(ChoiceStatus value) {
60 m_statusHasBeenSet = true;
61 m_status = value;
62 }
64 SetStatus(value);
65 return *this;
66 }
68
70
73 inline ChoiceReason GetReason() const { return m_reason; }
74 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
75 inline void SetReason(ChoiceReason value) {
76 m_reasonHasBeenSet = true;
77 m_reason = value;
78 }
80 SetReason(value);
81 return *this;
82 }
84
86
89 inline const Aws::String& GetNotes() const { return m_notes; }
90 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
91 template <typename NotesT = Aws::String>
92 void SetNotes(NotesT&& value) {
93 m_notesHasBeenSet = true;
94 m_notes = std::forward<NotesT>(value);
95 }
96 template <typename NotesT = Aws::String>
97 ChoiceAnswer& WithNotes(NotesT&& value) {
98 SetNotes(std::forward<NotesT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_choiceId;
104 bool m_choiceIdHasBeenSet = false;
105
107 bool m_statusHasBeenSet = false;
108
110 bool m_reasonHasBeenSet = false;
111
112 Aws::String m_notes;
113 bool m_notesHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace WellArchitected
118} // namespace Aws
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
ChoiceAnswer & WithNotes(NotesT &&value)
ChoiceAnswer & WithChoiceId(ChoiceIdT &&value)
const Aws::String & GetNotes() const
AWS_WELLARCHITECTED_API ChoiceAnswer(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetChoiceId() const
AWS_WELLARCHITECTED_API ChoiceAnswer()=default
AWS_WELLARCHITECTED_API ChoiceAnswer & operator=(Aws::Utils::Json::JsonView jsonValue)
ChoiceAnswer & WithReason(ChoiceReason value)
ChoiceAnswer & WithStatus(ChoiceStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue