AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
PerObjectStatus.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
10#include <aws/network-firewall/model/PerObjectSyncStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace NetworkFirewall {
21namespace Model {
22
34 public:
35 AWS_NETWORKFIREWALL_API PerObjectStatus() = default;
36 AWS_NETWORKFIREWALL_API PerObjectStatus(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_NETWORKFIREWALL_API PerObjectStatus& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
39
41
45 inline PerObjectSyncStatus GetSyncStatus() const { return m_syncStatus; }
46 inline bool SyncStatusHasBeenSet() const { return m_syncStatusHasBeenSet; }
48 m_syncStatusHasBeenSet = true;
49 m_syncStatus = value;
50 }
52 SetSyncStatus(value);
53 return *this;
54 }
56
58
62 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
63 inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
64 template <typename UpdateTokenT = Aws::String>
65 void SetUpdateToken(UpdateTokenT&& value) {
66 m_updateTokenHasBeenSet = true;
67 m_updateToken = std::forward<UpdateTokenT>(value);
68 }
69 template <typename UpdateTokenT = Aws::String>
70 PerObjectStatus& WithUpdateToken(UpdateTokenT&& value) {
71 SetUpdateToken(std::forward<UpdateTokenT>(value));
72 return *this;
73 }
75 private:
77
78 Aws::String m_updateToken;
79 bool m_syncStatusHasBeenSet = false;
80 bool m_updateTokenHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace NetworkFirewall
85} // namespace Aws
AWS_NETWORKFIREWALL_API PerObjectStatus & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
PerObjectStatus & WithUpdateToken(UpdateTokenT &&value)
AWS_NETWORKFIREWALL_API PerObjectStatus(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetSyncStatus(PerObjectSyncStatus value)
PerObjectStatus & WithSyncStatus(PerObjectSyncStatus value)
AWS_NETWORKFIREWALL_API PerObjectStatus()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String