AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SyncState.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/network-firewall/model/Attachment.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/network-firewall/model/PerObjectStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace NetworkFirewall
25{
26namespace Model
27{
28
44 {
45 public:
46 AWS_NETWORKFIREWALL_API SyncState() = default;
47 AWS_NETWORKFIREWALL_API SyncState(Aws::Utils::Json::JsonView jsonValue);
48 AWS_NETWORKFIREWALL_API SyncState& operator=(Aws::Utils::Json::JsonView jsonValue);
49 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
58 inline const Attachment& GetAttachment() const { return m_attachment; }
59 inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; }
60 template<typename AttachmentT = Attachment>
61 void SetAttachment(AttachmentT&& value) { m_attachmentHasBeenSet = true; m_attachment = std::forward<AttachmentT>(value); }
62 template<typename AttachmentT = Attachment>
63 SyncState& WithAttachment(AttachmentT&& value) { SetAttachment(std::forward<AttachmentT>(value)); return *this;}
65
67
74 inline const Aws::Map<Aws::String, PerObjectStatus>& GetConfig() const { return m_config; }
75 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
76 template<typename ConfigT = Aws::Map<Aws::String, PerObjectStatus>>
77 void SetConfig(ConfigT&& value) { m_configHasBeenSet = true; m_config = std::forward<ConfigT>(value); }
78 template<typename ConfigT = Aws::Map<Aws::String, PerObjectStatus>>
79 SyncState& WithConfig(ConfigT&& value) { SetConfig(std::forward<ConfigT>(value)); return *this;}
80 template<typename ConfigKeyT = Aws::String, typename ConfigValueT = PerObjectStatus>
81 SyncState& AddConfig(ConfigKeyT&& key, ConfigValueT&& value) {
82 m_configHasBeenSet = true; m_config.emplace(std::forward<ConfigKeyT>(key), std::forward<ConfigValueT>(value)); return *this;
83 }
85 private:
86
87 Attachment m_attachment;
88 bool m_attachmentHasBeenSet = false;
89
91 bool m_configHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace NetworkFirewall
96} // namespace Aws
AWS_NETWORKFIREWALL_API SyncState()=default
void SetAttachment(AttachmentT &&value)
Definition SyncState.h:61
SyncState & WithConfig(ConfigT &&value)
Definition SyncState.h:79
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
SyncState & AddConfig(ConfigKeyT &&key, ConfigValueT &&value)
Definition SyncState.h:81
SyncState & WithAttachment(AttachmentT &&value)
Definition SyncState.h:63
AWS_NETWORKFIREWALL_API SyncState & operator=(Aws::Utils::Json::JsonView jsonValue)
const Attachment & GetAttachment() const
Definition SyncState.h:58
const Aws::Map< Aws::String, PerObjectStatus > & GetConfig() const
Definition SyncState.h:74
void SetConfig(ConfigT &&value)
Definition SyncState.h:77
AWS_NETWORKFIREWALL_API SyncState(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue