#[non_exhaustive]pub struct TransitGatewayPolicyRuleBuilder { /* private fields */ }
Expand description
A builder for TransitGatewayPolicyRule
.
Implementations§
source§impl TransitGatewayPolicyRuleBuilder
impl TransitGatewayPolicyRuleBuilder
sourcepub fn source_cidr_block(self, input: impl Into<String>) -> Self
pub fn source_cidr_block(self, input: impl Into<String>) -> Self
The source CIDR block for the transit gateway policy rule.
sourcepub fn set_source_cidr_block(self, input: Option<String>) -> Self
pub fn set_source_cidr_block(self, input: Option<String>) -> Self
The source CIDR block for the transit gateway policy rule.
sourcepub fn get_source_cidr_block(&self) -> &Option<String>
pub fn get_source_cidr_block(&self) -> &Option<String>
The source CIDR block for the transit gateway policy rule.
sourcepub fn source_port_range(self, input: impl Into<String>) -> Self
pub fn source_port_range(self, input: impl Into<String>) -> Self
The port range for the transit gateway policy rule. Currently this is set to * (all).
sourcepub fn set_source_port_range(self, input: Option<String>) -> Self
pub fn set_source_port_range(self, input: Option<String>) -> Self
The port range for the transit gateway policy rule. Currently this is set to * (all).
sourcepub fn get_source_port_range(&self) -> &Option<String>
pub fn get_source_port_range(&self) -> &Option<String>
The port range for the transit gateway policy rule. Currently this is set to * (all).
sourcepub fn destination_cidr_block(self, input: impl Into<String>) -> Self
pub fn destination_cidr_block(self, input: impl Into<String>) -> Self
The destination CIDR block for the transit gateway policy rule.
sourcepub fn set_destination_cidr_block(self, input: Option<String>) -> Self
pub fn set_destination_cidr_block(self, input: Option<String>) -> Self
The destination CIDR block for the transit gateway policy rule.
sourcepub fn get_destination_cidr_block(&self) -> &Option<String>
pub fn get_destination_cidr_block(&self) -> &Option<String>
The destination CIDR block for the transit gateway policy rule.
sourcepub fn destination_port_range(self, input: impl Into<String>) -> Self
pub fn destination_port_range(self, input: impl Into<String>) -> Self
The port range for the transit gateway policy rule. Currently this is set to * (all).
sourcepub fn set_destination_port_range(self, input: Option<String>) -> Self
pub fn set_destination_port_range(self, input: Option<String>) -> Self
The port range for the transit gateway policy rule. Currently this is set to * (all).
sourcepub fn get_destination_port_range(&self) -> &Option<String>
pub fn get_destination_port_range(&self) -> &Option<String>
The port range for the transit gateway policy rule. Currently this is set to * (all).
sourcepub fn protocol(self, input: impl Into<String>) -> Self
pub fn protocol(self, input: impl Into<String>) -> Self
The protocol used by the transit gateway policy rule.
sourcepub fn set_protocol(self, input: Option<String>) -> Self
pub fn set_protocol(self, input: Option<String>) -> Self
The protocol used by the transit gateway policy rule.
sourcepub fn get_protocol(&self) -> &Option<String>
pub fn get_protocol(&self) -> &Option<String>
The protocol used by the transit gateway policy rule.
sourcepub fn meta_data(self, input: TransitGatewayPolicyRuleMetaData) -> Self
pub fn meta_data(self, input: TransitGatewayPolicyRuleMetaData) -> Self
The meta data tags used for the transit gateway policy rule.
sourcepub fn set_meta_data(
self,
input: Option<TransitGatewayPolicyRuleMetaData>,
) -> Self
pub fn set_meta_data( self, input: Option<TransitGatewayPolicyRuleMetaData>, ) -> Self
The meta data tags used for the transit gateway policy rule.
sourcepub fn get_meta_data(&self) -> &Option<TransitGatewayPolicyRuleMetaData>
pub fn get_meta_data(&self) -> &Option<TransitGatewayPolicyRuleMetaData>
The meta data tags used for the transit gateway policy rule.
sourcepub fn build(self) -> TransitGatewayPolicyRule
pub fn build(self) -> TransitGatewayPolicyRule
Consumes the builder and constructs a TransitGatewayPolicyRule
.
Trait Implementations§
source§impl Clone for TransitGatewayPolicyRuleBuilder
impl Clone for TransitGatewayPolicyRuleBuilder
source§fn clone(&self) -> TransitGatewayPolicyRuleBuilder
fn clone(&self) -> TransitGatewayPolicyRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TransitGatewayPolicyRuleBuilder
impl Default for TransitGatewayPolicyRuleBuilder
source§fn default() -> TransitGatewayPolicyRuleBuilder
fn default() -> TransitGatewayPolicyRuleBuilder
source§impl PartialEq for TransitGatewayPolicyRuleBuilder
impl PartialEq for TransitGatewayPolicyRuleBuilder
source§fn eq(&self, other: &TransitGatewayPolicyRuleBuilder) -> bool
fn eq(&self, other: &TransitGatewayPolicyRuleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransitGatewayPolicyRuleBuilder
Auto Trait Implementations§
impl Freeze for TransitGatewayPolicyRuleBuilder
impl RefUnwindSafe for TransitGatewayPolicyRuleBuilder
impl Send for TransitGatewayPolicyRuleBuilder
impl Sync for TransitGatewayPolicyRuleBuilder
impl Unpin for TransitGatewayPolicyRuleBuilder
impl UnwindSafe for TransitGatewayPolicyRuleBuilder
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
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>
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>
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 more