Interface AwsWafv2VisibilityConfigDetails.Builder

    • Method Detail

      • cloudWatchMetricsEnabled

        AwsWafv2VisibilityConfigDetails.Builder cloudWatchMetricsEnabled​(Boolean cloudWatchMetricsEnabled)

        A boolean indicating whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see WAF metrics and dimensions in the WAF Developer Guide.

        Parameters:
        cloudWatchMetricsEnabled - A boolean indicating whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see WAF metrics and dimensions in the WAF Developer Guide.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricName

        AwsWafv2VisibilityConfigDetails.Builder metricName​(String metricName)

        A name of the Amazon CloudWatch metric.

        Parameters:
        metricName - A name of the Amazon CloudWatch metric.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sampledRequestsEnabled

        AwsWafv2VisibilityConfigDetails.Builder sampledRequestsEnabled​(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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.