Struct aws_sdk_ec2::model::LocalGatewayRoute
source · #[non_exhaustive]pub struct LocalGatewayRoute { /* private fields */ }
Expand description
Describes a route for a local gateway route table.
Implementations§
source§impl LocalGatewayRoute
impl LocalGatewayRoute
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 local_gateway_virtual_interface_group_id(&self) -> Option<&str>
pub fn local_gateway_virtual_interface_group_id(&self) -> Option<&str>
The ID of the virtual interface group.
sourcepub fn type(&self) -> Option<&LocalGatewayRouteType>
pub fn type(&self) -> Option<&LocalGatewayRouteType>
The route type.
sourcepub fn state(&self) -> Option<&LocalGatewayRouteState>
pub fn state(&self) -> Option<&LocalGatewayRouteState>
The state of the route.
sourcepub fn local_gateway_route_table_id(&self) -> Option<&str>
pub fn local_gateway_route_table_id(&self) -> Option<&str>
The ID of the local gateway route table.
sourcepub fn local_gateway_route_table_arn(&self) -> Option<&str>
pub fn local_gateway_route_table_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the local gateway route table.
sourcepub fn owner_id(&self) -> Option<&str>
pub fn owner_id(&self) -> Option<&str>
The ID of the Amazon Web Services account that owns the local gateway route.
sourcepub fn coip_pool_id(&self) -> Option<&str>
pub fn coip_pool_id(&self) -> Option<&str>
The ID of the customer-owned address pool.
sourcepub fn network_interface_id(&self) -> Option<&str>
pub fn network_interface_id(&self) -> Option<&str>
The ID of the network interface.
source§impl LocalGatewayRoute
impl LocalGatewayRoute
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture LocalGatewayRoute
.
Examples found in repository?
src/xml_deser.rs (line 27993)
27989 27990 27991 27992 27993 27994 27995 27996 27997 27998 27999 28000 28001 28002 28003 28004 28005 28006 28007 28008 28009 28010 28011 28012 28013 28014 28015 28016 28017 28018 28019 28020 28021 28022 28023 28024 28025 28026 28027 28028 28029 28030 28031 28032 28033 28034 28035 28036 28037 28038 28039 28040 28041 28042 28043 28044 28045 28046 28047 28048 28049 28050 28051 28052 28053 28054 28055 28056 28057 28058 28059 28060 28061 28062 28063 28064 28065 28066 28067 28068 28069 28070 28071 28072 28073 28074 28075 28076 28077 28078 28079 28080 28081 28082 28083 28084 28085 28086 28087 28088 28089 28090 28091 28092 28093 28094 28095 28096 28097 28098 28099 28100 28101 28102 28103 28104 28105 28106 28107 28108 28109 28110 28111 28112 28113 28114 28115 28116 28117 28118 28119 28120 28121 28122 28123 28124 28125 28126 28127 28128 28129 28130 28131 28132
pub fn deser_structure_crate_model_local_gateway_route(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::LocalGatewayRoute, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::LocalGatewayRoute::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("destinationCidrBlock") /* DestinationCidrBlock com.amazonaws.ec2#LocalGatewayRoute$DestinationCidrBlock */ => {
let var_1149 =
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_1149);
}
,
s if s.matches("localGatewayVirtualInterfaceGroupId") /* LocalGatewayVirtualInterfaceGroupId com.amazonaws.ec2#LocalGatewayRoute$LocalGatewayVirtualInterfaceGroupId */ => {
let var_1150 =
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_local_gateway_virtual_interface_group_id(var_1150);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#LocalGatewayRoute$Type */ => {
let var_1151 =
Some(
Result::<crate::model::LocalGatewayRouteType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::LocalGatewayRouteType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1151);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#LocalGatewayRoute$State */ => {
let var_1152 =
Some(
Result::<crate::model::LocalGatewayRouteState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::LocalGatewayRouteState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1152);
}
,
s if s.matches("localGatewayRouteTableId") /* LocalGatewayRouteTableId com.amazonaws.ec2#LocalGatewayRoute$LocalGatewayRouteTableId */ => {
let var_1153 =
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_local_gateway_route_table_id(var_1153);
}
,
s if s.matches("localGatewayRouteTableArn") /* LocalGatewayRouteTableArn com.amazonaws.ec2#LocalGatewayRoute$LocalGatewayRouteTableArn */ => {
let var_1154 =
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_local_gateway_route_table_arn(var_1154);
}
,
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#LocalGatewayRoute$OwnerId */ => {
let var_1155 =
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_owner_id(var_1155);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#LocalGatewayRoute$SubnetId */ => {
let var_1156 =
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_subnet_id(var_1156);
}
,
s if s.matches("coipPoolId") /* CoipPoolId com.amazonaws.ec2#LocalGatewayRoute$CoipPoolId */ => {
let var_1157 =
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_coip_pool_id(var_1157);
}
,
s if s.matches("networkInterfaceId") /* NetworkInterfaceId com.amazonaws.ec2#LocalGatewayRoute$NetworkInterfaceId */ => {
let var_1158 =
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_network_interface_id(var_1158);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for LocalGatewayRoute
impl Clone for LocalGatewayRoute
source§fn clone(&self) -> LocalGatewayRoute
fn clone(&self) -> LocalGatewayRoute
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