AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ResourceArnT = Aws::String>
59 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
60 template<typename ResourceArnT = Aws::String>
61 LoggingConfiguration& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
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) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs = std::forward<LogDestinationConfigsT>(value); }
72 template<typename LogDestinationConfigsT = Aws::Vector<Aws::String>>
73 LoggingConfiguration& WithLogDestinationConfigs(LogDestinationConfigsT&& value) { SetLogDestinationConfigs(std::forward<LogDestinationConfigsT>(value)); return *this;}
74 template<typename LogDestinationConfigsT = Aws::String>
75 LoggingConfiguration& AddLogDestinationConfigs(LogDestinationConfigsT&& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.emplace_back(std::forward<LogDestinationConfigsT>(value)); return *this; }
77
79
84 inline const Aws::Vector<FieldToMatch>& GetRedactedFields() const { return m_redactedFields; }
85 inline bool RedactedFieldsHasBeenSet() const { return m_redactedFieldsHasBeenSet; }
86 template<typename RedactedFieldsT = Aws::Vector<FieldToMatch>>
87 void SetRedactedFields(RedactedFieldsT&& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields = std::forward<RedactedFieldsT>(value); }
88 template<typename RedactedFieldsT = Aws::Vector<FieldToMatch>>
89 LoggingConfiguration& WithRedactedFields(RedactedFieldsT&& value) { SetRedactedFields(std::forward<RedactedFieldsT>(value)); return *this;}
90 template<typename RedactedFieldsT = FieldToMatch>
91 LoggingConfiguration& AddRedactedFields(RedactedFieldsT&& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields.emplace_back(std::forward<RedactedFieldsT>(value)); return *this; }
93 private:
94
95 Aws::String m_resourceArn;
96 bool m_resourceArnHasBeenSet = false;
97
98 Aws::Vector<Aws::String> m_logDestinationConfigs;
99 bool m_logDestinationConfigsHasBeenSet = false;
100
101 Aws::Vector<FieldToMatch> m_redactedFields;
102 bool m_redactedFieldsHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace WAFRegional
107} // namespace Aws
LoggingConfiguration & AddRedactedFields(RedactedFieldsT &&value)
LoggingConfiguration & AddLogDestinationConfigs(LogDestinationConfigsT &&value)
const Aws::Vector< FieldToMatch > & GetRedactedFields() const
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
LoggingConfiguration & WithRedactedFields(RedactedFieldsT &&value)
AWS_WAFREGIONAL_API LoggingConfiguration(Aws::Utils::Json::JsonView jsonValue)
LoggingConfiguration & WithResourceArn(ResourceArnT &&value)
AWS_WAFREGIONAL_API LoggingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetLogDestinationConfigs() const
AWS_WAFREGIONAL_API LoggingConfiguration()=default
void SetLogDestinationConfigs(LogDestinationConfigsT &&value)
LoggingConfiguration & WithLogDestinationConfigs(LogDestinationConfigsT &&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