AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
LoggingConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wafv2/WAFV2_EXPORTS.h>
10#include <aws/wafv2/model/FieldToMatch.h>
11#include <aws/wafv2/model/LogScope.h>
12#include <aws/wafv2/model/LogType.h>
13#include <aws/wafv2/model/LoggingFilter.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WAFV2 {
25namespace Model {
26
59 public:
60 AWS_WAFV2_API LoggingConfiguration() = default;
63 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
64
66
70 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
71 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
72 template <typename ResourceArnT = Aws::String>
73 void SetResourceArn(ResourceArnT&& value) {
74 m_resourceArnHasBeenSet = true;
75 m_resourceArn = std::forward<ResourceArnT>(value);
76 }
77 template <typename ResourceArnT = Aws::String>
78 LoggingConfiguration& WithResourceArn(ResourceArnT&& value) {
79 SetResourceArn(std::forward<ResourceArnT>(value));
80 return *this;
81 }
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) {
94 m_logDestinationConfigsHasBeenSet = true;
95 m_logDestinationConfigs = std::forward<LogDestinationConfigsT>(value);
96 }
97 template <typename LogDestinationConfigsT = Aws::Vector<Aws::String>>
98 LoggingConfiguration& WithLogDestinationConfigs(LogDestinationConfigsT&& value) {
99 SetLogDestinationConfigs(std::forward<LogDestinationConfigsT>(value));
100 return *this;
101 }
102 template <typename LogDestinationConfigsT = Aws::String>
103 LoggingConfiguration& AddLogDestinationConfigs(LogDestinationConfigsT&& value) {
104 m_logDestinationConfigsHasBeenSet = true;
105 m_logDestinationConfigs.emplace_back(std::forward<LogDestinationConfigsT>(value));
106 return *this;
107 }
109
111
128 inline const Aws::Vector<FieldToMatch>& GetRedactedFields() const { return m_redactedFields; }
129 inline bool RedactedFieldsHasBeenSet() const { return m_redactedFieldsHasBeenSet; }
130 template <typename RedactedFieldsT = Aws::Vector<FieldToMatch>>
131 void SetRedactedFields(RedactedFieldsT&& value) {
132 m_redactedFieldsHasBeenSet = true;
133 m_redactedFields = std::forward<RedactedFieldsT>(value);
134 }
135 template <typename RedactedFieldsT = Aws::Vector<FieldToMatch>>
136 LoggingConfiguration& WithRedactedFields(RedactedFieldsT&& value) {
137 SetRedactedFields(std::forward<RedactedFieldsT>(value));
138 return *this;
139 }
140 template <typename RedactedFieldsT = FieldToMatch>
141 LoggingConfiguration& AddRedactedFields(RedactedFieldsT&& value) {
142 m_redactedFieldsHasBeenSet = true;
143 m_redactedFields.emplace_back(std::forward<RedactedFieldsT>(value));
144 return *this;
145 }
147
149
161 inline bool GetManagedByFirewallManager() const { return m_managedByFirewallManager; }
162 inline bool ManagedByFirewallManagerHasBeenSet() const { return m_managedByFirewallManagerHasBeenSet; }
163 inline void SetManagedByFirewallManager(bool value) {
164 m_managedByFirewallManagerHasBeenSet = true;
165 m_managedByFirewallManager = value;
166 }
169 return *this;
170 }
172
174
179 inline const LoggingFilter& GetLoggingFilter() const { return m_loggingFilter; }
180 inline bool LoggingFilterHasBeenSet() const { return m_loggingFilterHasBeenSet; }
181 template <typename LoggingFilterT = LoggingFilter>
182 void SetLoggingFilter(LoggingFilterT&& value) {
183 m_loggingFilterHasBeenSet = true;
184 m_loggingFilter = std::forward<LoggingFilterT>(value);
185 }
186 template <typename LoggingFilterT = LoggingFilter>
187 LoggingConfiguration& WithLoggingFilter(LoggingFilterT&& value) {
188 SetLoggingFilter(std::forward<LoggingFilterT>(value));
189 return *this;
190 }
192
194
198 inline LogType GetLogType() const { return m_logType; }
199 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
200 inline void SetLogType(LogType value) {
201 m_logTypeHasBeenSet = true;
202 m_logType = value;
203 }
205 SetLogType(value);
206 return *this;
207 }
209
211
227 inline LogScope GetLogScope() const { return m_logScope; }
228 inline bool LogScopeHasBeenSet() const { return m_logScopeHasBeenSet; }
229 inline void SetLogScope(LogScope value) {
230 m_logScopeHasBeenSet = true;
231 m_logScope = value;
232 }
234 SetLogScope(value);
235 return *this;
236 }
238 private:
239 Aws::String m_resourceArn;
240
241 Aws::Vector<Aws::String> m_logDestinationConfigs;
242
243 Aws::Vector<FieldToMatch> m_redactedFields;
244
245 bool m_managedByFirewallManager{false};
246
247 LoggingFilter m_loggingFilter;
248
249 LogType m_logType{LogType::NOT_SET};
250
251 LogScope m_logScope{LogScope::NOT_SET};
252 bool m_resourceArnHasBeenSet = false;
253 bool m_logDestinationConfigsHasBeenSet = false;
254 bool m_redactedFieldsHasBeenSet = false;
255 bool m_managedByFirewallManagerHasBeenSet = false;
256 bool m_loggingFilterHasBeenSet = false;
257 bool m_logTypeHasBeenSet = false;
258 bool m_logScopeHasBeenSet = false;
259};
260
261} // namespace Model
262} // namespace WAFV2
263} // 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