Struct aws_sdk_ec2::model::TransitGatewayRoute
source · #[non_exhaustive]pub struct TransitGatewayRoute { /* private fields */ }
Expand description
Describes a route for a transit gateway route table.
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() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TransitGatewayRoute
.
Examples found in repository?
src/xml_deser.rs (line 31173)
31169 31170 31171 31172 31173 31174 31175 31176 31177 31178 31179 31180 31181 31182 31183 31184 31185 31186 31187 31188 31189 31190 31191 31192 31193 31194 31195 31196 31197 31198 31199 31200 31201 31202 31203 31204 31205 31206 31207 31208 31209 31210 31211 31212 31213 31214 31215 31216 31217 31218 31219 31220 31221 31222 31223 31224 31225 31226 31227 31228 31229 31230 31231 31232 31233 31234 31235 31236 31237 31238 31239 31240 31241 31242 31243 31244 31245 31246 31247 31248 31249 31250 31251 31252 31253 31254 31255 31256 31257
pub fn deser_structure_crate_model_transit_gateway_route(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TransitGatewayRoute, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TransitGatewayRoute::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("destinationCidrBlock") /* DestinationCidrBlock com.amazonaws.ec2#TransitGatewayRoute$DestinationCidrBlock */ => {
let var_1371 =
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_block(var_1371);
}
,
s if s.matches("prefixListId") /* PrefixListId com.amazonaws.ec2#TransitGatewayRoute$PrefixListId */ => {
let var_1372 =
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_1372);
}
,
s if s.matches("transitGatewayRouteTableAnnouncementId") /* TransitGatewayRouteTableAnnouncementId com.amazonaws.ec2#TransitGatewayRoute$TransitGatewayRouteTableAnnouncementId */ => {
let var_1373 =
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_transit_gateway_route_table_announcement_id(var_1373);
}
,
s if s.matches("transitGatewayAttachments") /* TransitGatewayAttachments com.amazonaws.ec2#TransitGatewayRoute$TransitGatewayAttachments */ => {
let var_1374 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_transit_gateway_route_attachment_list(&mut tag)
?
)
;
builder = builder.set_transit_gateway_attachments(var_1374);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#TransitGatewayRoute$Type */ => {
let var_1375 =
Some(
Result::<crate::model::TransitGatewayRouteType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::TransitGatewayRouteType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1375);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#TransitGatewayRoute$State */ => {
let var_1376 =
Some(
Result::<crate::model::TransitGatewayRouteState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::TransitGatewayRouteState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1376);
}
,
_ => {}
}
}
Ok(builder.build())
}
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 more