Struct aws_sdk_ec2::types::builders::AnalysisAclRuleBuilder
source · #[non_exhaustive]pub struct AnalysisAclRuleBuilder { /* private fields */ }
Expand description
A builder for AnalysisAclRule
.
Implementations§
source§impl AnalysisAclRuleBuilder
impl AnalysisAclRuleBuilder
sourcepub fn set_egress(self, input: Option<bool>) -> Self
pub fn set_egress(self, input: Option<bool>) -> Self
Indicates whether the rule is an outbound rule.
sourcepub fn get_egress(&self) -> &Option<bool>
pub fn get_egress(&self) -> &Option<bool>
Indicates whether the rule is an outbound rule.
sourcepub fn port_range(self, input: PortRange) -> Self
pub fn port_range(self, input: PortRange) -> Self
The range of ports.
sourcepub fn set_port_range(self, input: Option<PortRange>) -> Self
pub fn set_port_range(self, input: Option<PortRange>) -> Self
The range of ports.
sourcepub fn get_port_range(&self) -> &Option<PortRange>
pub fn get_port_range(&self) -> &Option<PortRange>
The range of ports.
sourcepub fn set_protocol(self, input: Option<String>) -> Self
pub fn set_protocol(self, input: Option<String>) -> Self
The protocol.
sourcepub fn get_protocol(&self) -> &Option<String>
pub fn get_protocol(&self) -> &Option<String>
The protocol.
sourcepub fn rule_action(self, input: impl Into<String>) -> Self
pub fn rule_action(self, input: impl Into<String>) -> Self
Indicates whether to allow or deny traffic that matches the rule.
sourcepub fn set_rule_action(self, input: Option<String>) -> Self
pub fn set_rule_action(self, input: Option<String>) -> Self
Indicates whether to allow or deny traffic that matches the rule.
sourcepub fn get_rule_action(&self) -> &Option<String>
pub fn get_rule_action(&self) -> &Option<String>
Indicates whether to allow or deny traffic that matches the rule.
sourcepub fn rule_number(self, input: i32) -> Self
pub fn rule_number(self, input: i32) -> Self
The rule number.
sourcepub fn set_rule_number(self, input: Option<i32>) -> Self
pub fn set_rule_number(self, input: Option<i32>) -> Self
The rule number.
sourcepub fn get_rule_number(&self) -> &Option<i32>
pub fn get_rule_number(&self) -> &Option<i32>
The rule number.
sourcepub fn build(self) -> AnalysisAclRule
pub fn build(self) -> AnalysisAclRule
Consumes the builder and constructs a AnalysisAclRule
.
Trait Implementations§
source§impl Clone for AnalysisAclRuleBuilder
impl Clone for AnalysisAclRuleBuilder
source§fn clone(&self) -> AnalysisAclRuleBuilder
fn clone(&self) -> AnalysisAclRuleBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AnalysisAclRuleBuilder
impl Debug for AnalysisAclRuleBuilder
source§impl Default for AnalysisAclRuleBuilder
impl Default for AnalysisAclRuleBuilder
source§fn default() -> AnalysisAclRuleBuilder
fn default() -> AnalysisAclRuleBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<AnalysisAclRuleBuilder> for AnalysisAclRuleBuilder
impl PartialEq<AnalysisAclRuleBuilder> for AnalysisAclRuleBuilder
source§fn eq(&self, other: &AnalysisAclRuleBuilder) -> bool
fn eq(&self, other: &AnalysisAclRuleBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AnalysisAclRuleBuilder
Auto Trait Implementations§
impl RefUnwindSafe for AnalysisAclRuleBuilder
impl Send for AnalysisAclRuleBuilder
impl Sync for AnalysisAclRuleBuilder
impl Unpin for AnalysisAclRuleBuilder
impl UnwindSafe for AnalysisAclRuleBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more