@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VisibilityConfig extends Object implements Serializable, Cloneable, StructuredPojo
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()
Indicates whether the associated resource sends metrics to Amazon CloudWatch.
|
String |
getMetricName()
A name of the Amazon CloudWatch metric dimension.
|
Boolean |
getSampledRequestsEnabled()
Indicates whether WAF should store a sampling of the web requests that match the rules.
|
int |
hashCode() |
Boolean |
isCloudWatchMetricsEnabled()
Indicates whether the associated resource sends metrics to Amazon CloudWatch.
|
Boolean |
isSampledRequestsEnabled()
Indicates whether 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)
Indicates whether the associated resource sends metrics to Amazon CloudWatch.
|
void |
setMetricName(String metricName)
A name of the Amazon CloudWatch metric dimension.
|
void |
setSampledRequestsEnabled(Boolean sampledRequestsEnabled)
Indicates whether 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)
Indicates whether the associated resource sends metrics to Amazon CloudWatch.
|
VisibilityConfig |
withMetricName(String metricName)
A name of the Amazon CloudWatch metric dimension.
|
VisibilityConfig |
withSampledRequestsEnabled(Boolean sampledRequestsEnabled)
Indicates whether WAF should store a sampling of the web requests that match the rules.
|
public void setSampledRequestsEnabled(Boolean sampledRequestsEnabled)
Indicates whether WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the WAF console.
Request sampling doesn't provide a field redaction option, and any field redaction that you specify in your logging configuration doesn't affect sampling. The only way to exclude fields from request sampling is by disabling sampling in the web ACL visibility configuration.
sampledRequestsEnabled
- Indicates whether WAF should store a sampling of the web requests that match the rules. You can view the
sampled requests through the WAF console. Request sampling doesn't provide a field redaction option, and any field redaction that you specify in your logging configuration doesn't affect sampling. The only way to exclude fields from request sampling is by disabling sampling in the web ACL visibility configuration.
public Boolean getSampledRequestsEnabled()
Indicates whether WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the WAF console.
Request sampling doesn't provide a field redaction option, and any field redaction that you specify in your logging configuration doesn't affect sampling. The only way to exclude fields from request sampling is by disabling sampling in the web ACL visibility configuration.
Request sampling doesn't provide a field redaction option, and any field redaction that you specify in your logging configuration doesn't affect sampling. The only way to exclude fields from request sampling is by disabling sampling in the web ACL visibility configuration.
public VisibilityConfig withSampledRequestsEnabled(Boolean sampledRequestsEnabled)
Indicates whether WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the WAF console.
Request sampling doesn't provide a field redaction option, and any field redaction that you specify in your logging configuration doesn't affect sampling. The only way to exclude fields from request sampling is by disabling sampling in the web ACL visibility configuration.
sampledRequestsEnabled
- Indicates whether WAF should store a sampling of the web requests that match the rules. You can view the
sampled requests through the WAF console. Request sampling doesn't provide a field redaction option, and any field redaction that you specify in your logging configuration doesn't affect sampling. The only way to exclude fields from request sampling is by disabling sampling in the web ACL visibility configuration.
public Boolean isSampledRequestsEnabled()
Indicates whether WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the WAF console.
Request sampling doesn't provide a field redaction option, and any field redaction that you specify in your logging configuration doesn't affect sampling. The only way to exclude fields from request sampling is by disabling sampling in the web ACL visibility configuration.
Request sampling doesn't provide a field redaction option, and any field redaction that you specify in your logging configuration doesn't affect sampling. The only way to exclude fields from request sampling is by disabling sampling in the web ACL visibility configuration.
public void setCloudWatchMetricsEnabled(Boolean cloudWatchMetricsEnabled)
Indicates whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see WAF Metrics in the WAF Developer Guide.
For web ACLs, the metrics are for web requests that have the web ACL default action applied. WAF applies the default action to web requests that pass the inspection of all rules in the web ACL without being either allowed or blocked. For more information, see The web ACL default action in the WAF Developer Guide.
cloudWatchMetricsEnabled
- Indicates whether the associated resource sends metrics to Amazon CloudWatch. For the list of available
metrics, see WAF
Metrics in the WAF Developer Guide.
For web ACLs, the metrics are for web requests that have the web ACL default action applied. WAF applies the default action to web requests that pass the inspection of all rules in the web ACL without being either allowed or blocked. For more information, see The web ACL default action in the WAF Developer Guide.
public Boolean getCloudWatchMetricsEnabled()
Indicates whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see WAF Metrics in the WAF Developer Guide.
For web ACLs, the metrics are for web requests that have the web ACL default action applied. WAF applies the default action to web requests that pass the inspection of all rules in the web ACL without being either allowed or blocked. For more information, see The web ACL default action in the WAF Developer Guide.
For web ACLs, the metrics are for web requests that have the web ACL default action applied. WAF applies the default action to web requests that pass the inspection of all rules in the web ACL without being either allowed or blocked. For more information, see The web ACL default action in the WAF Developer Guide.
public VisibilityConfig withCloudWatchMetricsEnabled(Boolean cloudWatchMetricsEnabled)
Indicates whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see WAF Metrics in the WAF Developer Guide.
For web ACLs, the metrics are for web requests that have the web ACL default action applied. WAF applies the default action to web requests that pass the inspection of all rules in the web ACL without being either allowed or blocked. For more information, see The web ACL default action in the WAF Developer Guide.
cloudWatchMetricsEnabled
- Indicates whether the associated resource sends metrics to Amazon CloudWatch. For the list of available
metrics, see WAF
Metrics in the WAF Developer Guide.
For web ACLs, the metrics are for web requests that have the web ACL default action applied. WAF applies the default action to web requests that pass the inspection of all rules in the web ACL without being either allowed or blocked. For more information, see The web ACL default action in the WAF Developer Guide.
public Boolean isCloudWatchMetricsEnabled()
Indicates whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see WAF Metrics in the WAF Developer Guide.
For web ACLs, the metrics are for web requests that have the web ACL default action applied. WAF applies the default action to web requests that pass the inspection of all rules in the web ACL without being either allowed or blocked. For more information, see The web ACL default action in the WAF Developer Guide.
For web ACLs, the metrics are for web requests that have the web ACL default action applied. WAF applies the default action to web requests that pass the inspection of all rules in the web ACL without being either allowed or blocked. For more information, see The web ACL default action in the WAF Developer Guide.
public void setMetricName(String metricName)
A name of the Amazon CloudWatch metric dimension. 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 that are reserved for WAF, for example All
and Default_Action
.
metricName
- A name of the Amazon CloudWatch metric dimension. 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 that are reserved for WAF, for example All
and
Default_Action
.public String getMetricName()
A name of the Amazon CloudWatch metric dimension. 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 that are reserved for WAF, for example All
and Default_Action
.
All
and
Default_Action
.public VisibilityConfig withMetricName(String metricName)
A name of the Amazon CloudWatch metric dimension. 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 that are reserved for WAF, for example All
and Default_Action
.
metricName
- A name of the Amazon CloudWatch metric dimension. 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 that are reserved for 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.