AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetChoiceId(const Aws::String& value) { m_choiceIdHasBeenSet = true; m_choiceId = value; }
48 inline void SetChoiceId(Aws::String&& value) { m_choiceIdHasBeenSet = true; m_choiceId = std::move(value); }
49 inline void SetChoiceId(const char* value) { m_choiceIdHasBeenSet = true; m_choiceId.assign(value); }
50 inline ChoiceAnswer& WithChoiceId(const Aws::String& value) { SetChoiceId(value); return *this;}
51 inline ChoiceAnswer& WithChoiceId(Aws::String&& value) { SetChoiceId(std::move(value)); return *this;}
52 inline ChoiceAnswer& WithChoiceId(const char* value) { SetChoiceId(value); return *this;}
54
56
59 inline const ChoiceStatus& GetStatus() const{ return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 inline void SetStatus(const ChoiceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
62 inline void SetStatus(ChoiceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
63 inline ChoiceAnswer& WithStatus(const ChoiceStatus& value) { SetStatus(value); return *this;}
64 inline ChoiceAnswer& WithStatus(ChoiceStatus&& value) { SetStatus(std::move(value)); return *this;}
66
68
71 inline const ChoiceReason& GetReason() const{ return m_reason; }
72 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
73 inline void SetReason(const ChoiceReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
74 inline void SetReason(ChoiceReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
75 inline ChoiceAnswer& WithReason(const ChoiceReason& value) { SetReason(value); return *this;}
76 inline ChoiceAnswer& WithReason(ChoiceReason&& value) { SetReason(std::move(value)); return *this;}
78
80
83 inline const Aws::String& GetNotes() const{ return m_notes; }
84 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
85 inline void SetNotes(const Aws::String& value) { m_notesHasBeenSet = true; m_notes = value; }
86 inline void SetNotes(Aws::String&& value) { m_notesHasBeenSet = true; m_notes = std::move(value); }
87 inline void SetNotes(const char* value) { m_notesHasBeenSet = true; m_notes.assign(value); }
88 inline ChoiceAnswer& WithNotes(const Aws::String& value) { SetNotes(value); return *this;}
89 inline ChoiceAnswer& WithNotes(Aws::String&& value) { SetNotes(std::move(value)); return *this;}
90 inline ChoiceAnswer& WithNotes(const char* value) { SetNotes(value); return *this;}
92 private:
93
94 Aws::String m_choiceId;
95 bool m_choiceIdHasBeenSet = false;
96
97 ChoiceStatus m_status;
98 bool m_statusHasBeenSet = false;
99
100 ChoiceReason m_reason;
101 bool m_reasonHasBeenSet = false;
102
103 Aws::String m_notes;
104 bool m_notesHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace WellArchitected
109} // namespace Aws
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
ChoiceAnswer & WithChoiceId(Aws::String &&value)
void SetReason(ChoiceReason &&value)
ChoiceAnswer & WithNotes(const char *value)
void SetStatus(const ChoiceStatus &value)
void SetChoiceId(const Aws::String &value)
const Aws::String & GetNotes() const
ChoiceAnswer & WithChoiceId(const char *value)
void SetReason(const ChoiceReason &value)
AWS_WELLARCHITECTED_API ChoiceAnswer()
ChoiceAnswer & WithNotes(const Aws::String &value)
AWS_WELLARCHITECTED_API ChoiceAnswer(Aws::Utils::Json::JsonView jsonValue)
void SetNotes(const Aws::String &value)
ChoiceAnswer & WithReason(ChoiceReason &&value)
const Aws::String & GetChoiceId() const
const ChoiceReason & GetReason() const
ChoiceAnswer & WithChoiceId(const Aws::String &value)
ChoiceAnswer & WithNotes(Aws::String &&value)
void SetChoiceId(Aws::String &&value)
ChoiceAnswer & WithReason(const ChoiceReason &value)
ChoiceAnswer & WithStatus(ChoiceStatus &&value)
AWS_WELLARCHITECTED_API ChoiceAnswer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(ChoiceStatus &&value)
const ChoiceStatus & GetStatus() const
ChoiceAnswer & WithStatus(const ChoiceStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue