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/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wafv2/model/LoggingFilter.h>
11#include <aws/wafv2/model/LogType.h>
12#include <aws/wafv2/model/LogScope.h>
13#include <aws/wafv2/model/FieldToMatch.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace WAFV2
27{
28namespace Model
29{
30
63 {
64 public:
65 AWS_WAFV2_API LoggingConfiguration() = default;
68 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
69
70
72
76 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
77 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
78 template<typename ResourceArnT = Aws::String>
79 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
80 template<typename ResourceArnT = Aws::String>
81 LoggingConfiguration& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
83
85
90 inline const Aws::Vector<Aws::String>& GetLogDestinationConfigs() const { return m_logDestinationConfigs; }
91 inline bool LogDestinationConfigsHasBeenSet() const { return m_logDestinationConfigsHasBeenSet; }
92 template<typename LogDestinationConfigsT = Aws::Vector<Aws::String>>
93 void SetLogDestinationConfigs(LogDestinationConfigsT&& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs = std::forward<LogDestinationConfigsT>(value); }
94 template<typename LogDestinationConfigsT = Aws::Vector<Aws::String>>
95 LoggingConfiguration& WithLogDestinationConfigs(LogDestinationConfigsT&& value) { SetLogDestinationConfigs(std::forward<LogDestinationConfigsT>(value)); return *this;}
96 template<typename LogDestinationConfigsT = Aws::String>
97 LoggingConfiguration& AddLogDestinationConfigs(LogDestinationConfigsT&& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.emplace_back(std::forward<LogDestinationConfigsT>(value)); return *this; }
99
101
118 inline const Aws::Vector<FieldToMatch>& GetRedactedFields() const { return m_redactedFields; }
119 inline bool RedactedFieldsHasBeenSet() const { return m_redactedFieldsHasBeenSet; }
120 template<typename RedactedFieldsT = Aws::Vector<FieldToMatch>>
121 void SetRedactedFields(RedactedFieldsT&& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields = std::forward<RedactedFieldsT>(value); }
122 template<typename RedactedFieldsT = Aws::Vector<FieldToMatch>>
123 LoggingConfiguration& WithRedactedFields(RedactedFieldsT&& value) { SetRedactedFields(std::forward<RedactedFieldsT>(value)); return *this;}
124 template<typename RedactedFieldsT = FieldToMatch>
125 LoggingConfiguration& AddRedactedFields(RedactedFieldsT&& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields.emplace_back(std::forward<RedactedFieldsT>(value)); return *this; }
127
129
141 inline bool GetManagedByFirewallManager() const { return m_managedByFirewallManager; }
142 inline bool ManagedByFirewallManagerHasBeenSet() const { return m_managedByFirewallManagerHasBeenSet; }
143 inline void SetManagedByFirewallManager(bool value) { m_managedByFirewallManagerHasBeenSet = true; m_managedByFirewallManager = value; }
146
148
153 inline const LoggingFilter& GetLoggingFilter() const { return m_loggingFilter; }
154 inline bool LoggingFilterHasBeenSet() const { return m_loggingFilterHasBeenSet; }
155 template<typename LoggingFilterT = LoggingFilter>
156 void SetLoggingFilter(LoggingFilterT&& value) { m_loggingFilterHasBeenSet = true; m_loggingFilter = std::forward<LoggingFilterT>(value); }
157 template<typename LoggingFilterT = LoggingFilter>
158 LoggingConfiguration& WithLoggingFilter(LoggingFilterT&& value) { SetLoggingFilter(std::forward<LoggingFilterT>(value)); return *this;}
160
162
166 inline LogType GetLogType() const { return m_logType; }
167 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
168 inline void SetLogType(LogType value) { m_logTypeHasBeenSet = true; m_logType = value; }
169 inline LoggingConfiguration& WithLogType(LogType value) { SetLogType(value); return *this;}
171
173
184 inline LogScope GetLogScope() const { return m_logScope; }
185 inline bool LogScopeHasBeenSet() const { return m_logScopeHasBeenSet; }
186 inline void SetLogScope(LogScope value) { m_logScopeHasBeenSet = true; m_logScope = value; }
187 inline LoggingConfiguration& WithLogScope(LogScope value) { SetLogScope(value); return *this;}
189 private:
190
191 Aws::String m_resourceArn;
192 bool m_resourceArnHasBeenSet = false;
193
194 Aws::Vector<Aws::String> m_logDestinationConfigs;
195 bool m_logDestinationConfigsHasBeenSet = false;
196
197 Aws::Vector<FieldToMatch> m_redactedFields;
198 bool m_redactedFieldsHasBeenSet = false;
199
200 bool m_managedByFirewallManager{false};
201 bool m_managedByFirewallManagerHasBeenSet = false;
202
203 LoggingFilter m_loggingFilter;
204 bool m_loggingFilterHasBeenSet = false;
205
206 LogType m_logType{LogType::NOT_SET};
207 bool m_logTypeHasBeenSet = false;
208
209 LogScope m_logScope{LogScope::NOT_SET};
210 bool m_logScopeHasBeenSet = false;
211 };
212
213} // namespace Model
214} // namespace WAFV2
215} // namespace Aws
LoggingConfiguration & WithLogType(LogType value)
LoggingConfiguration & AddRedactedFields(RedactedFieldsT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API LoggingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
LoggingConfiguration & WithManagedByFirewallManager(bool value)
void SetLogDestinationConfigs(LogDestinationConfigsT &&value)
const Aws::Vector< FieldToMatch > & GetRedactedFields() const
LoggingConfiguration & AddLogDestinationConfigs(LogDestinationConfigsT &&value)
AWS_WAFV2_API LoggingConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API LoggingConfiguration()=default
LoggingConfiguration & WithLogScope(LogScope value)
void SetRedactedFields(RedactedFieldsT &&value)
void SetLoggingFilter(LoggingFilterT &&value)
LoggingConfiguration & WithRedactedFields(RedactedFieldsT &&value)
LoggingConfiguration & WithResourceArn(ResourceArnT &&value)
const Aws::Vector< Aws::String > & GetLogDestinationConfigs() const
const LoggingFilter & GetLoggingFilter() const
LoggingConfiguration & WithLogDestinationConfigs(LogDestinationConfigsT &&value)
LoggingConfiguration & WithLoggingFilter(LoggingFilterT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue