#[non_exhaustive]pub struct AnalysisSecurityGroupRuleBuilder { /* private fields */ }
Expand description
A builder for AnalysisSecurityGroupRule
.
Implementations§
source§impl AnalysisSecurityGroupRuleBuilder
impl AnalysisSecurityGroupRuleBuilder
sourcepub fn direction(self, input: impl Into<String>) -> Self
pub fn direction(self, input: impl Into<String>) -> Self
The direction. The following are the possible values:
-
egress
-
ingress
sourcepub fn set_direction(self, input: Option<String>) -> Self
pub fn set_direction(self, input: Option<String>) -> Self
The direction. The following are the possible values:
-
egress
-
ingress
sourcepub fn get_direction(&self) -> &Option<String>
pub fn get_direction(&self) -> &Option<String>
The direction. The following are the possible values:
-
egress
-
ingress
sourcepub fn security_group_id(self, input: impl Into<String>) -> Self
pub fn security_group_id(self, input: impl Into<String>) -> Self
The security group ID.
sourcepub fn set_security_group_id(self, input: Option<String>) -> Self
pub fn set_security_group_id(self, input: Option<String>) -> Self
The security group ID.
sourcepub fn get_security_group_id(&self) -> &Option<String>
pub fn get_security_group_id(&self) -> &Option<String>
The security group ID.
sourcepub fn port_range(self, input: PortRange) -> Self
pub fn port_range(self, input: PortRange) -> Self
The port range.
sourcepub fn set_port_range(self, input: Option<PortRange>) -> Self
pub fn set_port_range(self, input: Option<PortRange>) -> Self
The port range.
sourcepub fn get_port_range(&self) -> &Option<PortRange>
pub fn get_port_range(&self) -> &Option<PortRange>
The port range.
sourcepub fn prefix_list_id(self, input: impl Into<String>) -> Self
pub fn prefix_list_id(self, input: impl Into<String>) -> Self
The prefix list ID.
sourcepub fn set_prefix_list_id(self, input: Option<String>) -> Self
pub fn set_prefix_list_id(self, input: Option<String>) -> Self
The prefix list ID.
sourcepub fn get_prefix_list_id(&self) -> &Option<String>
pub fn get_prefix_list_id(&self) -> &Option<String>
The prefix list ID.
sourcepub fn set_protocol(self, input: Option<String>) -> Self
pub fn set_protocol(self, input: Option<String>) -> Self
The protocol name.
sourcepub fn get_protocol(&self) -> &Option<String>
pub fn get_protocol(&self) -> &Option<String>
The protocol name.
sourcepub fn build(self) -> AnalysisSecurityGroupRule
pub fn build(self) -> AnalysisSecurityGroupRule
Consumes the builder and constructs a AnalysisSecurityGroupRule
.
Trait Implementations§
source§impl Clone for AnalysisSecurityGroupRuleBuilder
impl Clone for AnalysisSecurityGroupRuleBuilder
source§fn clone(&self) -> AnalysisSecurityGroupRuleBuilder
fn clone(&self) -> AnalysisSecurityGroupRuleBuilder
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 Default for AnalysisSecurityGroupRuleBuilder
impl Default for AnalysisSecurityGroupRuleBuilder
source§fn default() -> AnalysisSecurityGroupRuleBuilder
fn default() -> AnalysisSecurityGroupRuleBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AnalysisSecurityGroupRuleBuilder
impl PartialEq for AnalysisSecurityGroupRuleBuilder
source§fn eq(&self, other: &AnalysisSecurityGroupRuleBuilder) -> bool
fn eq(&self, other: &AnalysisSecurityGroupRuleBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AnalysisSecurityGroupRuleBuilder
Auto Trait Implementations§
impl Freeze for AnalysisSecurityGroupRuleBuilder
impl RefUnwindSafe for AnalysisSecurityGroupRuleBuilder
impl Send for AnalysisSecurityGroupRuleBuilder
impl Sync for AnalysisSecurityGroupRuleBuilder
impl Unpin for AnalysisSecurityGroupRuleBuilder
impl UnwindSafe for AnalysisSecurityGroupRuleBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.