AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
61 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
62 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
63 inline AwsWafv2VisibilityConfigDetails& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
64 inline AwsWafv2VisibilityConfigDetails& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
65 inline AwsWafv2VisibilityConfigDetails& WithMetricName(const char* value) { SetMetricName(value); return *this;}
67
69
74 inline bool GetSampledRequestsEnabled() const{ return m_sampledRequestsEnabled; }
75 inline bool SampledRequestsEnabledHasBeenSet() const { return m_sampledRequestsEnabledHasBeenSet; }
76 inline void SetSampledRequestsEnabled(bool value) { m_sampledRequestsEnabledHasBeenSet = true; m_sampledRequestsEnabled = value; }
79 private:
80
81 bool m_cloudWatchMetricsEnabled;
82 bool m_cloudWatchMetricsEnabledHasBeenSet = false;
83
84 Aws::String m_metricName;
85 bool m_metricNameHasBeenSet = false;
86
87 bool m_sampledRequestsEnabled;
88 bool m_sampledRequestsEnabledHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace SecurityHub
93} // namespace Aws
AWS_SECURITYHUB_API AwsWafv2VisibilityConfigDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsWafv2VisibilityConfigDetails & WithSampledRequestsEnabled(bool value)
AWS_SECURITYHUB_API AwsWafv2VisibilityConfigDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsWafv2VisibilityConfigDetails & WithMetricName(const char *value)
AwsWafv2VisibilityConfigDetails & WithMetricName(const Aws::String &value)
AwsWafv2VisibilityConfigDetails & WithCloudWatchMetricsEnabled(bool value)
AwsWafv2VisibilityConfigDetails & WithMetricName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue