Struct aws_sdk_ec2::model::local_gateway_route::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for LocalGatewayRoute
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn destination_cidr_block(self, input: impl Into<String>) -> Self
pub fn destination_cidr_block(self, input: impl Into<String>) -> Self
The CIDR block used for destination matches.
sourcepub fn set_destination_cidr_block(self, input: Option<String>) -> Self
pub fn set_destination_cidr_block(self, input: Option<String>) -> Self
The CIDR block used for destination matches.
Examples found in repository?
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())
}
sourcepub fn local_gateway_virtual_interface_group_id(
self,
input: impl Into<String>
) -> Self
pub fn local_gateway_virtual_interface_group_id(
self,
input: impl Into<String>
) -> Self
The ID of the virtual interface group.
sourcepub fn set_local_gateway_virtual_interface_group_id(
self,
input: Option<String>
) -> Self
pub fn set_local_gateway_virtual_interface_group_id(
self,
input: Option<String>
) -> Self
The ID of the virtual interface group.
Examples found in repository?
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())
}
sourcepub fn type(self, input: LocalGatewayRouteType) -> Self
pub fn type(self, input: LocalGatewayRouteType) -> Self
The route type.
sourcepub fn set_type(self, input: Option<LocalGatewayRouteType>) -> Self
pub fn set_type(self, input: Option<LocalGatewayRouteType>) -> Self
The route type.
Examples found in repository?
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())
}
sourcepub fn state(self, input: LocalGatewayRouteState) -> Self
pub fn state(self, input: LocalGatewayRouteState) -> Self
The state of the route.
sourcepub fn set_state(self, input: Option<LocalGatewayRouteState>) -> Self
pub fn set_state(self, input: Option<LocalGatewayRouteState>) -> Self
The state of the route.
Examples found in repository?
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())
}
sourcepub fn local_gateway_route_table_id(self, input: impl Into<String>) -> Self
pub fn local_gateway_route_table_id(self, input: impl Into<String>) -> Self
The ID of the local gateway route table.
sourcepub fn set_local_gateway_route_table_id(self, input: Option<String>) -> Self
pub fn set_local_gateway_route_table_id(self, input: Option<String>) -> Self
The ID of the local gateway route table.
Examples found in repository?
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())
}
sourcepub fn local_gateway_route_table_arn(self, input: impl Into<String>) -> Self
pub fn local_gateway_route_table_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the local gateway route table.
sourcepub fn set_local_gateway_route_table_arn(self, input: Option<String>) -> Self
pub fn set_local_gateway_route_table_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the local gateway route table.
Examples found in repository?
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())
}
sourcepub fn owner_id(self, input: impl Into<String>) -> Self
pub fn owner_id(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services account that owns the local gateway route.
sourcepub fn set_owner_id(self, input: Option<String>) -> Self
pub fn set_owner_id(self, input: Option<String>) -> Self
The ID of the Amazon Web Services account that owns the local gateway route.
Examples found in repository?
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())
}
sourcepub fn set_subnet_id(self, input: Option<String>) -> Self
pub fn set_subnet_id(self, input: Option<String>) -> Self
The ID of the subnet.
Examples found in repository?
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())
}
sourcepub fn coip_pool_id(self, input: impl Into<String>) -> Self
pub fn coip_pool_id(self, input: impl Into<String>) -> Self
The ID of the customer-owned address pool.
sourcepub fn set_coip_pool_id(self, input: Option<String>) -> Self
pub fn set_coip_pool_id(self, input: Option<String>) -> Self
The ID of the customer-owned address pool.
Examples found in repository?
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())
}
sourcepub fn network_interface_id(self, input: impl Into<String>) -> Self
pub fn network_interface_id(self, input: impl Into<String>) -> Self
The ID of the network interface.
sourcepub fn set_network_interface_id(self, input: Option<String>) -> Self
pub fn set_network_interface_id(self, input: Option<String>) -> Self
The ID of the network interface.
Examples found in repository?
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())
}
sourcepub fn build(self) -> LocalGatewayRoute
pub fn build(self) -> LocalGatewayRoute
Consumes the builder and constructs a LocalGatewayRoute
.
Examples found in repository?
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())
}