Struct aws_sdk_elasticloadbalancingv2::types::builders::RuleBuilder
source · #[non_exhaustive]pub struct RuleBuilder { /* private fields */ }
Expand description
A builder for Rule
.
Implementations§
source§impl RuleBuilder
impl RuleBuilder
sourcepub fn rule_arn(self, input: impl Into<String>) -> Self
pub fn rule_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the rule.
sourcepub fn set_rule_arn(self, input: Option<String>) -> Self
pub fn set_rule_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the rule.
sourcepub fn get_rule_arn(&self) -> &Option<String>
pub fn get_rule_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the rule.
sourcepub fn set_priority(self, input: Option<String>) -> Self
pub fn set_priority(self, input: Option<String>) -> Self
The priority.
sourcepub fn get_priority(&self) -> &Option<String>
pub fn get_priority(&self) -> &Option<String>
The priority.
sourcepub fn conditions(self, input: RuleCondition) -> Self
pub fn conditions(self, input: RuleCondition) -> Self
Appends an item to conditions
.
To override the contents of this collection use set_conditions
.
The conditions. Each rule can include zero or one of the following conditions: http-request-method
, host-header
, path-pattern
, and source-ip
, and zero or more of the following conditions: http-header
and query-string
.
sourcepub fn set_conditions(self, input: Option<Vec<RuleCondition>>) -> Self
pub fn set_conditions(self, input: Option<Vec<RuleCondition>>) -> Self
The conditions. Each rule can include zero or one of the following conditions: http-request-method
, host-header
, path-pattern
, and source-ip
, and zero or more of the following conditions: http-header
and query-string
.
sourcepub fn get_conditions(&self) -> &Option<Vec<RuleCondition>>
pub fn get_conditions(&self) -> &Option<Vec<RuleCondition>>
The conditions. Each rule can include zero or one of the following conditions: http-request-method
, host-header
, path-pattern
, and source-ip
, and zero or more of the following conditions: http-header
and query-string
.
sourcepub fn actions(self, input: Action) -> Self
pub fn actions(self, input: Action) -> Self
Appends an item to actions
.
To override the contents of this collection use set_actions
.
The actions. Each rule must include exactly one of the following types of actions: forward
, redirect
, or fixed-response
, and it must be the last action to be performed.
sourcepub fn set_actions(self, input: Option<Vec<Action>>) -> Self
pub fn set_actions(self, input: Option<Vec<Action>>) -> Self
The actions. Each rule must include exactly one of the following types of actions: forward
, redirect
, or fixed-response
, and it must be the last action to be performed.
sourcepub fn get_actions(&self) -> &Option<Vec<Action>>
pub fn get_actions(&self) -> &Option<Vec<Action>>
The actions. Each rule must include exactly one of the following types of actions: forward
, redirect
, or fixed-response
, and it must be the last action to be performed.
sourcepub fn is_default(self, input: bool) -> Self
pub fn is_default(self, input: bool) -> Self
Indicates whether this is the default rule.
sourcepub fn set_is_default(self, input: Option<bool>) -> Self
pub fn set_is_default(self, input: Option<bool>) -> Self
Indicates whether this is the default rule.
sourcepub fn get_is_default(&self) -> &Option<bool>
pub fn get_is_default(&self) -> &Option<bool>
Indicates whether this is the default rule.
Trait Implementations§
source§impl Clone for RuleBuilder
impl Clone for RuleBuilder
source§fn clone(&self) -> RuleBuilder
fn clone(&self) -> RuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuleBuilder
impl Debug for RuleBuilder
source§impl Default for RuleBuilder
impl Default for RuleBuilder
source§fn default() -> RuleBuilder
fn default() -> RuleBuilder
source§impl PartialEq for RuleBuilder
impl PartialEq for RuleBuilder
source§fn eq(&self, other: &RuleBuilder) -> bool
fn eq(&self, other: &RuleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.