@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 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 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 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 name of the CloudWatch metric. The name can contain only the characters: A-Z, a-z, 0-9, - (hyphen), and _ (underscore). The name can be from one to 128 characters long. It can't contain whitespace or metric names reserved for AWS WAF, for example "All" and "Default_Action."
metricName
- A name of the CloudWatch metric. The name can contain only the characters: A-Z, a-z, 0-9, - (hyphen), and
_ (underscore). The name can be from one to 128 characters long. It can't contain whitespace or metric
names reserved for AWS WAF, for example "All" and "Default_Action."public String getMetricName()
A name of the CloudWatch metric. The name can contain only the characters: A-Z, a-z, 0-9, - (hyphen), and _ (underscore). The name can be from one to 128 characters long. It can't contain whitespace or metric names reserved for AWS WAF, for example "All" and "Default_Action."
public VisibilityConfig withMetricName(String metricName)
A name of the CloudWatch metric. The name can contain only the characters: A-Z, a-z, 0-9, - (hyphen), and _ (underscore). The name can be from one to 128 characters long. It can't contain whitespace or metric names reserved for AWS WAF, for example "All" and "Default_Action."
metricName
- A name of the CloudWatch metric. The name can contain only the characters: A-Z, a-z, 0-9, - (hyphen), and
_ (underscore). The name can be from one to 128 characters long. It can't contain whitespace or metric
names reserved for AWS WAF, for example "All" and "Default_Action."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.