Struct aws_sdk_ec2::model::TransitGatewayRouteTableRoute
source · #[non_exhaustive]pub struct TransitGatewayRouteTableRoute { /* private fields */ }
Expand description
Describes a route in a transit gateway route table.
Implementations§
source§impl TransitGatewayRouteTableRoute
impl TransitGatewayRouteTableRoute
sourcepub fn destination_cidr(&self) -> Option<&str>
pub fn destination_cidr(&self) -> Option<&str>
The CIDR block used for destination matches.
sourcepub fn route_origin(&self) -> Option<&str>
pub fn route_origin(&self) -> Option<&str>
The route origin. The following are the possible values:
-
static
-
propagated
sourcepub fn prefix_list_id(&self) -> Option<&str>
pub fn prefix_list_id(&self) -> Option<&str>
The ID of the prefix list.
sourcepub fn attachment_id(&self) -> Option<&str>
pub fn attachment_id(&self) -> Option<&str>
The ID of the route attachment.
sourcepub fn resource_id(&self) -> Option<&str>
pub fn resource_id(&self) -> Option<&str>
The ID of the resource for the route attachment.
sourcepub fn resource_type(&self) -> Option<&str>
pub fn resource_type(&self) -> Option<&str>
The resource type for the route attachment.
source§impl TransitGatewayRouteTableRoute
impl TransitGatewayRouteTableRoute
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TransitGatewayRouteTableRoute
.
Examples found in repository?
src/xml_deser.rs (line 67957)
67953 67954 67955 67956 67957 67958 67959 67960 67961 67962 67963 67964 67965 67966 67967 67968 67969 67970 67971 67972 67973 67974 67975 67976 67977 67978 67979 67980 67981 67982 67983 67984 67985 67986 67987 67988 67989 67990 67991 67992 67993 67994 67995 67996 67997 67998 67999 68000 68001 68002 68003 68004 68005 68006 68007 68008 68009 68010 68011 68012 68013 68014 68015 68016 68017 68018 68019 68020 68021 68022 68023 68024 68025 68026 68027 68028 68029 68030 68031 68032 68033 68034 68035 68036 68037 68038 68039 68040 68041 68042 68043 68044 68045 68046 68047 68048 68049 68050 68051 68052 68053 68054 68055
pub fn deser_structure_crate_model_transit_gateway_route_table_route(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TransitGatewayRouteTableRoute, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TransitGatewayRouteTableRoute::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("destinationCidr") /* DestinationCidr com.amazonaws.ec2#TransitGatewayRouteTableRoute$DestinationCidr */ => {
let var_3357 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_destination_cidr(var_3357);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#TransitGatewayRouteTableRoute$State */ => {
let var_3358 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_state(var_3358);
}
,
s if s.matches("routeOrigin") /* RouteOrigin com.amazonaws.ec2#TransitGatewayRouteTableRoute$RouteOrigin */ => {
let var_3359 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_route_origin(var_3359);
}
,
s if s.matches("prefixListId") /* PrefixListId com.amazonaws.ec2#TransitGatewayRouteTableRoute$PrefixListId */ => {
let var_3360 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_prefix_list_id(var_3360);
}
,
s if s.matches("attachmentId") /* AttachmentId com.amazonaws.ec2#TransitGatewayRouteTableRoute$AttachmentId */ => {
let var_3361 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_attachment_id(var_3361);
}
,
s if s.matches("resourceId") /* ResourceId com.amazonaws.ec2#TransitGatewayRouteTableRoute$ResourceId */ => {
let var_3362 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_resource_id(var_3362);
}
,
s if s.matches("resourceType") /* ResourceType com.amazonaws.ec2#TransitGatewayRouteTableRoute$ResourceType */ => {
let var_3363 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_resource_type(var_3363);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for TransitGatewayRouteTableRoute
impl Clone for TransitGatewayRouteTableRoute
source§fn clone(&self) -> TransitGatewayRouteTableRoute
fn clone(&self) -> TransitGatewayRouteTableRoute
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 more