Struct aws_sdk_ec2::types::builders::TransitGatewayRouteBuilder
source · #[non_exhaustive]pub struct TransitGatewayRouteBuilder { /* private fields */ }
Expand description
A builder for TransitGatewayRoute
.
Implementations§
source§impl TransitGatewayRouteBuilder
impl TransitGatewayRouteBuilder
sourcepub fn destination_cidr_block(self, input: impl Into<String>) -> Self
pub fn destination_cidr_block(self, input: impl Into<String>) -> Self
The CIDR block used for destination matches.
sourcepub fn set_destination_cidr_block(self, input: Option<String>) -> Self
pub fn set_destination_cidr_block(self, input: Option<String>) -> Self
The CIDR block used for destination matches.
sourcepub fn get_destination_cidr_block(&self) -> &Option<String>
pub fn get_destination_cidr_block(&self) -> &Option<String>
The CIDR block used for destination matches.
sourcepub fn prefix_list_id(self, input: impl Into<String>) -> Self
pub fn prefix_list_id(self, input: impl Into<String>) -> Self
The ID of the prefix list used for destination matches.
sourcepub fn set_prefix_list_id(self, input: Option<String>) -> Self
pub fn set_prefix_list_id(self, input: Option<String>) -> Self
The ID of the prefix list used for destination matches.
sourcepub fn get_prefix_list_id(&self) -> &Option<String>
pub fn get_prefix_list_id(&self) -> &Option<String>
The ID of the prefix list used for destination matches.
sourcepub fn transit_gateway_route_table_announcement_id(
self,
input: impl Into<String>,
) -> Self
pub fn transit_gateway_route_table_announcement_id( self, input: impl Into<String>, ) -> Self
The ID of the transit gateway route table announcement.
sourcepub fn set_transit_gateway_route_table_announcement_id(
self,
input: Option<String>,
) -> Self
pub fn set_transit_gateway_route_table_announcement_id( self, input: Option<String>, ) -> Self
The ID of the transit gateway route table announcement.
sourcepub fn get_transit_gateway_route_table_announcement_id(&self) -> &Option<String>
pub fn get_transit_gateway_route_table_announcement_id(&self) -> &Option<String>
The ID of the transit gateway route table announcement.
sourcepub fn transit_gateway_attachments(
self,
input: TransitGatewayRouteAttachment,
) -> Self
pub fn transit_gateway_attachments( self, input: TransitGatewayRouteAttachment, ) -> Self
Appends an item to transit_gateway_attachments
.
To override the contents of this collection use set_transit_gateway_attachments
.
The attachments.
sourcepub fn set_transit_gateway_attachments(
self,
input: Option<Vec<TransitGatewayRouteAttachment>>,
) -> Self
pub fn set_transit_gateway_attachments( self, input: Option<Vec<TransitGatewayRouteAttachment>>, ) -> Self
The attachments.
sourcepub fn get_transit_gateway_attachments(
&self,
) -> &Option<Vec<TransitGatewayRouteAttachment>>
pub fn get_transit_gateway_attachments( &self, ) -> &Option<Vec<TransitGatewayRouteAttachment>>
The attachments.
sourcepub fn type(self, input: TransitGatewayRouteType) -> Self
pub fn type(self, input: TransitGatewayRouteType) -> Self
The route type.
sourcepub fn set_type(self, input: Option<TransitGatewayRouteType>) -> Self
pub fn set_type(self, input: Option<TransitGatewayRouteType>) -> Self
The route type.
sourcepub fn get_type(&self) -> &Option<TransitGatewayRouteType>
pub fn get_type(&self) -> &Option<TransitGatewayRouteType>
The route type.
sourcepub fn state(self, input: TransitGatewayRouteState) -> Self
pub fn state(self, input: TransitGatewayRouteState) -> Self
The state of the route.
sourcepub fn set_state(self, input: Option<TransitGatewayRouteState>) -> Self
pub fn set_state(self, input: Option<TransitGatewayRouteState>) -> Self
The state of the route.
sourcepub fn get_state(&self) -> &Option<TransitGatewayRouteState>
pub fn get_state(&self) -> &Option<TransitGatewayRouteState>
The state of the route.
sourcepub fn build(self) -> TransitGatewayRoute
pub fn build(self) -> TransitGatewayRoute
Consumes the builder and constructs a TransitGatewayRoute
.
Trait Implementations§
source§impl Clone for TransitGatewayRouteBuilder
impl Clone for TransitGatewayRouteBuilder
source§fn clone(&self) -> TransitGatewayRouteBuilder
fn clone(&self) -> TransitGatewayRouteBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransitGatewayRouteBuilder
impl Debug for TransitGatewayRouteBuilder
source§impl Default for TransitGatewayRouteBuilder
impl Default for TransitGatewayRouteBuilder
source§fn default() -> TransitGatewayRouteBuilder
fn default() -> TransitGatewayRouteBuilder
source§impl PartialEq for TransitGatewayRouteBuilder
impl PartialEq for TransitGatewayRouteBuilder
source§fn eq(&self, other: &TransitGatewayRouteBuilder) -> bool
fn eq(&self, other: &TransitGatewayRouteBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransitGatewayRouteBuilder
Auto Trait Implementations§
impl Freeze for TransitGatewayRouteBuilder
impl RefUnwindSafe for TransitGatewayRouteBuilder
impl Send for TransitGatewayRouteBuilder
impl Sync for TransitGatewayRouteBuilder
impl Unpin for TransitGatewayRouteBuilder
impl UnwindSafe for TransitGatewayRouteBuilder
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