AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
61 {
62 public:
63 AWS_WAFV2_API LoggingConfiguration();
66 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
67
68
70
74 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
75 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
76 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
77 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
78 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
79 inline LoggingConfiguration& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
80 inline LoggingConfiguration& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
81 inline LoggingConfiguration& WithResourceArn(const char* value) { SetResourceArn(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 inline void SetLogDestinationConfigs(const Aws::Vector<Aws::String>& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs = value; }
93 inline void SetLogDestinationConfigs(Aws::Vector<Aws::String>&& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs = std::move(value); }
96 inline LoggingConfiguration& AddLogDestinationConfigs(const Aws::String& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.push_back(value); return *this; }
97 inline LoggingConfiguration& AddLogDestinationConfigs(Aws::String&& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.push_back(std::move(value)); return *this; }
98 inline LoggingConfiguration& AddLogDestinationConfigs(const char* value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.push_back(value); return *this; }
100
102
117 inline const Aws::Vector<FieldToMatch>& GetRedactedFields() const{ return m_redactedFields; }
118 inline bool RedactedFieldsHasBeenSet() const { return m_redactedFieldsHasBeenSet; }
119 inline void SetRedactedFields(const Aws::Vector<FieldToMatch>& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields = value; }
120 inline void SetRedactedFields(Aws::Vector<FieldToMatch>&& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields = std::move(value); }
122 inline LoggingConfiguration& WithRedactedFields(Aws::Vector<FieldToMatch>&& value) { SetRedactedFields(std::move(value)); return *this;}
123 inline LoggingConfiguration& AddRedactedFields(const FieldToMatch& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields.push_back(value); return *this; }
124 inline LoggingConfiguration& AddRedactedFields(FieldToMatch&& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields.push_back(std::move(value)); return *this; }
126
128
140 inline bool GetManagedByFirewallManager() const{ return m_managedByFirewallManager; }
141 inline bool ManagedByFirewallManagerHasBeenSet() const { return m_managedByFirewallManagerHasBeenSet; }
142 inline void SetManagedByFirewallManager(bool value) { m_managedByFirewallManagerHasBeenSet = true; m_managedByFirewallManager = value; }
145
147
152 inline const LoggingFilter& GetLoggingFilter() const{ return m_loggingFilter; }
153 inline bool LoggingFilterHasBeenSet() const { return m_loggingFilterHasBeenSet; }
154 inline void SetLoggingFilter(const LoggingFilter& value) { m_loggingFilterHasBeenSet = true; m_loggingFilter = value; }
155 inline void SetLoggingFilter(LoggingFilter&& value) { m_loggingFilterHasBeenSet = true; m_loggingFilter = std::move(value); }
156 inline LoggingConfiguration& WithLoggingFilter(const LoggingFilter& value) { SetLoggingFilter(value); return *this;}
157 inline LoggingConfiguration& WithLoggingFilter(LoggingFilter&& value) { SetLoggingFilter(std::move(value)); return *this;}
159
161
165 inline const LogType& GetLogType() const{ return m_logType; }
166 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
167 inline void SetLogType(const LogType& value) { m_logTypeHasBeenSet = true; m_logType = value; }
168 inline void SetLogType(LogType&& value) { m_logTypeHasBeenSet = true; m_logType = std::move(value); }
169 inline LoggingConfiguration& WithLogType(const LogType& value) { SetLogType(value); return *this;}
170 inline LoggingConfiguration& WithLogType(LogType&& value) { SetLogType(std::move(value)); return *this;}
172
174
185 inline const LogScope& GetLogScope() const{ return m_logScope; }
186 inline bool LogScopeHasBeenSet() const { return m_logScopeHasBeenSet; }
187 inline void SetLogScope(const LogScope& value) { m_logScopeHasBeenSet = true; m_logScope = value; }
188 inline void SetLogScope(LogScope&& value) { m_logScopeHasBeenSet = true; m_logScope = std::move(value); }
189 inline LoggingConfiguration& WithLogScope(const LogScope& value) { SetLogScope(value); return *this;}
190 inline LoggingConfiguration& WithLogScope(LogScope&& value) { SetLogScope(std::move(value)); return *this;}
192 private:
193
194 Aws::String m_resourceArn;
195 bool m_resourceArnHasBeenSet = false;
196
197 Aws::Vector<Aws::String> m_logDestinationConfigs;
198 bool m_logDestinationConfigsHasBeenSet = false;
199
200 Aws::Vector<FieldToMatch> m_redactedFields;
201 bool m_redactedFieldsHasBeenSet = false;
202
203 bool m_managedByFirewallManager;
204 bool m_managedByFirewallManagerHasBeenSet = false;
205
206 LoggingFilter m_loggingFilter;
207 bool m_loggingFilterHasBeenSet = false;
208
209 LogType m_logType;
210 bool m_logTypeHasBeenSet = false;
211
212 LogScope m_logScope;
213 bool m_logScopeHasBeenSet = false;
214 };
215
216} // namespace Model
217} // namespace WAFV2
218} // namespace Aws
LoggingConfiguration & WithResourceArn(Aws::String &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API LoggingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLoggingFilter(const LoggingFilter &value)
LoggingConfiguration & WithManagedByFirewallManager(bool value)
LoggingConfiguration & WithLogType(LogType &&value)
LoggingConfiguration & WithLoggingFilter(LoggingFilter &&value)
LoggingConfiguration & AddLogDestinationConfigs(const char *value)
const Aws::Vector< FieldToMatch > & GetRedactedFields() const
LoggingConfiguration & WithResourceArn(const Aws::String &value)
AWS_WAFV2_API LoggingConfiguration(Aws::Utils::Json::JsonView jsonValue)
LoggingConfiguration & WithLoggingFilter(const LoggingFilter &value)
void SetResourceArn(const Aws::String &value)
void SetRedactedFields(const Aws::Vector< FieldToMatch > &value)
LoggingConfiguration & AddRedactedFields(const FieldToMatch &value)
void SetRedactedFields(Aws::Vector< FieldToMatch > &&value)
LoggingConfiguration & WithLogScope(const LogScope &value)
LoggingConfiguration & WithRedactedFields(const Aws::Vector< FieldToMatch > &value)
const Aws::Vector< Aws::String > & GetLogDestinationConfigs() const
LoggingConfiguration & WithLogScope(LogScope &&value)
LoggingConfiguration & AddRedactedFields(FieldToMatch &&value)
LoggingConfiguration & AddLogDestinationConfigs(Aws::String &&value)
const LoggingFilter & GetLoggingFilter() const
LoggingConfiguration & WithLogDestinationConfigs(const Aws::Vector< Aws::String > &value)
LoggingConfiguration & WithResourceArn(const char *value)
void SetLogDestinationConfigs(Aws::Vector< Aws::String > &&value)
LoggingConfiguration & WithLogType(const LogType &value)
LoggingConfiguration & WithLogDestinationConfigs(Aws::Vector< Aws::String > &&value)
LoggingConfiguration & WithRedactedFields(Aws::Vector< FieldToMatch > &&value)
LoggingConfiguration & AddLogDestinationConfigs(const Aws::String &value)
void SetLogDestinationConfigs(const Aws::Vector< Aws::String > &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