AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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/waf/WAF_EXPORTS.h>
10#include <aws/waf/model/FieldToMatch.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAF {
22namespace Model {
23
39 public:
40 AWS_WAF_API LoggingConfiguration() = default;
44
46
50 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
51 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
52 template <typename ResourceArnT = Aws::String>
53 void SetResourceArn(ResourceArnT&& value) {
54 m_resourceArnHasBeenSet = true;
55 m_resourceArn = std::forward<ResourceArnT>(value);
56 }
57 template <typename ResourceArnT = Aws::String>
58 LoggingConfiguration& WithResourceArn(ResourceArnT&& value) {
59 SetResourceArn(std::forward<ResourceArnT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::Vector<Aws::String>& GetLogDestinationConfigs() const { return m_logDestinationConfigs; }
69 inline bool LogDestinationConfigsHasBeenSet() const { return m_logDestinationConfigsHasBeenSet; }
70 template <typename LogDestinationConfigsT = Aws::Vector<Aws::String>>
71 void SetLogDestinationConfigs(LogDestinationConfigsT&& value) {
72 m_logDestinationConfigsHasBeenSet = true;
73 m_logDestinationConfigs = std::forward<LogDestinationConfigsT>(value);
74 }
75 template <typename LogDestinationConfigsT = Aws::Vector<Aws::String>>
76 LoggingConfiguration& WithLogDestinationConfigs(LogDestinationConfigsT&& value) {
77 SetLogDestinationConfigs(std::forward<LogDestinationConfigsT>(value));
78 return *this;
79 }
80 template <typename LogDestinationConfigsT = Aws::String>
81 LoggingConfiguration& AddLogDestinationConfigs(LogDestinationConfigsT&& value) {
82 m_logDestinationConfigsHasBeenSet = true;
83 m_logDestinationConfigs.emplace_back(std::forward<LogDestinationConfigsT>(value));
84 return *this;
85 }
87
89
94 inline const Aws::Vector<FieldToMatch>& GetRedactedFields() const { return m_redactedFields; }
95 inline bool RedactedFieldsHasBeenSet() const { return m_redactedFieldsHasBeenSet; }
96 template <typename RedactedFieldsT = Aws::Vector<FieldToMatch>>
97 void SetRedactedFields(RedactedFieldsT&& value) {
98 m_redactedFieldsHasBeenSet = true;
99 m_redactedFields = std::forward<RedactedFieldsT>(value);
100 }
101 template <typename RedactedFieldsT = Aws::Vector<FieldToMatch>>
102 LoggingConfiguration& WithRedactedFields(RedactedFieldsT&& value) {
103 SetRedactedFields(std::forward<RedactedFieldsT>(value));
104 return *this;
105 }
106 template <typename RedactedFieldsT = FieldToMatch>
107 LoggingConfiguration& AddRedactedFields(RedactedFieldsT&& value) {
108 m_redactedFieldsHasBeenSet = true;
109 m_redactedFields.emplace_back(std::forward<RedactedFieldsT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_resourceArn;
115
116 Aws::Vector<Aws::String> m_logDestinationConfigs;
117
118 Aws::Vector<FieldToMatch> m_redactedFields;
119 bool m_resourceArnHasBeenSet = false;
120 bool m_logDestinationConfigsHasBeenSet = false;
121 bool m_redactedFieldsHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace WAF
126} // namespace Aws
LoggingConfiguration & WithResourceArn(ResourceArnT &&value)
LoggingConfiguration & AddLogDestinationConfigs(LogDestinationConfigsT &&value)
void SetResourceArn(ResourceArnT &&value)
void SetLogDestinationConfigs(LogDestinationConfigsT &&value)
void SetRedactedFields(RedactedFieldsT &&value)
const Aws::String & GetResourceArn() const
LoggingConfiguration & WithLogDestinationConfigs(LogDestinationConfigsT &&value)
AWS_WAF_API LoggingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
LoggingConfiguration & AddRedactedFields(RedactedFieldsT &&value)
AWS_WAF_API LoggingConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetLogDestinationConfigs() const
const Aws::Vector< FieldToMatch > & GetRedactedFields() const
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAF_API LoggingConfiguration()=default
LoggingConfiguration & WithRedactedFields(RedactedFieldsT &&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