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) -> &[TransitGatewayRouteAttachment]
pub fn transit_gateway_attachments(&self) -> &[TransitGatewayRouteAttachment]
The attachments.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .transit_gateway_attachments.is_none()
.
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 for TransitGatewayRoute
impl PartialEq 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 Freeze for TransitGatewayRoute
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
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.