Struct aws_sdk_waf::operation::create_rule::builders::CreateRuleInputBuilder
source · #[non_exhaustive]pub struct CreateRuleInputBuilder { /* private fields */ }Expand description
A builder for CreateRuleInput.
Implementations§
source§impl CreateRuleInputBuilder
impl CreateRuleInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A friendly name or description of the Rule. You can't change the name of a Rule after you create it.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A friendly name or description of the Rule. You can't change the name of a Rule after you create it.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
A friendly name or description of the Rule. You can't change the name of a Rule after you create it.
sourcepub fn metric_name(self, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
A friendly name or description for the metrics for this Rule. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change the name of the metric after you create the Rule.
sourcepub fn set_metric_name(self, input: Option<String>) -> Self
pub fn set_metric_name(self, input: Option<String>) -> Self
A friendly name or description for the metrics for this Rule. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change the name of the metric after you create the Rule.
sourcepub fn get_metric_name(&self) -> &Option<String>
pub fn get_metric_name(&self) -> &Option<String>
A friendly name or description for the metrics for this Rule. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change the name of the metric after you create the Rule.
sourcepub fn change_token(self, input: impl Into<String>) -> Self
pub fn change_token(self, input: impl Into<String>) -> Self
The value returned by the most recent call to GetChangeToken.
sourcepub fn set_change_token(self, input: Option<String>) -> Self
pub fn set_change_token(self, input: Option<String>) -> Self
The value returned by the most recent call to GetChangeToken.
sourcepub fn get_change_token(&self) -> &Option<String>
pub fn get_change_token(&self) -> &Option<String>
The value returned by the most recent call to GetChangeToken.
Appends an item to tags.
To override the contents of this collection use set_tags.
sourcepub fn build(self) -> Result<CreateRuleInput, BuildError>
pub fn build(self) -> Result<CreateRuleInput, BuildError>
Consumes the builder and constructs a CreateRuleInput.
source§impl CreateRuleInputBuilder
impl CreateRuleInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateRuleOutput, SdkError<CreateRuleError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateRuleOutput, SdkError<CreateRuleError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateRuleInputBuilder
impl Clone for CreateRuleInputBuilder
source§fn clone(&self) -> CreateRuleInputBuilder
fn clone(&self) -> CreateRuleInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateRuleInputBuilder
impl Debug for CreateRuleInputBuilder
source§impl Default for CreateRuleInputBuilder
impl Default for CreateRuleInputBuilder
source§fn default() -> CreateRuleInputBuilder
fn default() -> CreateRuleInputBuilder
source§impl PartialEq for CreateRuleInputBuilder
impl PartialEq for CreateRuleInputBuilder
source§fn eq(&self, other: &CreateRuleInputBuilder) -> bool
fn eq(&self, other: &CreateRuleInputBuilder) -> bool
self and other values to be equal, and is used
by ==.