AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
ContextSet.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/network-firewall/NetworkFirewall_EXPORTS.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
32 public:
33 AWS_NETWORKFIREWALL_API ContextSet() = default;
34 AWS_NETWORKFIREWALL_API ContextSet(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_NETWORKFIREWALL_API ContextSet& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
45 inline const Aws::Vector<Aws::String>& GetDefinition() const { return m_definition; }
46 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
47 template <typename DefinitionT = Aws::Vector<Aws::String>>
48 void SetDefinition(DefinitionT&& value) {
49 m_definitionHasBeenSet = true;
50 m_definition = std::forward<DefinitionT>(value);
51 }
52 template <typename DefinitionT = Aws::Vector<Aws::String>>
53 ContextSet& WithDefinition(DefinitionT&& value) {
54 SetDefinition(std::forward<DefinitionT>(value));
55 return *this;
56 }
57 template <typename DefinitionT = Aws::String>
58 ContextSet& AddDefinition(DefinitionT&& value) {
59 m_definitionHasBeenSet = true;
60 m_definition.emplace_back(std::forward<DefinitionT>(value));
61 return *this;
62 }
64 private:
65 Aws::Vector<Aws::String> m_definition;
66 bool m_definitionHasBeenSet = false;
67};
68
69} // namespace Model
70} // namespace NetworkFirewall
71} // namespace Aws
ContextSet & AddDefinition(DefinitionT &&value)
Definition ContextSet.h:58
AWS_NETWORKFIREWALL_API ContextSet & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetDefinition(DefinitionT &&value)
Definition ContextSet.h:48
AWS_NETWORKFIREWALL_API ContextSet()=default
AWS_NETWORKFIREWALL_API ContextSet(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ContextSet & WithDefinition(DefinitionT &&value)
Definition ContextSet.h:53
const Aws::Vector< Aws::String > & GetDefinition() const
Definition ContextSet.h:45
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::vector< T, Aws::Allocator< T > > Vector