#[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<TransitGatewayPolicyRuleBuilder> for TransitGatewayPolicyRuleBuilder
impl PartialEq<TransitGatewayPolicyRuleBuilder> 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 ==
.