AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LogDestinationConfig.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/network-firewall/model/LogType.h>
9#include <aws/network-firewall/model/LogDestinationType.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace NetworkFirewall
25{
26namespace Model
27{
28
39 {
40 public:
41 AWS_NETWORKFIREWALL_API LogDestinationConfig() = default;
42 AWS_NETWORKFIREWALL_API LogDestinationConfig(Aws::Utils::Json::JsonView jsonValue);
43 AWS_NETWORKFIREWALL_API LogDestinationConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
63 inline LogType GetLogType() const { return m_logType; }
64 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
65 inline void SetLogType(LogType value) { m_logTypeHasBeenSet = true; m_logType = value; }
66 inline LogDestinationConfig& WithLogType(LogType value) { SetLogType(value); return *this;}
68
70
74 inline LogDestinationType GetLogDestinationType() const { return m_logDestinationType; }
75 inline bool LogDestinationTypeHasBeenSet() const { return m_logDestinationTypeHasBeenSet; }
76 inline void SetLogDestinationType(LogDestinationType value) { m_logDestinationTypeHasBeenSet = true; m_logDestinationType = value; }
79
81
98 inline const Aws::Map<Aws::String, Aws::String>& GetLogDestination() const { return m_logDestination; }
99 inline bool LogDestinationHasBeenSet() const { return m_logDestinationHasBeenSet; }
100 template<typename LogDestinationT = Aws::Map<Aws::String, Aws::String>>
101 void SetLogDestination(LogDestinationT&& value) { m_logDestinationHasBeenSet = true; m_logDestination = std::forward<LogDestinationT>(value); }
102 template<typename LogDestinationT = Aws::Map<Aws::String, Aws::String>>
103 LogDestinationConfig& WithLogDestination(LogDestinationT&& value) { SetLogDestination(std::forward<LogDestinationT>(value)); return *this;}
104 template<typename LogDestinationKeyT = Aws::String, typename LogDestinationValueT = Aws::String>
105 LogDestinationConfig& AddLogDestination(LogDestinationKeyT&& key, LogDestinationValueT&& value) {
106 m_logDestinationHasBeenSet = true; m_logDestination.emplace(std::forward<LogDestinationKeyT>(key), std::forward<LogDestinationValueT>(value)); return *this;
107 }
109 private:
110
111 LogType m_logType{LogType::NOT_SET};
112 bool m_logTypeHasBeenSet = false;
113
115 bool m_logDestinationTypeHasBeenSet = false;
116
117 Aws::Map<Aws::String, Aws::String> m_logDestination;
118 bool m_logDestinationHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace NetworkFirewall
123} // namespace Aws
LogDestinationConfig & WithLogDestinationType(LogDestinationType value)
LogDestinationConfig & AddLogDestination(LogDestinationKeyT &&key, LogDestinationValueT &&value)
LogDestinationConfig & WithLogDestination(LogDestinationT &&value)
AWS_NETWORKFIREWALL_API LogDestinationConfig()=default
AWS_NETWORKFIREWALL_API LogDestinationConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
LogDestinationConfig & WithLogType(LogType value)
const Aws::Map< Aws::String, Aws::String > & GetLogDestination() const
AWS_NETWORKFIREWALL_API LogDestinationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue