AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
AZSyncState.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
9#include <aws/network-firewall/model/Attachment.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace NetworkFirewall {
20namespace Model {
21
29 public:
30 AWS_NETWORKFIREWALL_API AZSyncState() = default;
31 AWS_NETWORKFIREWALL_API AZSyncState(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_NETWORKFIREWALL_API AZSyncState& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
37 inline const Attachment& GetAttachment() const { return m_attachment; }
38 inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; }
39 template <typename AttachmentT = Attachment>
40 void SetAttachment(AttachmentT&& value) {
41 m_attachmentHasBeenSet = true;
42 m_attachment = std::forward<AttachmentT>(value);
43 }
44 template <typename AttachmentT = Attachment>
45 AZSyncState& WithAttachment(AttachmentT&& value) {
46 SetAttachment(std::forward<AttachmentT>(value));
47 return *this;
48 }
50 private:
51 Attachment m_attachment;
52 bool m_attachmentHasBeenSet = false;
53};
54
55} // namespace Model
56} // namespace NetworkFirewall
57} // namespace Aws
const Attachment & GetAttachment() const
Definition AZSyncState.h:37
AWS_NETWORKFIREWALL_API AZSyncState(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetAttachment(AttachmentT &&value)
Definition AZSyncState.h:40
AZSyncState & WithAttachment(AttachmentT &&value)
Definition AZSyncState.h:45
AWS_NETWORKFIREWALL_API AZSyncState()=default
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_NETWORKFIREWALL_API AZSyncState & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)