AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ChoiceAnswer.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wellarchitected/model/ChoiceStatus.h>
10#include <aws/wellarchitected/model/ChoiceReason.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WellArchitected
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_WELLARCHITECTED_API ChoiceAnswer() = default;
38 AWS_WELLARCHITECTED_API ChoiceAnswer(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WELLARCHITECTED_API ChoiceAnswer& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const Aws::String& GetChoiceId() const { return m_choiceId; }
46 inline bool ChoiceIdHasBeenSet() const { return m_choiceIdHasBeenSet; }
47 template<typename ChoiceIdT = Aws::String>
48 void SetChoiceId(ChoiceIdT&& value) { m_choiceIdHasBeenSet = true; m_choiceId = std::forward<ChoiceIdT>(value); }
49 template<typename ChoiceIdT = Aws::String>
50 ChoiceAnswer& WithChoiceId(ChoiceIdT&& value) { SetChoiceId(std::forward<ChoiceIdT>(value)); return *this;}
52
54
57 inline ChoiceStatus GetStatus() const { return m_status; }
58 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
59 inline void SetStatus(ChoiceStatus value) { m_statusHasBeenSet = true; m_status = value; }
60 inline ChoiceAnswer& WithStatus(ChoiceStatus value) { SetStatus(value); return *this;}
62
64
67 inline ChoiceReason GetReason() const { return m_reason; }
68 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
69 inline void SetReason(ChoiceReason value) { m_reasonHasBeenSet = true; m_reason = value; }
70 inline ChoiceAnswer& WithReason(ChoiceReason value) { SetReason(value); return *this;}
72
74
77 inline const Aws::String& GetNotes() const { return m_notes; }
78 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
79 template<typename NotesT = Aws::String>
80 void SetNotes(NotesT&& value) { m_notesHasBeenSet = true; m_notes = std::forward<NotesT>(value); }
81 template<typename NotesT = Aws::String>
82 ChoiceAnswer& WithNotes(NotesT&& value) { SetNotes(std::forward<NotesT>(value)); return *this;}
84 private:
85
86 Aws::String m_choiceId;
87 bool m_choiceIdHasBeenSet = false;
88
90 bool m_statusHasBeenSet = false;
91
93 bool m_reasonHasBeenSet = false;
94
95 Aws::String m_notes;
96 bool m_notesHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace WellArchitected
101} // 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