@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()
A boolean indicating whether the associated resource sends metrics to Amazon CloudWatch.
|
String |
getMetricName()
A name of the Amazon CloudWatch metric dimension.
|
Boolean |
getSampledRequestsEnabled()
A boolean indicating whether 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 Amazon CloudWatch.
|
Boolean |
isSampledRequestsEnabled()
A boolean indicating 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)
A boolean indicating 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)
A boolean indicating 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)
A boolean indicating 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)
A boolean indicating whether WAF should store a sampling of the web requests that match the rules.
|
public void setSampledRequestsEnabled(Boolean sampledRequestsEnabled)
A boolean indicating whether WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the WAF console.
sampledRequestsEnabled
- A boolean indicating whether WAF should store a sampling of the web requests that match the rules. You can
view the sampled requests through the WAF console.public Boolean getSampledRequestsEnabled()
A boolean indicating whether WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the WAF console.
public VisibilityConfig withSampledRequestsEnabled(Boolean sampledRequestsEnabled)
A boolean indicating whether WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the WAF console.
sampledRequestsEnabled
- A boolean indicating whether WAF should store a sampling of the web requests that match the rules. You can
view the sampled requests through the WAF console.public Boolean isSampledRequestsEnabled()
A boolean indicating whether WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the WAF console.
public void setCloudWatchMetricsEnabled(Boolean cloudWatchMetricsEnabled)
A boolean indicating whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see WAF Metrics.
cloudWatchMetricsEnabled
- A boolean indicating whether the associated resource sends metrics to Amazon CloudWatch. For the list of
available metrics, see WAF
Metrics.public Boolean getCloudWatchMetricsEnabled()
A boolean indicating whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see WAF Metrics.
public VisibilityConfig withCloudWatchMetricsEnabled(Boolean cloudWatchMetricsEnabled)
A boolean indicating whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see WAF Metrics.
cloudWatchMetricsEnabled
- A boolean indicating whether the associated resource sends metrics to Amazon CloudWatch. For the list of
available metrics, see WAF
Metrics.public Boolean isCloudWatchMetricsEnabled()
A boolean indicating whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see WAF Metrics.
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.