AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
38 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
50 inline bool GetSampledRequestsEnabled() const{ return m_sampledRequestsEnabled; }
51 inline bool SampledRequestsEnabledHasBeenSet() const { return m_sampledRequestsEnabledHasBeenSet; }
52 inline void SetSampledRequestsEnabled(bool value) { m_sampledRequestsEnabledHasBeenSet = true; m_sampledRequestsEnabled = value; }
53 inline VisibilityConfig& WithSampledRequestsEnabled(bool value) { SetSampledRequestsEnabled(value); return *this;}
55
57
68 inline bool GetCloudWatchMetricsEnabled() const{ return m_cloudWatchMetricsEnabled; }
69 inline bool CloudWatchMetricsEnabledHasBeenSet() const { return m_cloudWatchMetricsEnabledHasBeenSet; }
70 inline void SetCloudWatchMetricsEnabled(bool value) { m_cloudWatchMetricsEnabledHasBeenSet = true; m_cloudWatchMetricsEnabled = value; }
73
75
82 inline const Aws::String& GetMetricName() const{ return m_metricName; }
83 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
84 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
85 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
86 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
87 inline VisibilityConfig& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
88 inline VisibilityConfig& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
89 inline VisibilityConfig& WithMetricName(const char* value) { SetMetricName(value); return *this;}
91 private:
92
93 bool m_sampledRequestsEnabled;
94 bool m_sampledRequestsEnabledHasBeenSet = false;
95
96 bool m_cloudWatchMetricsEnabled;
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
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 & WithMetricName(const char *value)
VisibilityConfig & WithSampledRequestsEnabled(bool value)
VisibilityConfig & WithMetricName(const Aws::String &value)
void SetMetricName(Aws::String &&value)
VisibilityConfig & WithMetricName(Aws::String &&value)
void SetMetricName(const Aws::String &value)
VisibilityConfig & WithCloudWatchMetricsEnabled(bool value)
void SetMetricName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue