AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
LogDestinationConfig.h
Go to the documentation of this file.
1
6#pragma once
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
42 {
43 public:
48
49
55 inline const LogType& GetLogType() const{ return m_logType; }
56
62 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
63
69 inline void SetLogType(const LogType& value) { m_logTypeHasBeenSet = true; m_logType = value; }
70
76 inline void SetLogType(LogType&& value) { m_logTypeHasBeenSet = true; m_logType = std::move(value); }
77
83 inline LogDestinationConfig& WithLogType(const LogType& value) { SetLogType(value); return *this;}
84
90 inline LogDestinationConfig& WithLogType(LogType&& value) { SetLogType(std::move(value)); return *this;}
91
92
98 inline const LogDestinationType& GetLogDestinationType() const{ return m_logDestinationType; }
99
105 inline bool LogDestinationTypeHasBeenSet() const { return m_logDestinationTypeHasBeenSet; }
106
112 inline void SetLogDestinationType(const LogDestinationType& value) { m_logDestinationTypeHasBeenSet = true; m_logDestinationType = value; }
113
119 inline void SetLogDestinationType(LogDestinationType&& value) { m_logDestinationTypeHasBeenSet = true; m_logDestinationType = std::move(value); }
120
127
133 inline LogDestinationConfig& WithLogDestinationType(LogDestinationType&& value) { SetLogDestinationType(std::move(value)); return *this;}
134
135
153 inline const Aws::Map<Aws::String, Aws::String>& GetLogDestination() const{ return m_logDestination; }
154
172 inline bool LogDestinationHasBeenSet() const { return m_logDestinationHasBeenSet; }
173
191 inline void SetLogDestination(const Aws::Map<Aws::String, Aws::String>& value) { m_logDestinationHasBeenSet = true; m_logDestination = value; }
192
210 inline void SetLogDestination(Aws::Map<Aws::String, Aws::String>&& value) { m_logDestinationHasBeenSet = true; m_logDestination = std::move(value); }
211
230
249
267 inline LogDestinationConfig& AddLogDestination(const Aws::String& key, const Aws::String& value) { m_logDestinationHasBeenSet = true; m_logDestination.emplace(key, value); return *this; }
268
286 inline LogDestinationConfig& AddLogDestination(Aws::String&& key, const Aws::String& value) { m_logDestinationHasBeenSet = true; m_logDestination.emplace(std::move(key), value); return *this; }
287
305 inline LogDestinationConfig& AddLogDestination(const Aws::String& key, Aws::String&& value) { m_logDestinationHasBeenSet = true; m_logDestination.emplace(key, std::move(value)); return *this; }
306
324 inline LogDestinationConfig& AddLogDestination(Aws::String&& key, Aws::String&& value) { m_logDestinationHasBeenSet = true; m_logDestination.emplace(std::move(key), std::move(value)); return *this; }
325
343 inline LogDestinationConfig& AddLogDestination(const char* key, Aws::String&& value) { m_logDestinationHasBeenSet = true; m_logDestination.emplace(key, std::move(value)); return *this; }
344
362 inline LogDestinationConfig& AddLogDestination(Aws::String&& key, const char* value) { m_logDestinationHasBeenSet = true; m_logDestination.emplace(std::move(key), value); return *this; }
363
381 inline LogDestinationConfig& AddLogDestination(const char* key, const char* value) { m_logDestinationHasBeenSet = true; m_logDestination.emplace(key, value); return *this; }
382
383 private:
384
385 LogType m_logType;
386 bool m_logTypeHasBeenSet = false;
387
388 LogDestinationType m_logDestinationType;
389 bool m_logDestinationTypeHasBeenSet = false;
390
391 Aws::Map<Aws::String, Aws::String> m_logDestination;
392 bool m_logDestinationHasBeenSet = false;
393 };
394
395} // namespace Model
396} // namespace NetworkFirewall
397} // namespace Aws
#define AWS_NETWORKFIREWALL_API
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