AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
VpcEndpointAssociationStatus.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/crt/cbor/Cbor.h>
10#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
11#include <aws/network-firewall/model/AZSyncState.h>
12#include <aws/network-firewall/model/FirewallStatusValue.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace NetworkFirewall {
23namespace Model {
24
34 public:
35 AWS_NETWORKFIREWALL_API VpcEndpointAssociationStatus() = default;
36 AWS_NETWORKFIREWALL_API VpcEndpointAssociationStatus(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_NETWORKFIREWALL_API VpcEndpointAssociationStatus& 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 FirewallStatusValue GetStatus() const { return m_status; }
46 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
47 inline void SetStatus(FirewallStatusValue value) {
48 m_statusHasBeenSet = true;
49 m_status = value;
50 }
52 SetStatus(value);
53 return *this;
54 }
56
58
62 inline const Aws::Map<Aws::String, AZSyncState>& GetAssociationSyncState() const { return m_associationSyncState; }
63 inline bool AssociationSyncStateHasBeenSet() const { return m_associationSyncStateHasBeenSet; }
64 template <typename AssociationSyncStateT = Aws::Map<Aws::String, AZSyncState>>
65 void SetAssociationSyncState(AssociationSyncStateT&& value) {
66 m_associationSyncStateHasBeenSet = true;
67 m_associationSyncState = std::forward<AssociationSyncStateT>(value);
68 }
69 template <typename AssociationSyncStateT = Aws::Map<Aws::String, AZSyncState>>
71 SetAssociationSyncState(std::forward<AssociationSyncStateT>(value));
72 return *this;
73 }
74 template <typename AssociationSyncStateKeyT = Aws::String, typename AssociationSyncStateValueT = AZSyncState>
75 VpcEndpointAssociationStatus& AddAssociationSyncState(AssociationSyncStateKeyT&& key, AssociationSyncStateValueT&& value) {
76 m_associationSyncStateHasBeenSet = true;
77 m_associationSyncState.emplace(std::forward<AssociationSyncStateKeyT>(key), std::forward<AssociationSyncStateValueT>(value));
78 return *this;
79 }
81 private:
83
84 Aws::Map<Aws::String, AZSyncState> m_associationSyncState;
85 bool m_statusHasBeenSet = false;
86 bool m_associationSyncStateHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace NetworkFirewall
91} // namespace Aws
VpcEndpointAssociationStatus & AddAssociationSyncState(AssociationSyncStateKeyT &&key, AssociationSyncStateValueT &&value)
AWS_NETWORKFIREWALL_API VpcEndpointAssociationStatus & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
VpcEndpointAssociationStatus & WithAssociationSyncState(AssociationSyncStateT &&value)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
VpcEndpointAssociationStatus & WithStatus(FirewallStatusValue value)
AWS_NETWORKFIREWALL_API VpcEndpointAssociationStatus()=default
const Aws::Map< Aws::String, AZSyncState > & GetAssociationSyncState() const
AWS_NETWORKFIREWALL_API VpcEndpointAssociationStatus(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map