AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
ContextChange.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/networkmanager/model/ContextChangeType.h>
9#include <aws/networkmanager/model/ContextEntry.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace NetworkManager {
21namespace Model {
22
30 public:
31 AWS_NETWORKMANAGER_API ContextChange() = default;
32 AWS_NETWORKMANAGER_API ContextChange(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NETWORKMANAGER_API ContextChange& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline ContextChangeType GetChangeType() const { return m_changeType; }
44 inline bool ChangeTypeHasBeenSet() const { return m_changeTypeHasBeenSet; }
45 inline void SetChangeType(ContextChangeType value) {
46 m_changeTypeHasBeenSet = true;
47 m_changeType = value;
48 }
50 SetChangeType(value);
51 return *this;
52 }
54
56
59 inline const ContextEntry& GetContext() const { return m_context; }
60 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
61 template <typename ContextT = ContextEntry>
62 void SetContext(ContextT&& value) {
63 m_contextHasBeenSet = true;
64 m_context = std::forward<ContextT>(value);
65 }
66 template <typename ContextT = ContextEntry>
67 ContextChange& WithContext(ContextT&& value) {
68 SetContext(std::forward<ContextT>(value));
69 return *this;
70 }
72 private:
74
75 ContextEntry m_context;
76 bool m_changeTypeHasBeenSet = false;
77 bool m_contextHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace NetworkManager
82} // namespace Aws
ContextChange & WithContext(ContextT &&value)
AWS_NETWORKMANAGER_API ContextChange & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetChangeType(ContextChangeType value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ContextChange & WithChangeType(ContextChangeType value)
const ContextEntry & GetContext() const
ContextChangeType GetChangeType() const
AWS_NETWORKMANAGER_API ContextChange()=default
AWS_NETWORKMANAGER_API ContextChange(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue