AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
43 {
44 public:
45 AWS_NETWORKFIREWALL_API SyncState();
46 AWS_NETWORKFIREWALL_API SyncState(Aws::Utils::Json::JsonView jsonValue);
47 AWS_NETWORKFIREWALL_API SyncState& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
58 inline const Attachment& GetAttachment() const{ return m_attachment; }
59 inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; }
60 inline void SetAttachment(const Attachment& value) { m_attachmentHasBeenSet = true; m_attachment = value; }
61 inline void SetAttachment(Attachment&& value) { m_attachmentHasBeenSet = true; m_attachment = std::move(value); }
62 inline SyncState& WithAttachment(const Attachment& value) { SetAttachment(value); return *this;}
63 inline SyncState& WithAttachment(Attachment&& value) { SetAttachment(std::move(value)); return *this;}
65
67
75 inline const Aws::Map<Aws::String, PerObjectStatus>& GetConfig() const{ return m_config; }
76 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
77 inline void SetConfig(const Aws::Map<Aws::String, PerObjectStatus>& value) { m_configHasBeenSet = true; m_config = value; }
78 inline void SetConfig(Aws::Map<Aws::String, PerObjectStatus>&& value) { m_configHasBeenSet = true; m_config = std::move(value); }
79 inline SyncState& WithConfig(const Aws::Map<Aws::String, PerObjectStatus>& value) { SetConfig(value); return *this;}
80 inline SyncState& WithConfig(Aws::Map<Aws::String, PerObjectStatus>&& value) { SetConfig(std::move(value)); return *this;}
81 inline SyncState& AddConfig(const Aws::String& key, const PerObjectStatus& value) { m_configHasBeenSet = true; m_config.emplace(key, value); return *this; }
82 inline SyncState& AddConfig(Aws::String&& key, const PerObjectStatus& value) { m_configHasBeenSet = true; m_config.emplace(std::move(key), value); return *this; }
83 inline SyncState& AddConfig(const Aws::String& key, PerObjectStatus&& value) { m_configHasBeenSet = true; m_config.emplace(key, std::move(value)); return *this; }
84 inline SyncState& AddConfig(Aws::String&& key, PerObjectStatus&& value) { m_configHasBeenSet = true; m_config.emplace(std::move(key), std::move(value)); return *this; }
85 inline SyncState& AddConfig(const char* key, PerObjectStatus&& value) { m_configHasBeenSet = true; m_config.emplace(key, std::move(value)); return *this; }
86 inline SyncState& AddConfig(const char* key, const PerObjectStatus& value) { m_configHasBeenSet = true; m_config.emplace(key, value); return *this; }
88 private:
89
90 Attachment m_attachment;
91 bool m_attachmentHasBeenSet = false;
92
94 bool m_configHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace NetworkFirewall
99} // namespace Aws
SyncState & AddConfig(const char *key, const PerObjectStatus &value)
Definition SyncState.h:86
void SetAttachment(const Attachment &value)
Definition SyncState.h:60
void SetConfig(const Aws::Map< Aws::String, PerObjectStatus > &value)
Definition SyncState.h:77
SyncState & WithConfig(const Aws::Map< Aws::String, PerObjectStatus > &value)
Definition SyncState.h:79
SyncState & WithAttachment(Attachment &&value)
Definition SyncState.h:63
SyncState & AddConfig(Aws::String &&key, PerObjectStatus &&value)
Definition SyncState.h:84
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
SyncState & AddConfig(const Aws::String &key, const PerObjectStatus &value)
Definition SyncState.h:81
SyncState & WithAttachment(const Attachment &value)
Definition SyncState.h:62
AWS_NETWORKFIREWALL_API SyncState()
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:75
void SetConfig(Aws::Map< Aws::String, PerObjectStatus > &&value)
Definition SyncState.h:78
SyncState & AddConfig(Aws::String &&key, const PerObjectStatus &value)
Definition SyncState.h:82
void SetAttachment(Attachment &&value)
Definition SyncState.h:61
AWS_NETWORKFIREWALL_API SyncState(Aws::Utils::Json::JsonView jsonValue)
SyncState & AddConfig(const Aws::String &key, PerObjectStatus &&value)
Definition SyncState.h:83
SyncState & AddConfig(const char *key, PerObjectStatus &&value)
Definition SyncState.h:85
SyncState & WithConfig(Aws::Map< Aws::String, PerObjectStatus > &&value)
Definition SyncState.h:80
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue