AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsWafv2VisibilityConfigDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_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 SecurityHub
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SECURITYHUB_API AwsWafv2VisibilityConfigDetails() = default;
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
48 inline bool GetCloudWatchMetricsEnabled() const { return m_cloudWatchMetricsEnabled; }
49 inline bool CloudWatchMetricsEnabledHasBeenSet() const { return m_cloudWatchMetricsEnabledHasBeenSet; }
50 inline void SetCloudWatchMetricsEnabled(bool value) { m_cloudWatchMetricsEnabledHasBeenSet = true; m_cloudWatchMetricsEnabled = value; }
53
55
58 inline const Aws::String& GetMetricName() const { return m_metricName; }
59 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
60 template<typename MetricNameT = Aws::String>
61 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
62 template<typename MetricNameT = Aws::String>
63 AwsWafv2VisibilityConfigDetails& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
65
67
72 inline bool GetSampledRequestsEnabled() const { return m_sampledRequestsEnabled; }
73 inline bool SampledRequestsEnabledHasBeenSet() const { return m_sampledRequestsEnabledHasBeenSet; }
74 inline void SetSampledRequestsEnabled(bool value) { m_sampledRequestsEnabledHasBeenSet = true; m_sampledRequestsEnabled = value; }
77 private:
78
79 bool m_cloudWatchMetricsEnabled{false};
80 bool m_cloudWatchMetricsEnabledHasBeenSet = false;
81
82 Aws::String m_metricName;
83 bool m_metricNameHasBeenSet = false;
84
85 bool m_sampledRequestsEnabled{false};
86 bool m_sampledRequestsEnabledHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace SecurityHub
91} // namespace Aws
AWS_SECURITYHUB_API AwsWafv2VisibilityConfigDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsWafv2VisibilityConfigDetails & WithSampledRequestsEnabled(bool value)
AWS_SECURITYHUB_API AwsWafv2VisibilityConfigDetails()=default
AWS_SECURITYHUB_API AwsWafv2VisibilityConfigDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsWafv2VisibilityConfigDetails & WithMetricName(MetricNameT &&value)
AwsWafv2VisibilityConfigDetails & WithCloudWatchMetricsEnabled(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue