pub struct Builder { /* private fields */ }
Expand description
A builder for AwsWafv2VisibilityConfigDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn cloud_watch_metrics_enabled(self, input: bool) -> Self
pub fn cloud_watch_metrics_enabled(self, input: bool) -> Self
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.
sourcepub fn set_cloud_watch_metrics_enabled(self, input: Option<bool>) -> Self
pub fn set_cloud_watch_metrics_enabled(self, input: Option<bool>) -> Self
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.
sourcepub fn metric_name(self, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
A name of the Amazon CloudWatch metric.
sourcepub fn set_metric_name(self, input: Option<String>) -> Self
pub fn set_metric_name(self, input: Option<String>) -> Self
A name of the Amazon CloudWatch metric.
sourcepub fn sampled_requests_enabled(self, input: bool) -> Self
pub fn sampled_requests_enabled(self, input: bool) -> Self
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.
sourcepub fn set_sampled_requests_enabled(self, input: Option<bool>) -> Self
pub fn set_sampled_requests_enabled(self, input: Option<bool>) -> Self
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.
sourcepub fn build(self) -> AwsWafv2VisibilityConfigDetails
pub fn build(self) -> AwsWafv2VisibilityConfigDetails
Consumes the builder and constructs a AwsWafv2VisibilityConfigDetails
.