AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
PreferenceUpdate.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/wellarchitected/model/PreferenceKey.h>
9#include <aws/wellarchitected/model/PreferenceState.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WellArchitected {
21namespace Model {
22
30 public:
31 AWS_WELLARCHITECTED_API PreferenceUpdate() = default;
32 AWS_WELLARCHITECTED_API PreferenceUpdate(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WELLARCHITECTED_API PreferenceUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline PreferenceKey GetKey() const { return m_key; }
41 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
42 inline void SetKey(PreferenceKey value) {
43 m_keyHasBeenSet = true;
44 m_key = value;
45 }
47 SetKey(value);
48 return *this;
49 }
51
53
57 inline PreferenceState GetState() const { return m_state; }
58 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
59 inline void SetState(PreferenceState value) {
60 m_stateHasBeenSet = true;
61 m_state = value;
62 }
64 SetState(value);
65 return *this;
66 }
68 private:
70
72 bool m_keyHasBeenSet = false;
73 bool m_stateHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace WellArchitected
78} // namespace Aws
PreferenceUpdate & WithKey(PreferenceKey value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
PreferenceUpdate & WithState(PreferenceState value)
AWS_WELLARCHITECTED_API PreferenceUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API PreferenceUpdate(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API PreferenceUpdate()=default
Aws::Utils::Json::JsonValue JsonValue