AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
PreferenceEntry.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/PreferenceKey.h>
10#include <aws/wellarchitected/model/PreferenceStatus.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 PreferenceEntry() = default;
33 AWS_WELLARCHITECTED_API PreferenceEntry(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WELLARCHITECTED_API PreferenceEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline PreferenceKey GetKey() const { return m_key; }
42 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
43 inline void SetKey(PreferenceKey value) {
44 m_keyHasBeenSet = true;
45 m_key = value;
46 }
48 SetKey(value);
49 return *this;
50 }
52
54
59 inline PreferenceStatus GetStatus() const { return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 inline void SetStatus(PreferenceStatus value) {
62 m_statusHasBeenSet = true;
63 m_status = value;
64 }
66 SetStatus(value);
67 return *this;
68 }
70
72
76 inline const Aws::String& GetDetail() const { return m_detail; }
77 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
78 template <typename DetailT = Aws::String>
79 void SetDetail(DetailT&& value) {
80 m_detailHasBeenSet = true;
81 m_detail = std::forward<DetailT>(value);
82 }
83 template <typename DetailT = Aws::String>
84 PreferenceEntry& WithDetail(DetailT&& value) {
85 SetDetail(std::forward<DetailT>(value));
86 return *this;
87 }
89 private:
91
93
94 Aws::String m_detail;
95 bool m_keyHasBeenSet = false;
96 bool m_statusHasBeenSet = false;
97 bool m_detailHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace WellArchitected
102} // namespace Aws
bool StatusHasBeenSet() const
const Aws::String & GetDetail() const
AWS_WELLARCHITECTED_API PreferenceEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
PreferenceEntry & WithKey(PreferenceKey value)
bool KeyHasBeenSet() const
bool DetailHasBeenSet() const
AWS_WELLARCHITECTED_API PreferenceEntry(Aws::Utils::Json::JsonView jsonValue)
void SetKey(PreferenceKey value)
void SetDetail(DetailT &&value)
void SetStatus(PreferenceStatus value)
PreferenceEntry & WithDetail(DetailT &&value)
AWS_WELLARCHITECTED_API PreferenceEntry()=default
PreferenceEntry & WithStatus(PreferenceStatus value)
PreferenceKey GetKey() const
PreferenceStatus GetStatus() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue