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<TransitGatewayRouteBuilder> for TransitGatewayRouteBuilder
impl PartialEq<TransitGatewayRouteBuilder> 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 ==
.