AWS SDK for C++  1.9.71
AWS SDK for C++
LoggingConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/waf/WAF_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace WAF
24 {
25 namespace Model
26 {
27 
43  {
44  public:
49 
50 
55  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
56 
61  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
62 
67  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
68 
73  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
74 
79  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
80 
85  inline LoggingConfiguration& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
86 
91  inline LoggingConfiguration& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
92 
97  inline LoggingConfiguration& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
98 
99 
103  inline const Aws::Vector<Aws::String>& GetLogDestinationConfigs() const{ return m_logDestinationConfigs; }
104 
108  inline bool LogDestinationConfigsHasBeenSet() const { return m_logDestinationConfigsHasBeenSet; }
109 
113  inline void SetLogDestinationConfigs(const Aws::Vector<Aws::String>& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs = value; }
114 
118  inline void SetLogDestinationConfigs(Aws::Vector<Aws::String>&& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs = std::move(value); }
119 
123  inline LoggingConfiguration& WithLogDestinationConfigs(const Aws::Vector<Aws::String>& value) { SetLogDestinationConfigs(value); return *this;}
124 
128  inline LoggingConfiguration& WithLogDestinationConfigs(Aws::Vector<Aws::String>&& value) { SetLogDestinationConfigs(std::move(value)); return *this;}
129 
133  inline LoggingConfiguration& AddLogDestinationConfigs(const Aws::String& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.push_back(value); return *this; }
134 
138  inline LoggingConfiguration& AddLogDestinationConfigs(Aws::String&& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.push_back(std::move(value)); return *this; }
139 
143  inline LoggingConfiguration& AddLogDestinationConfigs(const char* value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.push_back(value); return *this; }
144 
145 
151  inline const Aws::Vector<FieldToMatch>& GetRedactedFields() const{ return m_redactedFields; }
152 
158  inline bool RedactedFieldsHasBeenSet() const { return m_redactedFieldsHasBeenSet; }
159 
165  inline void SetRedactedFields(const Aws::Vector<FieldToMatch>& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields = value; }
166 
172  inline void SetRedactedFields(Aws::Vector<FieldToMatch>&& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields = std::move(value); }
173 
179  inline LoggingConfiguration& WithRedactedFields(const Aws::Vector<FieldToMatch>& value) { SetRedactedFields(value); return *this;}
180 
186  inline LoggingConfiguration& WithRedactedFields(Aws::Vector<FieldToMatch>&& value) { SetRedactedFields(std::move(value)); return *this;}
187 
193  inline LoggingConfiguration& AddRedactedFields(const FieldToMatch& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields.push_back(value); return *this; }
194 
200  inline LoggingConfiguration& AddRedactedFields(FieldToMatch&& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields.push_back(std::move(value)); return *this; }
201 
202  private:
203 
204  Aws::String m_resourceArn;
205  bool m_resourceArnHasBeenSet;
206 
207  Aws::Vector<Aws::String> m_logDestinationConfigs;
208  bool m_logDestinationConfigsHasBeenSet;
209 
210  Aws::Vector<FieldToMatch> m_redactedFields;
211  bool m_redactedFieldsHasBeenSet;
212  };
213 
214 } // namespace Model
215 } // namespace WAF
216 } // namespace Aws
Aws::WAF::Model::LoggingConfiguration::LogDestinationConfigsHasBeenSet
bool LogDestinationConfigsHasBeenSet() const
Definition: LoggingConfiguration.h:108
Aws::WAF::Model::LoggingConfiguration::GetRedactedFields
const Aws::Vector< FieldToMatch > & GetRedactedFields() const
Definition: LoggingConfiguration.h:151
Aws::WAF::Model::LoggingConfiguration::WithResourceArn
LoggingConfiguration & WithResourceArn(const char *value)
Definition: LoggingConfiguration.h:97
Aws::WAF::Model::LoggingConfiguration
Definition: LoggingConfiguration.h:43
Aws::WAF::Model::LoggingConfiguration::WithRedactedFields
LoggingConfiguration & WithRedactedFields(Aws::Vector< FieldToMatch > &&value)
Definition: LoggingConfiguration.h:186
Aws::WAF::Model::LoggingConfiguration::AddLogDestinationConfigs
LoggingConfiguration & AddLogDestinationConfigs(Aws::String &&value)
Definition: LoggingConfiguration.h:138
Aws::WAF::Model::LoggingConfiguration::WithLogDestinationConfigs
LoggingConfiguration & WithLogDestinationConfigs(const Aws::Vector< Aws::String > &value)
Definition: LoggingConfiguration.h:123
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAF::Model::LoggingConfiguration::WithRedactedFields
LoggingConfiguration & WithRedactedFields(const Aws::Vector< FieldToMatch > &value)
Definition: LoggingConfiguration.h:179
AWSVector.h
Aws::WAF::Model::LoggingConfiguration::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: LoggingConfiguration.h:73
Aws::WAF::Model::LoggingConfiguration::WithLogDestinationConfigs
LoggingConfiguration & WithLogDestinationConfigs(Aws::Vector< Aws::String > &&value)
Definition: LoggingConfiguration.h:128
Aws::WAF::Model::LoggingConfiguration::AddRedactedFields
LoggingConfiguration & AddRedactedFields(const FieldToMatch &value)
Definition: LoggingConfiguration.h:193
Aws::WAF::Model::LoggingConfiguration::GetLogDestinationConfigs
const Aws::Vector< Aws::String > & GetLogDestinationConfigs() const
Definition: LoggingConfiguration.h:103
Aws::WAF::Model::LoggingConfiguration::WithResourceArn
LoggingConfiguration & WithResourceArn(Aws::String &&value)
Definition: LoggingConfiguration.h:91
Aws::WAF::Model::LoggingConfiguration::LoggingConfiguration
LoggingConfiguration()
Aws::WAF::Model::LoggingConfiguration::AddRedactedFields
LoggingConfiguration & AddRedactedFields(FieldToMatch &&value)
Definition: LoggingConfiguration.h:200
Aws::WAF::Model::LoggingConfiguration::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: LoggingConfiguration.h:61
Aws::WAF::Model::LoggingConfiguration::operator=
LoggingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAF::Model::LoggingConfiguration::LoggingConfiguration
LoggingConfiguration(Aws::Utils::Json::JsonView jsonValue)
FieldToMatch.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::WAF::Model::LoggingConfiguration::WithResourceArn
LoggingConfiguration & WithResourceArn(const Aws::String &value)
Definition: LoggingConfiguration.h:85
Aws::WAF::Model::LoggingConfiguration::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: LoggingConfiguration.h:67
Aws::WAF::Model::LoggingConfiguration::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: LoggingConfiguration.h:55
Aws::WAF::Model::LoggingConfiguration::SetLogDestinationConfigs
void SetLogDestinationConfigs(Aws::Vector< Aws::String > &&value)
Definition: LoggingConfiguration.h:118
WAF_EXPORTS.h
Aws::WAF::Model::LoggingConfiguration::SetRedactedFields
void SetRedactedFields(const Aws::Vector< FieldToMatch > &value)
Definition: LoggingConfiguration.h:165
Aws::WAF::Model::LoggingConfiguration::SetRedactedFields
void SetRedactedFields(Aws::Vector< FieldToMatch > &&value)
Definition: LoggingConfiguration.h:172
Aws::WAF::Model::LoggingConfiguration::SetLogDestinationConfigs
void SetLogDestinationConfigs(const Aws::Vector< Aws::String > &value)
Definition: LoggingConfiguration.h:113
Aws
Definition: AccessManagementClient.h:15
Aws::WAF::Model::LoggingConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAF::Model::LoggingConfiguration::AddLogDestinationConfigs
LoggingConfiguration & AddLogDestinationConfigs(const char *value)
Definition: LoggingConfiguration.h:143
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAF::Model::LoggingConfiguration::SetResourceArn
void SetResourceArn(const char *value)
Definition: LoggingConfiguration.h:79
Aws::WAF::Model::FieldToMatch
Definition: FieldToMatch.h:41
Aws::WAF::Model::LoggingConfiguration::AddLogDestinationConfigs
LoggingConfiguration & AddLogDestinationConfigs(const Aws::String &value)
Definition: LoggingConfiguration.h:133
Aws::WAF::Model::LoggingConfiguration::RedactedFieldsHasBeenSet
bool RedactedFieldsHasBeenSet() const
Definition: LoggingConfiguration.h:158