AWS SDK for C++  1.9.105
AWS SDK for C++
LoggingConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace WAFV2
25 {
26 namespace Model
27 {
28 
39  {
40  public:
45 
46 
51  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
52 
57  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
58 
63  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
64 
69  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
70 
75  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
76 
81  inline LoggingConfiguration& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
82 
87  inline LoggingConfiguration& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
88 
93  inline LoggingConfiguration& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
94 
95 
100  inline const Aws::Vector<Aws::String>& GetLogDestinationConfigs() const{ return m_logDestinationConfigs; }
101 
106  inline bool LogDestinationConfigsHasBeenSet() const { return m_logDestinationConfigsHasBeenSet; }
107 
112  inline void SetLogDestinationConfigs(const Aws::Vector<Aws::String>& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs = value; }
113 
118  inline void SetLogDestinationConfigs(Aws::Vector<Aws::String>&& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs = std::move(value); }
119 
124  inline LoggingConfiguration& WithLogDestinationConfigs(const Aws::Vector<Aws::String>& value) { SetLogDestinationConfigs(value); return *this;}
125 
130  inline LoggingConfiguration& WithLogDestinationConfigs(Aws::Vector<Aws::String>&& value) { SetLogDestinationConfigs(std::move(value)); return *this;}
131 
136  inline LoggingConfiguration& AddLogDestinationConfigs(const Aws::String& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.push_back(value); return *this; }
137 
142  inline LoggingConfiguration& AddLogDestinationConfigs(Aws::String&& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.push_back(std::move(value)); return *this; }
143 
148  inline LoggingConfiguration& AddLogDestinationConfigs(const char* value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.push_back(value); return *this; }
149 
150 
159  inline const Aws::Vector<FieldToMatch>& GetRedactedFields() const{ return m_redactedFields; }
160 
169  inline bool RedactedFieldsHasBeenSet() const { return m_redactedFieldsHasBeenSet; }
170 
179  inline void SetRedactedFields(const Aws::Vector<FieldToMatch>& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields = value; }
180 
189  inline void SetRedactedFields(Aws::Vector<FieldToMatch>&& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields = std::move(value); }
190 
199  inline LoggingConfiguration& WithRedactedFields(const Aws::Vector<FieldToMatch>& value) { SetRedactedFields(value); return *this;}
200 
209  inline LoggingConfiguration& WithRedactedFields(Aws::Vector<FieldToMatch>&& value) { SetRedactedFields(std::move(value)); return *this;}
210 
219  inline LoggingConfiguration& AddRedactedFields(const FieldToMatch& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields.push_back(value); return *this; }
220 
229  inline LoggingConfiguration& AddRedactedFields(FieldToMatch&& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields.push_back(std::move(value)); return *this; }
230 
231 
237  inline bool GetManagedByFirewallManager() const{ return m_managedByFirewallManager; }
238 
244  inline bool ManagedByFirewallManagerHasBeenSet() const { return m_managedByFirewallManagerHasBeenSet; }
245 
251  inline void SetManagedByFirewallManager(bool value) { m_managedByFirewallManagerHasBeenSet = true; m_managedByFirewallManager = value; }
252 
258  inline LoggingConfiguration& WithManagedByFirewallManager(bool value) { SetManagedByFirewallManager(value); return *this;}
259 
260 
266  inline const LoggingFilter& GetLoggingFilter() const{ return m_loggingFilter; }
267 
273  inline bool LoggingFilterHasBeenSet() const { return m_loggingFilterHasBeenSet; }
274 
280  inline void SetLoggingFilter(const LoggingFilter& value) { m_loggingFilterHasBeenSet = true; m_loggingFilter = value; }
281 
287  inline void SetLoggingFilter(LoggingFilter&& value) { m_loggingFilterHasBeenSet = true; m_loggingFilter = std::move(value); }
288 
294  inline LoggingConfiguration& WithLoggingFilter(const LoggingFilter& value) { SetLoggingFilter(value); return *this;}
295 
301  inline LoggingConfiguration& WithLoggingFilter(LoggingFilter&& value) { SetLoggingFilter(std::move(value)); return *this;}
302 
303  private:
304 
305  Aws::String m_resourceArn;
306  bool m_resourceArnHasBeenSet;
307 
308  Aws::Vector<Aws::String> m_logDestinationConfigs;
309  bool m_logDestinationConfigsHasBeenSet;
310 
311  Aws::Vector<FieldToMatch> m_redactedFields;
312  bool m_redactedFieldsHasBeenSet;
313 
314  bool m_managedByFirewallManager;
315  bool m_managedByFirewallManagerHasBeenSet;
316 
317  LoggingFilter m_loggingFilter;
318  bool m_loggingFilterHasBeenSet;
319  };
320 
321 } // namespace Model
322 } // namespace WAFV2
323 } // namespace Aws
Aws::WAFV2::Model::LoggingConfiguration::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: LoggingConfiguration.h:63
Aws::WAFV2::Model::LoggingConfiguration::SetLogDestinationConfigs
void SetLogDestinationConfigs(Aws::Vector< Aws::String > &&value)
Definition: LoggingConfiguration.h:118
Aws::WAFV2::Model::LoggingConfiguration::GetLoggingFilter
const LoggingFilter & GetLoggingFilter() const
Definition: LoggingConfiguration.h:266
Aws::WAFV2::Model::LoggingConfiguration::GetLogDestinationConfigs
const Aws::Vector< Aws::String > & GetLogDestinationConfigs() const
Definition: LoggingConfiguration.h:100
Aws::WAFV2::Model::LoggingConfiguration::SetLogDestinationConfigs
void SetLogDestinationConfigs(const Aws::Vector< Aws::String > &value)
Definition: LoggingConfiguration.h:112
Aws::WAFV2::Model::LoggingConfiguration::WithLoggingFilter
LoggingConfiguration & WithLoggingFilter(LoggingFilter &&value)
Definition: LoggingConfiguration.h:301
Aws::WAFV2::Model::LoggingConfiguration::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: LoggingConfiguration.h:57
Aws::WAFV2::Model::LoggingConfiguration::GetManagedByFirewallManager
bool GetManagedByFirewallManager() const
Definition: LoggingConfiguration.h:237
Aws::WAFV2::Model::LoggingConfiguration::AddLogDestinationConfigs
LoggingConfiguration & AddLogDestinationConfigs(const Aws::String &value)
Definition: LoggingConfiguration.h:136
Aws::WAFV2::Model::LoggingConfiguration::WithLogDestinationConfigs
LoggingConfiguration & WithLogDestinationConfigs(Aws::Vector< Aws::String > &&value)
Definition: LoggingConfiguration.h:130
LoggingFilter.h
Aws::WAFV2::Model::LoggingConfiguration::SetManagedByFirewallManager
void SetManagedByFirewallManager(bool value)
Definition: LoggingConfiguration.h:251
Aws::WAFV2::Model::LoggingConfiguration::RedactedFieldsHasBeenSet
bool RedactedFieldsHasBeenSet() const
Definition: LoggingConfiguration.h:169
Aws::WAFV2::Model::LoggingConfiguration::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: LoggingConfiguration.h:51
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::LoggingConfiguration::SetRedactedFields
void SetRedactedFields(Aws::Vector< FieldToMatch > &&value)
Definition: LoggingConfiguration.h:189
Aws::WAFV2::Model::LoggingConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::LoggingConfiguration::SetLoggingFilter
void SetLoggingFilter(LoggingFilter &&value)
Definition: LoggingConfiguration.h:287
AWSVector.h
Aws::WAFV2::Model::LoggingConfiguration::LogDestinationConfigsHasBeenSet
bool LogDestinationConfigsHasBeenSet() const
Definition: LoggingConfiguration.h:106
Aws::WAFV2::Model::LoggingConfiguration::WithLogDestinationConfigs
LoggingConfiguration & WithLogDestinationConfigs(const Aws::Vector< Aws::String > &value)
Definition: LoggingConfiguration.h:124
Aws::WAFV2::Model::LoggingConfiguration::GetRedactedFields
const Aws::Vector< FieldToMatch > & GetRedactedFields() const
Definition: LoggingConfiguration.h:159
WAFV2_EXPORTS.h
Aws::WAFV2::Model::LoggingConfiguration::SetLoggingFilter
void SetLoggingFilter(const LoggingFilter &value)
Definition: LoggingConfiguration.h:280
Aws::WAFV2::Model::LoggingConfiguration::AddLogDestinationConfigs
LoggingConfiguration & AddLogDestinationConfigs(const char *value)
Definition: LoggingConfiguration.h:148
Aws::WAFV2::Model::LoggingConfiguration::AddRedactedFields
LoggingConfiguration & AddRedactedFields(FieldToMatch &&value)
Definition: LoggingConfiguration.h:229
Aws::WAFV2::Model::LoggingConfiguration::WithRedactedFields
LoggingConfiguration & WithRedactedFields(const Aws::Vector< FieldToMatch > &value)
Definition: LoggingConfiguration.h:199
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::LoggingConfiguration::SetRedactedFields
void SetRedactedFields(const Aws::Vector< FieldToMatch > &value)
Definition: LoggingConfiguration.h:179
Aws::WAFV2::Model::LoggingConfiguration::WithResourceArn
LoggingConfiguration & WithResourceArn(Aws::String &&value)
Definition: LoggingConfiguration.h:87
Aws::WAFV2::Model::LoggingConfiguration
Definition: LoggingConfiguration.h:39
Aws::WAFV2::Model::LoggingConfiguration::operator=
LoggingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::LoggingConfiguration::WithResourceArn
LoggingConfiguration & WithResourceArn(const char *value)
Definition: LoggingConfiguration.h:93
Aws::WAFV2::Model::LoggingConfiguration::SetResourceArn
void SetResourceArn(const char *value)
Definition: LoggingConfiguration.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::LoggingConfiguration::LoggingConfiguration
LoggingConfiguration()
Aws::WAFV2::Model::LoggingConfiguration::WithResourceArn
LoggingConfiguration & WithResourceArn(const Aws::String &value)
Definition: LoggingConfiguration.h:81
Aws::WAFV2::Model::LoggingConfiguration::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: LoggingConfiguration.h:69
Aws::WAFV2::Model::LoggingConfiguration::WithLoggingFilter
LoggingConfiguration & WithLoggingFilter(const LoggingFilter &value)
Definition: LoggingConfiguration.h:294
FieldToMatch.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::LoggingConfiguration::WithManagedByFirewallManager
LoggingConfiguration & WithManagedByFirewallManager(bool value)
Definition: LoggingConfiguration.h:258
Aws::WAFV2::Model::LoggingConfiguration::ManagedByFirewallManagerHasBeenSet
bool ManagedByFirewallManagerHasBeenSet() const
Definition: LoggingConfiguration.h:244
Aws::WAFV2::Model::LoggingConfiguration::AddRedactedFields
LoggingConfiguration & AddRedactedFields(const FieldToMatch &value)
Definition: LoggingConfiguration.h:219
Aws::WAFV2::Model::FieldToMatch
Definition: FieldToMatch.h:48
Aws::WAFV2::Model::LoggingFilter
Definition: LoggingFilter.h:37
Aws::WAFV2::Model::LoggingConfiguration::AddLogDestinationConfigs
LoggingConfiguration & AddLogDestinationConfigs(Aws::String &&value)
Definition: LoggingConfiguration.h:142
Aws::WAFV2::Model::LoggingConfiguration::LoggingConfiguration
LoggingConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::LoggingConfiguration::LoggingFilterHasBeenSet
bool LoggingFilterHasBeenSet() const
Definition: LoggingConfiguration.h:273
Aws::WAFV2::Model::LoggingConfiguration::WithRedactedFields
LoggingConfiguration & WithRedactedFields(Aws::Vector< FieldToMatch > &&value)
Definition: LoggingConfiguration.h:209