AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
LogDestinationConfig.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/LogDestinationType.h>
12#include <aws/network-firewall/model/LogType.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
35 public:
36 AWS_NETWORKFIREWALL_API LogDestinationConfig() = default;
37 AWS_NETWORKFIREWALL_API LogDestinationConfig(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_NETWORKFIREWALL_API LogDestinationConfig& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
40
42
57 inline LogType GetLogType() const { return m_logType; }
58 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
59 inline void SetLogType(LogType value) {
60 m_logTypeHasBeenSet = true;
61 m_logType = value;
62 }
64 SetLogType(value);
65 return *this;
66 }
68
70
74 inline LogDestinationType GetLogDestinationType() const { return m_logDestinationType; }
75 inline bool LogDestinationTypeHasBeenSet() const { return m_logDestinationTypeHasBeenSet; }
77 m_logDestinationTypeHasBeenSet = true;
78 m_logDestinationType = value;
79 }
85
87
104 inline const Aws::Map<Aws::String, Aws::String>& GetLogDestination() const { return m_logDestination; }
105 inline bool LogDestinationHasBeenSet() const { return m_logDestinationHasBeenSet; }
106 template <typename LogDestinationT = Aws::Map<Aws::String, Aws::String>>
107 void SetLogDestination(LogDestinationT&& value) {
108 m_logDestinationHasBeenSet = true;
109 m_logDestination = std::forward<LogDestinationT>(value);
110 }
111 template <typename LogDestinationT = Aws::Map<Aws::String, Aws::String>>
112 LogDestinationConfig& WithLogDestination(LogDestinationT&& value) {
113 SetLogDestination(std::forward<LogDestinationT>(value));
114 return *this;
115 }
116 template <typename LogDestinationKeyT = Aws::String, typename LogDestinationValueT = Aws::String>
117 LogDestinationConfig& AddLogDestination(LogDestinationKeyT&& key, LogDestinationValueT&& value) {
118 m_logDestinationHasBeenSet = true;
119 m_logDestination.emplace(std::forward<LogDestinationKeyT>(key), std::forward<LogDestinationValueT>(value));
120 return *this;
121 }
123 private:
124 LogType m_logType{LogType::NOT_SET};
125
127
128 Aws::Map<Aws::String, Aws::String> m_logDestination;
129 bool m_logTypeHasBeenSet = false;
130 bool m_logDestinationTypeHasBeenSet = false;
131 bool m_logDestinationHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace NetworkFirewall
136} // namespace Aws
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
LogDestinationConfig & WithLogDestinationType(LogDestinationType value)
LogDestinationConfig & AddLogDestination(LogDestinationKeyT &&key, LogDestinationValueT &&value)
LogDestinationConfig & WithLogDestination(LogDestinationT &&value)
AWS_NETWORKFIREWALL_API LogDestinationConfig(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API LogDestinationConfig()=default
AWS_NETWORKFIREWALL_API LogDestinationConfig & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
LogDestinationConfig & WithLogType(LogType value)
const Aws::Map< Aws::String, Aws::String > & GetLogDestination() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map