Skip to main content

aws_sdk_wafv2/types/
_rate_limit_http_method.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Specifies the request's HTTP method as an aggregate key for a rate-based rule. Each distinct HTTP method contributes to the aggregation instance. If you use just the HTTP method as your custom key, then each method fully defines an aggregation instance.</p>
4/// <p>JSON specification: <code>"RateLimitHTTPMethod": {}</code></p>
5#[non_exhaustive]
6#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
7pub struct RateLimitHttpMethod {}
8impl RateLimitHttpMethod {
9    /// Creates a new builder-style object to manufacture [`RateLimitHttpMethod`](crate::types::RateLimitHttpMethod).
10    pub fn builder() -> crate::types::builders::RateLimitHttpMethodBuilder {
11        crate::types::builders::RateLimitHttpMethodBuilder::default()
12    }
13}
14
15/// A builder for [`RateLimitHttpMethod`](crate::types::RateLimitHttpMethod).
16#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
17#[non_exhaustive]
18pub struct RateLimitHttpMethodBuilder {}
19impl RateLimitHttpMethodBuilder {
20    /// Consumes the builder and constructs a [`RateLimitHttpMethod`](crate::types::RateLimitHttpMethod).
21    pub fn build(self) -> crate::types::RateLimitHttpMethod {
22        crate::types::RateLimitHttpMethod {}
23    }
24}