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/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/waf-regional/model/FieldToMatch.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WAFRegional
24{
25namespace Model
26{
27
43 {
44 public:
45 AWS_WAFREGIONAL_API LoggingConfiguration();
46 AWS_WAFREGIONAL_API LoggingConfiguration(Aws::Utils::Json::JsonView jsonValue);
48 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
56 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
57 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
58 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
59 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
60 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
61 inline LoggingConfiguration& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
62 inline LoggingConfiguration& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
63 inline LoggingConfiguration& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
65
67
70 inline const Aws::Vector<Aws::String>& GetLogDestinationConfigs() const{ return m_logDestinationConfigs; }
71 inline bool LogDestinationConfigsHasBeenSet() const { return m_logDestinationConfigsHasBeenSet; }
72 inline void SetLogDestinationConfigs(const Aws::Vector<Aws::String>& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs = value; }
73 inline void SetLogDestinationConfigs(Aws::Vector<Aws::String>&& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs = std::move(value); }
76 inline LoggingConfiguration& AddLogDestinationConfigs(const Aws::String& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.push_back(value); return *this; }
77 inline LoggingConfiguration& AddLogDestinationConfigs(Aws::String&& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.push_back(std::move(value)); return *this; }
78 inline LoggingConfiguration& AddLogDestinationConfigs(const char* value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.push_back(value); return *this; }
80
82
87 inline const Aws::Vector<FieldToMatch>& GetRedactedFields() const{ return m_redactedFields; }
88 inline bool RedactedFieldsHasBeenSet() const { return m_redactedFieldsHasBeenSet; }
89 inline void SetRedactedFields(const Aws::Vector<FieldToMatch>& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields = value; }
90 inline void SetRedactedFields(Aws::Vector<FieldToMatch>&& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields = std::move(value); }
92 inline LoggingConfiguration& WithRedactedFields(Aws::Vector<FieldToMatch>&& value) { SetRedactedFields(std::move(value)); return *this;}
93 inline LoggingConfiguration& AddRedactedFields(const FieldToMatch& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields.push_back(value); return *this; }
94 inline LoggingConfiguration& AddRedactedFields(FieldToMatch&& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields.push_back(std::move(value)); return *this; }
96 private:
97
98 Aws::String m_resourceArn;
99 bool m_resourceArnHasBeenSet = false;
100
101 Aws::Vector<Aws::String> m_logDestinationConfigs;
102 bool m_logDestinationConfigsHasBeenSet = false;
103
104 Aws::Vector<FieldToMatch> m_redactedFields;
105 bool m_redactedFieldsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace WAFRegional
110} // namespace Aws
LoggingConfiguration & AddRedactedFields(const FieldToMatch &value)
LoggingConfiguration & AddLogDestinationConfigs(Aws::String &&value)
void SetRedactedFields(const Aws::Vector< FieldToMatch > &value)
LoggingConfiguration & WithRedactedFields(const Aws::Vector< FieldToMatch > &value)
const Aws::Vector< FieldToMatch > & GetRedactedFields() const
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFREGIONAL_API LoggingConfiguration(Aws::Utils::Json::JsonView jsonValue)
LoggingConfiguration & WithResourceArn(const char *value)
void SetLogDestinationConfigs(const Aws::Vector< Aws::String > &value)
LoggingConfiguration & WithRedactedFields(Aws::Vector< FieldToMatch > &&value)
LoggingConfiguration & AddLogDestinationConfigs(const char *value)
LoggingConfiguration & WithResourceArn(const Aws::String &value)
LoggingConfiguration & WithResourceArn(Aws::String &&value)
void SetRedactedFields(Aws::Vector< FieldToMatch > &&value)
LoggingConfiguration & WithLogDestinationConfigs(Aws::Vector< Aws::String > &&value)
AWS_WAFREGIONAL_API LoggingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
LoggingConfiguration & AddLogDestinationConfigs(const Aws::String &value)
const Aws::Vector< Aws::String > & GetLogDestinationConfigs() const
void SetLogDestinationConfigs(Aws::Vector< Aws::String > &&value)
LoggingConfiguration & WithLogDestinationConfigs(const Aws::Vector< Aws::String > &value)
LoggingConfiguration & AddRedactedFields(FieldToMatch &&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