AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
SyncState.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
12#include <aws/network-firewall/model/AddressTranslations.h>
13#include <aws/network-firewall/model/Attachment.h>
14#include <aws/network-firewall/model/NatGatewayAttachment.h>
15#include <aws/network-firewall/model/PerObjectStatus.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Cbor {
22class CborValue;
23} // namespace Cbor
24} // namespace Utils
25namespace NetworkFirewall {
26namespace Model {
27
42class SyncState {
43 public:
44 AWS_NETWORKFIREWALL_API SyncState() = default;
45 AWS_NETWORKFIREWALL_API SyncState(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
46 AWS_NETWORKFIREWALL_API SyncState& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
47 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
48
50
55 inline const Attachment& GetAttachment() const { return m_attachment; }
56 inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; }
57 template <typename AttachmentT = Attachment>
58 void SetAttachment(AttachmentT&& value) {
59 m_attachmentHasBeenSet = true;
60 m_attachment = std::forward<AttachmentT>(value);
61 }
62 template <typename AttachmentT = Attachment>
63 SyncState& WithAttachment(AttachmentT&& value) {
64 SetAttachment(std::forward<AttachmentT>(value));
65 return *this;
66 }
68
70
77 inline const Aws::Map<Aws::String, PerObjectStatus>& GetConfig() const { return m_config; }
78 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
79 template <typename ConfigT = Aws::Map<Aws::String, PerObjectStatus>>
80 void SetConfig(ConfigT&& value) {
81 m_configHasBeenSet = true;
82 m_config = std::forward<ConfigT>(value);
83 }
84 template <typename ConfigT = Aws::Map<Aws::String, PerObjectStatus>>
85 SyncState& WithConfig(ConfigT&& value) {
86 SetConfig(std::forward<ConfigT>(value));
87 return *this;
88 }
89 template <typename ConfigKeyT = Aws::String, typename ConfigValueT = PerObjectStatus>
90 SyncState& AddConfig(ConfigKeyT&& key, ConfigValueT&& value) {
91 m_configHasBeenSet = true;
92 m_config.emplace(std::forward<ConfigKeyT>(key), std::forward<ConfigValueT>(value));
93 return *this;
94 }
96
98
104 inline const AddressTranslations& GetAddressTranslations() const { return m_addressTranslations; }
105 inline bool AddressTranslationsHasBeenSet() const { return m_addressTranslationsHasBeenSet; }
106 template <typename AddressTranslationsT = AddressTranslations>
107 void SetAddressTranslations(AddressTranslationsT&& value) {
108 m_addressTranslationsHasBeenSet = true;
109 m_addressTranslations = std::forward<AddressTranslationsT>(value);
110 }
111 template <typename AddressTranslationsT = AddressTranslations>
112 SyncState& WithAddressTranslations(AddressTranslationsT&& value) {
113 SetAddressTranslations(std::forward<AddressTranslationsT>(value));
114 return *this;
115 }
117
119
126 inline const Aws::Vector<NatGatewayAttachment>& GetNatGatewayAttachments() const { return m_natGatewayAttachments; }
127 inline bool NatGatewayAttachmentsHasBeenSet() const { return m_natGatewayAttachmentsHasBeenSet; }
128 template <typename NatGatewayAttachmentsT = Aws::Vector<NatGatewayAttachment>>
129 void SetNatGatewayAttachments(NatGatewayAttachmentsT&& value) {
130 m_natGatewayAttachmentsHasBeenSet = true;
131 m_natGatewayAttachments = std::forward<NatGatewayAttachmentsT>(value);
132 }
133 template <typename NatGatewayAttachmentsT = Aws::Vector<NatGatewayAttachment>>
134 SyncState& WithNatGatewayAttachments(NatGatewayAttachmentsT&& value) {
135 SetNatGatewayAttachments(std::forward<NatGatewayAttachmentsT>(value));
136 return *this;
137 }
138 template <typename NatGatewayAttachmentsT = NatGatewayAttachment>
139 SyncState& AddNatGatewayAttachments(NatGatewayAttachmentsT&& value) {
140 m_natGatewayAttachmentsHasBeenSet = true;
141 m_natGatewayAttachments.emplace_back(std::forward<NatGatewayAttachmentsT>(value));
142 return *this;
143 }
145 private:
146 Attachment m_attachment;
147
149
150 AddressTranslations m_addressTranslations;
151
152 Aws::Vector<NatGatewayAttachment> m_natGatewayAttachments;
153 bool m_attachmentHasBeenSet = false;
154 bool m_configHasBeenSet = false;
155 bool m_addressTranslationsHasBeenSet = false;
156 bool m_natGatewayAttachmentsHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace NetworkFirewall
161} // namespace Aws
void SetAddressTranslations(AddressTranslationsT &&value)
Definition SyncState.h:107
const AddressTranslations & GetAddressTranslations() const
Definition SyncState.h:104
SyncState & WithAddressTranslations(AddressTranslationsT &&value)
Definition SyncState.h:112
AWS_NETWORKFIREWALL_API SyncState()=default
void SetAttachment(AttachmentT &&value)
Definition SyncState.h:58
SyncState & WithConfig(ConfigT &&value)
Definition SyncState.h:85
const Aws::Vector< NatGatewayAttachment > & GetNatGatewayAttachments() const
Definition SyncState.h:126
SyncState & AddConfig(ConfigKeyT &&key, ConfigValueT &&value)
Definition SyncState.h:90
AWS_NETWORKFIREWALL_API SyncState(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SyncState & WithNatGatewayAttachments(NatGatewayAttachmentsT &&value)
Definition SyncState.h:134
SyncState & WithAttachment(AttachmentT &&value)
Definition SyncState.h:63
AWS_NETWORKFIREWALL_API SyncState & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetNatGatewayAttachments(NatGatewayAttachmentsT &&value)
Definition SyncState.h:129
SyncState & AddNatGatewayAttachments(NatGatewayAttachmentsT &&value)
Definition SyncState.h:139
const Attachment & GetAttachment() const
Definition SyncState.h:55
const Aws::Map< Aws::String, PerObjectStatus > & GetConfig() const
Definition SyncState.h:77
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetConfig(ConfigT &&value)
Definition SyncState.h:80
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector