Struct aws_sdk_ec2::types::TransitGatewayRoute
source · #[non_exhaustive]pub struct TransitGatewayRoute {
pub destination_cidr_block: Option<String>,
pub prefix_list_id: Option<String>,
pub transit_gateway_route_table_announcement_id: Option<String>,
pub transit_gateway_attachments: Option<Vec<TransitGatewayRouteAttachment>>,
pub type: Option<TransitGatewayRouteType>,
pub state: Option<TransitGatewayRouteState>,
}
Expand description
Describes a route for a transit gateway route table.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.destination_cidr_block: Option<String>
The CIDR block used for destination matches.
prefix_list_id: Option<String>
The ID of the prefix list used for destination matches.
transit_gateway_route_table_announcement_id: Option<String>
The ID of the transit gateway route table announcement.
transit_gateway_attachments: Option<Vec<TransitGatewayRouteAttachment>>
The attachments.
type: Option<TransitGatewayRouteType>
The route type.
state: Option<TransitGatewayRouteState>
The state of the route.
Implementations§
source§impl TransitGatewayRoute
impl TransitGatewayRoute
sourcepub fn destination_cidr_block(&self) -> Option<&str>
pub fn destination_cidr_block(&self) -> Option<&str>
The CIDR block used for destination matches.
sourcepub fn prefix_list_id(&self) -> Option<&str>
pub fn prefix_list_id(&self) -> Option<&str>
The ID of the prefix list used for destination matches.
sourcepub fn transit_gateway_route_table_announcement_id(&self) -> Option<&str>
pub fn transit_gateway_route_table_announcement_id(&self) -> Option<&str>
The ID of the transit gateway route table announcement.
sourcepub fn transit_gateway_attachments(
&self
) -> Option<&[TransitGatewayRouteAttachment]>
pub fn transit_gateway_attachments( &self ) -> Option<&[TransitGatewayRouteAttachment]>
The attachments.
sourcepub fn type(&self) -> Option<&TransitGatewayRouteType>
pub fn type(&self) -> Option<&TransitGatewayRouteType>
The route type.
sourcepub fn state(&self) -> Option<&TransitGatewayRouteState>
pub fn state(&self) -> Option<&TransitGatewayRouteState>
The state of the route.
source§impl TransitGatewayRoute
impl TransitGatewayRoute
sourcepub fn builder() -> TransitGatewayRouteBuilder
pub fn builder() -> TransitGatewayRouteBuilder
Creates a new builder-style object to manufacture TransitGatewayRoute
.
Trait Implementations§
source§impl Clone for TransitGatewayRoute
impl Clone for TransitGatewayRoute
source§fn clone(&self) -> TransitGatewayRoute
fn clone(&self) -> TransitGatewayRoute
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 Debug for TransitGatewayRoute
impl Debug for TransitGatewayRoute
source§impl PartialEq<TransitGatewayRoute> for TransitGatewayRoute
impl PartialEq<TransitGatewayRoute> for TransitGatewayRoute
source§fn eq(&self, other: &TransitGatewayRoute) -> bool
fn eq(&self, other: &TransitGatewayRoute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransitGatewayRoute
Auto Trait Implementations§
impl RefUnwindSafe for TransitGatewayRoute
impl Send for TransitGatewayRoute
impl Sync for TransitGatewayRoute
impl Unpin for TransitGatewayRoute
impl UnwindSafe for TransitGatewayRoute
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