AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
ReferenceSets.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/IPSetReference.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace NetworkFirewall {
22namespace Model {
23
30 public:
31 AWS_NETWORKFIREWALL_API ReferenceSets() = default;
32 AWS_NETWORKFIREWALL_API ReferenceSets(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_NETWORKFIREWALL_API ReferenceSets& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::Map<Aws::String, IPSetReference>& GetIPSetReferences() const { return m_iPSetReferences; }
41 inline bool IPSetReferencesHasBeenSet() const { return m_iPSetReferencesHasBeenSet; }
42 template <typename IPSetReferencesT = Aws::Map<Aws::String, IPSetReference>>
43 void SetIPSetReferences(IPSetReferencesT&& value) {
44 m_iPSetReferencesHasBeenSet = true;
45 m_iPSetReferences = std::forward<IPSetReferencesT>(value);
46 }
47 template <typename IPSetReferencesT = Aws::Map<Aws::String, IPSetReference>>
48 ReferenceSets& WithIPSetReferences(IPSetReferencesT&& value) {
49 SetIPSetReferences(std::forward<IPSetReferencesT>(value));
50 return *this;
51 }
52 template <typename IPSetReferencesKeyT = Aws::String, typename IPSetReferencesValueT = IPSetReference>
53 ReferenceSets& AddIPSetReferences(IPSetReferencesKeyT&& key, IPSetReferencesValueT&& value) {
54 m_iPSetReferencesHasBeenSet = true;
55 m_iPSetReferences.emplace(std::forward<IPSetReferencesKeyT>(key), std::forward<IPSetReferencesValueT>(value));
56 return *this;
57 }
59 private:
61 bool m_iPSetReferencesHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace NetworkFirewall
66} // namespace Aws
AWS_NETWORKFIREWALL_API ReferenceSets()=default
AWS_NETWORKFIREWALL_API ReferenceSets & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Map< Aws::String, IPSetReference > & GetIPSetReferences() const
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetIPSetReferences(IPSetReferencesT &&value)
ReferenceSets & AddIPSetReferences(IPSetReferencesKeyT &&key, IPSetReferencesValueT &&value)
AWS_NETWORKFIREWALL_API ReferenceSets(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ReferenceSets & WithIPSetReferences(IPSetReferencesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map