AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VisibilityConfig.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAFV2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_WAFV2_API VisibilityConfig() = default;
38 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
52 inline bool GetSampledRequestsEnabled() const { return m_sampledRequestsEnabled; }
53 inline bool SampledRequestsEnabledHasBeenSet() const { return m_sampledRequestsEnabledHasBeenSet; }
54 inline void SetSampledRequestsEnabled(bool value) { m_sampledRequestsEnabledHasBeenSet = true; m_sampledRequestsEnabled = value; }
55 inline VisibilityConfig& WithSampledRequestsEnabled(bool value) { SetSampledRequestsEnabled(value); return *this;}
57
59
70 inline bool GetCloudWatchMetricsEnabled() const { return m_cloudWatchMetricsEnabled; }
71 inline bool CloudWatchMetricsEnabledHasBeenSet() const { return m_cloudWatchMetricsEnabledHasBeenSet; }
72 inline void SetCloudWatchMetricsEnabled(bool value) { m_cloudWatchMetricsEnabledHasBeenSet = true; m_cloudWatchMetricsEnabled = value; }
75
77
84 inline const Aws::String& GetMetricName() const { return m_metricName; }
85 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
86 template<typename MetricNameT = Aws::String>
87 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
88 template<typename MetricNameT = Aws::String>
89 VisibilityConfig& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
91 private:
92
93 bool m_sampledRequestsEnabled{false};
94 bool m_sampledRequestsEnabledHasBeenSet = false;
95
96 bool m_cloudWatchMetricsEnabled{false};
97 bool m_cloudWatchMetricsEnabledHasBeenSet = false;
98
99 Aws::String m_metricName;
100 bool m_metricNameHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace WAFV2
105} // namespace Aws
VisibilityConfig & WithMetricName(MetricNameT &&value)
void SetMetricName(MetricNameT &&value)
AWS_WAFV2_API VisibilityConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMetricName() const
AWS_WAFV2_API VisibilityConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
VisibilityConfig & WithSampledRequestsEnabled(bool value)
AWS_WAFV2_API VisibilityConfig()=default
VisibilityConfig & WithCloudWatchMetricsEnabled(bool value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue