AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
LoggingConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
10#include <aws/network-firewall/model/LogDestinationConfig.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
30 public:
31 AWS_NETWORKFIREWALL_API LoggingConfiguration() = default;
32 AWS_NETWORKFIREWALL_API LoggingConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_NETWORKFIREWALL_API LoggingConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
41 inline const Aws::Vector<LogDestinationConfig>& GetLogDestinationConfigs() const { return m_logDestinationConfigs; }
42 inline bool LogDestinationConfigsHasBeenSet() const { return m_logDestinationConfigsHasBeenSet; }
43 template <typename LogDestinationConfigsT = Aws::Vector<LogDestinationConfig>>
44 void SetLogDestinationConfigs(LogDestinationConfigsT&& value) {
45 m_logDestinationConfigsHasBeenSet = true;
46 m_logDestinationConfigs = std::forward<LogDestinationConfigsT>(value);
47 }
48 template <typename LogDestinationConfigsT = Aws::Vector<LogDestinationConfig>>
49 LoggingConfiguration& WithLogDestinationConfigs(LogDestinationConfigsT&& value) {
50 SetLogDestinationConfigs(std::forward<LogDestinationConfigsT>(value));
51 return *this;
52 }
53 template <typename LogDestinationConfigsT = LogDestinationConfig>
54 LoggingConfiguration& AddLogDestinationConfigs(LogDestinationConfigsT&& value) {
55 m_logDestinationConfigsHasBeenSet = true;
56 m_logDestinationConfigs.emplace_back(std::forward<LogDestinationConfigsT>(value));
57 return *this;
58 }
60 private:
61 Aws::Vector<LogDestinationConfig> m_logDestinationConfigs;
62 bool m_logDestinationConfigsHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace NetworkFirewall
67} // namespace Aws
LoggingConfiguration & AddLogDestinationConfigs(LogDestinationConfigsT &&value)
const Aws::Vector< LogDestinationConfig > & GetLogDestinationConfigs() const
void SetLogDestinationConfigs(LogDestinationConfigsT &&value)
AWS_NETWORKFIREWALL_API LoggingConfiguration()=default
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_NETWORKFIREWALL_API LoggingConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
LoggingConfiguration & WithLogDestinationConfigs(LogDestinationConfigsT &&value)
AWS_NETWORKFIREWALL_API LoggingConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::vector< T, Aws::Allocator< T > > Vector