AWS SDK for C++  1.9.108
AWS SDK for C++
VisibilityConfig.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace WAFV2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
46  inline bool GetSampledRequestsEnabled() const{ return m_sampledRequestsEnabled; }
47 
53  inline bool SampledRequestsEnabledHasBeenSet() const { return m_sampledRequestsEnabledHasBeenSet; }
54 
60  inline void SetSampledRequestsEnabled(bool value) { m_sampledRequestsEnabledHasBeenSet = true; m_sampledRequestsEnabled = value; }
61 
67  inline VisibilityConfig& WithSampledRequestsEnabled(bool value) { SetSampledRequestsEnabled(value); return *this;}
68 
69 
76  inline bool GetCloudWatchMetricsEnabled() const{ return m_cloudWatchMetricsEnabled; }
77 
84  inline bool CloudWatchMetricsEnabledHasBeenSet() const { return m_cloudWatchMetricsEnabledHasBeenSet; }
85 
92  inline void SetCloudWatchMetricsEnabled(bool value) { m_cloudWatchMetricsEnabledHasBeenSet = true; m_cloudWatchMetricsEnabled = value; }
93 
100  inline VisibilityConfig& WithCloudWatchMetricsEnabled(bool value) { SetCloudWatchMetricsEnabled(value); return *this;}
101 
102 
109  inline const Aws::String& GetMetricName() const{ return m_metricName; }
110 
117  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
118 
125  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
126 
133  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
134 
141  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
142 
149  inline VisibilityConfig& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
150 
157  inline VisibilityConfig& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
158 
165  inline VisibilityConfig& WithMetricName(const char* value) { SetMetricName(value); return *this;}
166 
167  private:
168 
169  bool m_sampledRequestsEnabled;
170  bool m_sampledRequestsEnabledHasBeenSet;
171 
172  bool m_cloudWatchMetricsEnabled;
173  bool m_cloudWatchMetricsEnabledHasBeenSet;
174 
175  Aws::String m_metricName;
176  bool m_metricNameHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace WAFV2
181 } // namespace Aws
Aws::WAFV2::Model::VisibilityConfig::SampledRequestsEnabledHasBeenSet
bool SampledRequestsEnabledHasBeenSet() const
Definition: VisibilityConfig.h:53
Aws::WAFV2::Model::VisibilityConfig::WithMetricName
VisibilityConfig & WithMetricName(Aws::String &&value)
Definition: VisibilityConfig.h:157
Aws::WAFV2::Model::VisibilityConfig::VisibilityConfig
VisibilityConfig()
Aws::WAFV2::Model::VisibilityConfig::SetSampledRequestsEnabled
void SetSampledRequestsEnabled(bool value)
Definition: VisibilityConfig.h:60
Aws::WAFV2::Model::VisibilityConfig::CloudWatchMetricsEnabledHasBeenSet
bool CloudWatchMetricsEnabledHasBeenSet() const
Definition: VisibilityConfig.h:84
Aws::WAFV2::Model::VisibilityConfig::VisibilityConfig
VisibilityConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::VisibilityConfig::GetMetricName
const Aws::String & GetMetricName() const
Definition: VisibilityConfig.h:109
Aws::WAFV2::Model::VisibilityConfig
Definition: VisibilityConfig.h:33
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::VisibilityConfig::WithMetricName
VisibilityConfig & WithMetricName(const Aws::String &value)
Definition: VisibilityConfig.h:149
WAFV2_EXPORTS.h
Aws::WAFV2::Model::VisibilityConfig::operator=
VisibilityConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::VisibilityConfig::GetSampledRequestsEnabled
bool GetSampledRequestsEnabled() const
Definition: VisibilityConfig.h:46
Aws::WAFV2::Model::VisibilityConfig::GetCloudWatchMetricsEnabled
bool GetCloudWatchMetricsEnabled() const
Definition: VisibilityConfig.h:76
Aws::WAFV2::Model::VisibilityConfig::WithMetricName
VisibilityConfig & WithMetricName(const char *value)
Definition: VisibilityConfig.h:165
Aws::WAFV2::Model::VisibilityConfig::WithSampledRequestsEnabled
VisibilityConfig & WithSampledRequestsEnabled(bool value)
Definition: VisibilityConfig.h:67
Aws::WAFV2::Model::VisibilityConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::VisibilityConfig::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: VisibilityConfig.h:117
Aws::WAFV2::Model::VisibilityConfig::WithCloudWatchMetricsEnabled
VisibilityConfig & WithCloudWatchMetricsEnabled(bool value)
Definition: VisibilityConfig.h:100
Aws::WAFV2::Model::VisibilityConfig::SetMetricName
void SetMetricName(Aws::String &&value)
Definition: VisibilityConfig.h:133
Aws::WAFV2::Model::VisibilityConfig::SetCloudWatchMetricsEnabled
void SetCloudWatchMetricsEnabled(bool value)
Definition: VisibilityConfig.h:92
Aws::WAFV2::Model::VisibilityConfig::SetMetricName
void SetMetricName(const char *value)
Definition: VisibilityConfig.h:141
Aws::WAFV2::Model::VisibilityConfig::SetMetricName
void SetMetricName(const Aws::String &value)
Definition: VisibilityConfig.h:125
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97