AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LoggingConfiguration.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/network-firewall/model/LogDestinationConfig.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NetworkFirewall
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_NETWORKFIREWALL_API LoggingConfiguration() = default;
37 AWS_NETWORKFIREWALL_API LoggingConfiguration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKFIREWALL_API LoggingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<LogDestinationConfig>& GetLogDestinationConfigs() const { return m_logDestinationConfigs; }
48 inline bool LogDestinationConfigsHasBeenSet() const { return m_logDestinationConfigsHasBeenSet; }
49 template<typename LogDestinationConfigsT = Aws::Vector<LogDestinationConfig>>
50 void SetLogDestinationConfigs(LogDestinationConfigsT&& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs = std::forward<LogDestinationConfigsT>(value); }
51 template<typename LogDestinationConfigsT = Aws::Vector<LogDestinationConfig>>
52 LoggingConfiguration& WithLogDestinationConfigs(LogDestinationConfigsT&& value) { SetLogDestinationConfigs(std::forward<LogDestinationConfigsT>(value)); return *this;}
53 template<typename LogDestinationConfigsT = LogDestinationConfig>
54 LoggingConfiguration& AddLogDestinationConfigs(LogDestinationConfigsT&& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.emplace_back(std::forward<LogDestinationConfigsT>(value)); return *this; }
56 private:
57
58 Aws::Vector<LogDestinationConfig> m_logDestinationConfigs;
59 bool m_logDestinationConfigsHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace NetworkFirewall
64} // namespace Aws
LoggingConfiguration & AddLogDestinationConfigs(LogDestinationConfigsT &&value)
const Aws::Vector< LogDestinationConfig > & GetLogDestinationConfigs() const
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKFIREWALL_API LoggingConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetLogDestinationConfigs(LogDestinationConfigsT &&value)
AWS_NETWORKFIREWALL_API LoggingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API LoggingConfiguration()=default
LoggingConfiguration & WithLogDestinationConfigs(LogDestinationConfigsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue