AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ChoiceUpdate.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
30 public:
31 AWS_WELLARCHITECTED_API ChoiceUpdate() = default;
32 AWS_WELLARCHITECTED_API ChoiceUpdate(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WELLARCHITECTED_API ChoiceUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline ChoiceStatus GetStatus() const { return m_status; }
41 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
42 inline void SetStatus(ChoiceStatus value) {
43 m_statusHasBeenSet = true;
44 m_status = value;
45 }
47 SetStatus(value);
48 return *this;
49 }
51
53
56 inline ChoiceReason GetReason() const { return m_reason; }
57 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
58 inline void SetReason(ChoiceReason value) {
59 m_reasonHasBeenSet = true;
60 m_reason = value;
61 }
63 SetReason(value);
64 return *this;
65 }
67
69
72 inline const Aws::String& GetNotes() const { return m_notes; }
73 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
74 template <typename NotesT = Aws::String>
75 void SetNotes(NotesT&& value) {
76 m_notesHasBeenSet = true;
77 m_notes = std::forward<NotesT>(value);
78 }
79 template <typename NotesT = Aws::String>
80 ChoiceUpdate& WithNotes(NotesT&& value) {
81 SetNotes(std::forward<NotesT>(value));
82 return *this;
83 }
85 private:
87
89
90 Aws::String m_notes;
91 bool m_statusHasBeenSet = false;
92 bool m_reasonHasBeenSet = false;
93 bool m_notesHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace WellArchitected
98} // namespace Aws
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetNotes() const
AWS_WELLARCHITECTED_API ChoiceUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API ChoiceUpdate(Aws::Utils::Json::JsonView jsonValue)
ChoiceUpdate & WithStatus(ChoiceStatus value)
ChoiceUpdate & WithNotes(NotesT &&value)
AWS_WELLARCHITECTED_API ChoiceUpdate()=default
ChoiceUpdate & WithReason(ChoiceReason value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue