AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AwsWafv2VisibilityConfigDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
29 public:
30 AWS_SECURITYHUB_API AwsWafv2VisibilityConfigDetails() = default;
33 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
42 inline bool GetCloudWatchMetricsEnabled() const { return m_cloudWatchMetricsEnabled; }
43 inline bool CloudWatchMetricsEnabledHasBeenSet() const { return m_cloudWatchMetricsEnabledHasBeenSet; }
44 inline void SetCloudWatchMetricsEnabled(bool value) {
45 m_cloudWatchMetricsEnabledHasBeenSet = true;
46 m_cloudWatchMetricsEnabled = value;
47 }
50 return *this;
51 }
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) {
62 m_metricNameHasBeenSet = true;
63 m_metricName = std::forward<MetricNameT>(value);
64 }
65 template <typename MetricNameT = Aws::String>
67 SetMetricName(std::forward<MetricNameT>(value));
68 return *this;
69 }
71
73
78 inline bool GetSampledRequestsEnabled() const { return m_sampledRequestsEnabled; }
79 inline bool SampledRequestsEnabledHasBeenSet() const { return m_sampledRequestsEnabledHasBeenSet; }
80 inline void SetSampledRequestsEnabled(bool value) {
81 m_sampledRequestsEnabledHasBeenSet = true;
82 m_sampledRequestsEnabled = value;
83 }
86 return *this;
87 }
89 private:
90 bool m_cloudWatchMetricsEnabled{false};
91
92 Aws::String m_metricName;
93
94 bool m_sampledRequestsEnabled{false};
95 bool m_cloudWatchMetricsEnabledHasBeenSet = false;
96 bool m_metricNameHasBeenSet = false;
97 bool m_sampledRequestsEnabledHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace SecurityHub
102} // 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