AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const LogType& GetLogType() const{ return m_logType; }
64 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
65 inline void SetLogType(const LogType& value) { m_logTypeHasBeenSet = true; m_logType = value; }
66 inline void SetLogType(LogType&& value) { m_logTypeHasBeenSet = true; m_logType = std::move(value); }
67 inline LogDestinationConfig& WithLogType(const LogType& value) { SetLogType(value); return *this;}
68 inline LogDestinationConfig& WithLogType(LogType&& value) { SetLogType(std::move(value)); return *this;}
70
72
76 inline const LogDestinationType& GetLogDestinationType() const{ return m_logDestinationType; }
77 inline bool LogDestinationTypeHasBeenSet() const { return m_logDestinationTypeHasBeenSet; }
78 inline void SetLogDestinationType(const LogDestinationType& value) { m_logDestinationTypeHasBeenSet = true; m_logDestinationType = value; }
79 inline void SetLogDestinationType(LogDestinationType&& value) { m_logDestinationTypeHasBeenSet = true; m_logDestinationType = std::move(value); }
81 inline LogDestinationConfig& WithLogDestinationType(LogDestinationType&& value) { SetLogDestinationType(std::move(value)); return *this;}
83
85
102 inline const Aws::Map<Aws::String, Aws::String>& GetLogDestination() const{ return m_logDestination; }
103 inline bool LogDestinationHasBeenSet() const { return m_logDestinationHasBeenSet; }
104 inline void SetLogDestination(const Aws::Map<Aws::String, Aws::String>& value) { m_logDestinationHasBeenSet = true; m_logDestination = value; }
105 inline void SetLogDestination(Aws::Map<Aws::String, Aws::String>&& value) { m_logDestinationHasBeenSet = true; m_logDestination = std::move(value); }
108 inline LogDestinationConfig& AddLogDestination(const Aws::String& key, const Aws::String& value) { m_logDestinationHasBeenSet = true; m_logDestination.emplace(key, value); return *this; }
109 inline LogDestinationConfig& AddLogDestination(Aws::String&& key, const Aws::String& value) { m_logDestinationHasBeenSet = true; m_logDestination.emplace(std::move(key), value); return *this; }
110 inline LogDestinationConfig& AddLogDestination(const Aws::String& key, Aws::String&& value) { m_logDestinationHasBeenSet = true; m_logDestination.emplace(key, std::move(value)); return *this; }
111 inline LogDestinationConfig& AddLogDestination(Aws::String&& key, Aws::String&& value) { m_logDestinationHasBeenSet = true; m_logDestination.emplace(std::move(key), std::move(value)); return *this; }
112 inline LogDestinationConfig& AddLogDestination(const char* key, Aws::String&& value) { m_logDestinationHasBeenSet = true; m_logDestination.emplace(key, std::move(value)); return *this; }
113 inline LogDestinationConfig& AddLogDestination(Aws::String&& key, const char* value) { m_logDestinationHasBeenSet = true; m_logDestination.emplace(std::move(key), value); return *this; }
114 inline LogDestinationConfig& AddLogDestination(const char* key, const char* value) { m_logDestinationHasBeenSet = true; m_logDestination.emplace(key, value); return *this; }
116 private:
117
118 LogType m_logType;
119 bool m_logTypeHasBeenSet = false;
120
121 LogDestinationType m_logDestinationType;
122 bool m_logDestinationTypeHasBeenSet = false;
123
124 Aws::Map<Aws::String, Aws::String> m_logDestination;
125 bool m_logDestinationHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace NetworkFirewall
130} // namespace Aws
LogDestinationConfig & AddLogDestination(Aws::String &&key, Aws::String &&value)
LogDestinationConfig & WithLogType(const LogType &value)
LogDestinationConfig & AddLogDestination(const char *key, const char *value)
LogDestinationConfig & AddLogDestination(const Aws::String &key, const Aws::String &value)
LogDestinationConfig & WithLogDestinationType(const LogDestinationType &value)
LogDestinationConfig & WithLogDestination(Aws::Map< Aws::String, Aws::String > &&value)
LogDestinationConfig & AddLogDestination(const Aws::String &key, Aws::String &&value)
LogDestinationConfig & AddLogDestination(Aws::String &&key, const Aws::String &value)
void SetLogDestinationType(const LogDestinationType &value)
LogDestinationConfig & WithLogDestination(const Aws::Map< Aws::String, Aws::String > &value)
void SetLogDestination(const Aws::Map< Aws::String, Aws::String > &value)
AWS_NETWORKFIREWALL_API LogDestinationConfig(Aws::Utils::Json::JsonView jsonValue)
LogDestinationConfig & AddLogDestination(Aws::String &&key, const char *value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogDestination(Aws::Map< Aws::String, Aws::String > &&value)
LogDestinationConfig & AddLogDestination(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetLogDestination() const
AWS_NETWORKFIREWALL_API LogDestinationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLogDestinationType(LogDestinationType &&value)
LogDestinationConfig & WithLogType(LogType &&value)
const LogDestinationType & GetLogDestinationType() const
LogDestinationConfig & WithLogDestinationType(LogDestinationType &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue