AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ChoiceUpdate.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/wellarchitected/model/ChoiceStatus.h>
9#include <aws/wellarchitected/model/ChoiceReason.h>
10#include <aws/core/utils/memory/stl/AWSString.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
34 {
35 public:
36 AWS_WELLARCHITECTED_API ChoiceUpdate() = default;
37 AWS_WELLARCHITECTED_API ChoiceUpdate(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WELLARCHITECTED_API ChoiceUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline ChoiceStatus GetStatus() const { return m_status; }
47 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
48 inline void SetStatus(ChoiceStatus value) { m_statusHasBeenSet = true; m_status = value; }
49 inline ChoiceUpdate& WithStatus(ChoiceStatus value) { SetStatus(value); return *this;}
51
53
56 inline ChoiceReason GetReason() const { return m_reason; }
57 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
58 inline void SetReason(ChoiceReason value) { m_reasonHasBeenSet = true; m_reason = value; }
59 inline ChoiceUpdate& WithReason(ChoiceReason value) { SetReason(value); return *this;}
61
63
66 inline const Aws::String& GetNotes() const { return m_notes; }
67 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
68 template<typename NotesT = Aws::String>
69 void SetNotes(NotesT&& value) { m_notesHasBeenSet = true; m_notes = std::forward<NotesT>(value); }
70 template<typename NotesT = Aws::String>
71 ChoiceUpdate& WithNotes(NotesT&& value) { SetNotes(std::forward<NotesT>(value)); return *this;}
73 private:
74
76 bool m_statusHasBeenSet = false;
77
79 bool m_reasonHasBeenSet = false;
80
81 Aws::String m_notes;
82 bool m_notesHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace WellArchitected
87} // 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