@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VisibilityConfig extends Object implements Serializable, Cloneable, StructuredPojo
This is the latest version of AWS WAF, named AWS WAFV2, released in November, 2019. For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF Developer Guide.
Defines and enables Amazon CloudWatch metrics and web request sample collection.
Constructor and Description |
---|
VisibilityConfig() |
Modifier and Type | Method and Description |
---|---|
VisibilityConfig |
clone() |
boolean |
equals(Object obj) |
Boolean |
getCloudWatchMetricsEnabled()
A boolean indicating whether the associated resource sends metrics to CloudWatch.
|
String |
getMetricName()
A friendly name of the CloudWatch metric.
|
Boolean |
getSampledRequestsEnabled()
A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules.
|
int |
hashCode() |
Boolean |
isCloudWatchMetricsEnabled()
A boolean indicating whether the associated resource sends metrics to CloudWatch.
|
Boolean |
isSampledRequestsEnabled()
A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCloudWatchMetricsEnabled(Boolean cloudWatchMetricsEnabled)
A boolean indicating whether the associated resource sends metrics to CloudWatch.
|
void |
setMetricName(String metricName)
A friendly name of the CloudWatch metric.
|
void |
setSampledRequestsEnabled(Boolean sampledRequestsEnabled)
A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules.
|
String |
toString()
Returns a string representation of this object.
|
VisibilityConfig |
withCloudWatchMetricsEnabled(Boolean cloudWatchMetricsEnabled)
A boolean indicating whether the associated resource sends metrics to CloudWatch.
|
VisibilityConfig |
withMetricName(String metricName)
A friendly name of the CloudWatch metric.
|
VisibilityConfig |
withSampledRequestsEnabled(Boolean sampledRequestsEnabled)
A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules.
|
public void setSampledRequestsEnabled(Boolean sampledRequestsEnabled)
A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console.
sampledRequestsEnabled
- A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You
can view the sampled requests through the AWS WAF console.public Boolean getSampledRequestsEnabled()
A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console.
public VisibilityConfig withSampledRequestsEnabled(Boolean sampledRequestsEnabled)
A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console.
sampledRequestsEnabled
- A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You
can view the sampled requests through the AWS WAF console.public Boolean isSampledRequestsEnabled()
A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console.
public void setCloudWatchMetricsEnabled(Boolean cloudWatchMetricsEnabled)
A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see AWS WAF Metrics.
cloudWatchMetricsEnabled
- A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of
available metrics, see AWS
WAF Metrics.public Boolean getCloudWatchMetricsEnabled()
A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see AWS WAF Metrics.
public VisibilityConfig withCloudWatchMetricsEnabled(Boolean cloudWatchMetricsEnabled)
A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see AWS WAF Metrics.
cloudWatchMetricsEnabled
- A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of
available metrics, see AWS
WAF Metrics.public Boolean isCloudWatchMetricsEnabled()
A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see AWS WAF Metrics.
public void setMetricName(String metricName)
A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with
length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example
"All" and "Default_Action." You can't change a MetricName
after you create a
VisibilityConfig
.
metricName
- A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z,
0-9), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS
WAF, for example "All" and "Default_Action." You can't change a MetricName
after you create a
VisibilityConfig
.public String getMetricName()
A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with
length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example
"All" and "Default_Action." You can't change a MetricName
after you create a
VisibilityConfig
.
MetricName
after you
create a VisibilityConfig
.public VisibilityConfig withMetricName(String metricName)
A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with
length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example
"All" and "Default_Action." You can't change a MetricName
after you create a
VisibilityConfig
.
metricName
- A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z,
0-9), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS
WAF, for example "All" and "Default_Action." You can't change a MetricName
after you create a
VisibilityConfig
.public String toString()
toString
in class Object
Object.toString()
public VisibilityConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.