Struct aws_sdk_ec2::model::vpn_connection::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for VpnConnection
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn customer_gateway_configuration(self, input: impl Into<String>) -> Self
pub fn customer_gateway_configuration(self, input: impl Into<String>) -> Self
The configuration information for the VPN connection's customer gateway (in the native XML format). This element is always present in the CreateVpnConnection
response; however, it's present in the DescribeVpnConnections
response only if the VPN connection is in the pending
or available
state.
sourcepub fn set_customer_gateway_configuration(self, input: Option<String>) -> Self
pub fn set_customer_gateway_configuration(self, input: Option<String>) -> Self
The configuration information for the VPN connection's customer gateway (in the native XML format). This element is always present in the CreateVpnConnection
response; however, it's present in the DescribeVpnConnections
response only if the VPN connection is in the pending
or available
state.
Examples found in repository?
32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278
pub fn deser_structure_crate_model_vpn_connection(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpnConnection, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpnConnection::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("customerGatewayConfiguration") /* CustomerGatewayConfiguration com.amazonaws.ec2#VpnConnection$CustomerGatewayConfiguration */ => {
let var_1436 =
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_customer_gateway_configuration(var_1436);
}
,
s if s.matches("customerGatewayId") /* CustomerGatewayId com.amazonaws.ec2#VpnConnection$CustomerGatewayId */ => {
let var_1437 =
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_customer_gateway_id(var_1437);
}
,
s if s.matches("category") /* Category com.amazonaws.ec2#VpnConnection$Category */ => {
let var_1438 =
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_category(var_1438);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#VpnConnection$State */ => {
let var_1439 =
Some(
Result::<crate::model::VpnState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpnState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1439);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#VpnConnection$Type */ => {
let var_1440 =
Some(
Result::<crate::model::GatewayType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1440);
}
,
s if s.matches("vpnConnectionId") /* VpnConnectionId com.amazonaws.ec2#VpnConnection$VpnConnectionId */ => {
let var_1441 =
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_vpn_connection_id(var_1441);
}
,
s if s.matches("vpnGatewayId") /* VpnGatewayId com.amazonaws.ec2#VpnConnection$VpnGatewayId */ => {
let var_1442 =
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_vpn_gateway_id(var_1442);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#VpnConnection$TransitGatewayId */ => {
let var_1443 =
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_id(var_1443);
}
,
s if s.matches("coreNetworkArn") /* CoreNetworkArn com.amazonaws.ec2#VpnConnection$CoreNetworkArn */ => {
let var_1444 =
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_core_network_arn(var_1444);
}
,
s if s.matches("coreNetworkAttachmentArn") /* CoreNetworkAttachmentArn com.amazonaws.ec2#VpnConnection$CoreNetworkAttachmentArn */ => {
let var_1445 =
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_core_network_attachment_arn(var_1445);
}
,
s if s.matches("gatewayAssociationState") /* GatewayAssociationState com.amazonaws.ec2#VpnConnection$GatewayAssociationState */ => {
let var_1446 =
Some(
Result::<crate::model::GatewayAssociationState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayAssociationState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_gateway_association_state(var_1446);
}
,
s if s.matches("options") /* Options com.amazonaws.ec2#VpnConnection$Options */ => {
let var_1447 =
Some(
crate::xml_deser::deser_structure_crate_model_vpn_connection_options(&mut tag)
?
)
;
builder = builder.set_options(var_1447);
}
,
s if s.matches("routes") /* Routes com.amazonaws.ec2#VpnConnection$Routes */ => {
let var_1448 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vpn_static_route_list(&mut tag)
?
)
;
builder = builder.set_routes(var_1448);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#VpnConnection$Tags */ => {
let var_1449 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1449);
}
,
s if s.matches("vgwTelemetry") /* VgwTelemetry com.amazonaws.ec2#VpnConnection$VgwTelemetry */ => {
let var_1450 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vgw_telemetry_list(&mut tag)
?
)
;
builder = builder.set_vgw_telemetry(var_1450);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn customer_gateway_id(self, input: impl Into<String>) -> Self
pub fn customer_gateway_id(self, input: impl Into<String>) -> Self
The ID of the customer gateway at your end of the VPN connection.
sourcepub fn set_customer_gateway_id(self, input: Option<String>) -> Self
pub fn set_customer_gateway_id(self, input: Option<String>) -> Self
The ID of the customer gateway at your end of the VPN connection.
Examples found in repository?
32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278
pub fn deser_structure_crate_model_vpn_connection(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpnConnection, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpnConnection::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("customerGatewayConfiguration") /* CustomerGatewayConfiguration com.amazonaws.ec2#VpnConnection$CustomerGatewayConfiguration */ => {
let var_1436 =
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_customer_gateway_configuration(var_1436);
}
,
s if s.matches("customerGatewayId") /* CustomerGatewayId com.amazonaws.ec2#VpnConnection$CustomerGatewayId */ => {
let var_1437 =
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_customer_gateway_id(var_1437);
}
,
s if s.matches("category") /* Category com.amazonaws.ec2#VpnConnection$Category */ => {
let var_1438 =
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_category(var_1438);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#VpnConnection$State */ => {
let var_1439 =
Some(
Result::<crate::model::VpnState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpnState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1439);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#VpnConnection$Type */ => {
let var_1440 =
Some(
Result::<crate::model::GatewayType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1440);
}
,
s if s.matches("vpnConnectionId") /* VpnConnectionId com.amazonaws.ec2#VpnConnection$VpnConnectionId */ => {
let var_1441 =
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_vpn_connection_id(var_1441);
}
,
s if s.matches("vpnGatewayId") /* VpnGatewayId com.amazonaws.ec2#VpnConnection$VpnGatewayId */ => {
let var_1442 =
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_vpn_gateway_id(var_1442);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#VpnConnection$TransitGatewayId */ => {
let var_1443 =
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_id(var_1443);
}
,
s if s.matches("coreNetworkArn") /* CoreNetworkArn com.amazonaws.ec2#VpnConnection$CoreNetworkArn */ => {
let var_1444 =
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_core_network_arn(var_1444);
}
,
s if s.matches("coreNetworkAttachmentArn") /* CoreNetworkAttachmentArn com.amazonaws.ec2#VpnConnection$CoreNetworkAttachmentArn */ => {
let var_1445 =
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_core_network_attachment_arn(var_1445);
}
,
s if s.matches("gatewayAssociationState") /* GatewayAssociationState com.amazonaws.ec2#VpnConnection$GatewayAssociationState */ => {
let var_1446 =
Some(
Result::<crate::model::GatewayAssociationState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayAssociationState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_gateway_association_state(var_1446);
}
,
s if s.matches("options") /* Options com.amazonaws.ec2#VpnConnection$Options */ => {
let var_1447 =
Some(
crate::xml_deser::deser_structure_crate_model_vpn_connection_options(&mut tag)
?
)
;
builder = builder.set_options(var_1447);
}
,
s if s.matches("routes") /* Routes com.amazonaws.ec2#VpnConnection$Routes */ => {
let var_1448 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vpn_static_route_list(&mut tag)
?
)
;
builder = builder.set_routes(var_1448);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#VpnConnection$Tags */ => {
let var_1449 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1449);
}
,
s if s.matches("vgwTelemetry") /* VgwTelemetry com.amazonaws.ec2#VpnConnection$VgwTelemetry */ => {
let var_1450 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vgw_telemetry_list(&mut tag)
?
)
;
builder = builder.set_vgw_telemetry(var_1450);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn category(self, input: impl Into<String>) -> Self
pub fn category(self, input: impl Into<String>) -> Self
The category of the VPN connection. A value of VPN
indicates an Amazon Web Services VPN connection. A value of VPN-Classic
indicates an Amazon Web Services Classic VPN connection.
sourcepub fn set_category(self, input: Option<String>) -> Self
pub fn set_category(self, input: Option<String>) -> Self
The category of the VPN connection. A value of VPN
indicates an Amazon Web Services VPN connection. A value of VPN-Classic
indicates an Amazon Web Services Classic VPN connection.
Examples found in repository?
32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278
pub fn deser_structure_crate_model_vpn_connection(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpnConnection, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpnConnection::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("customerGatewayConfiguration") /* CustomerGatewayConfiguration com.amazonaws.ec2#VpnConnection$CustomerGatewayConfiguration */ => {
let var_1436 =
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_customer_gateway_configuration(var_1436);
}
,
s if s.matches("customerGatewayId") /* CustomerGatewayId com.amazonaws.ec2#VpnConnection$CustomerGatewayId */ => {
let var_1437 =
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_customer_gateway_id(var_1437);
}
,
s if s.matches("category") /* Category com.amazonaws.ec2#VpnConnection$Category */ => {
let var_1438 =
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_category(var_1438);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#VpnConnection$State */ => {
let var_1439 =
Some(
Result::<crate::model::VpnState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpnState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1439);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#VpnConnection$Type */ => {
let var_1440 =
Some(
Result::<crate::model::GatewayType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1440);
}
,
s if s.matches("vpnConnectionId") /* VpnConnectionId com.amazonaws.ec2#VpnConnection$VpnConnectionId */ => {
let var_1441 =
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_vpn_connection_id(var_1441);
}
,
s if s.matches("vpnGatewayId") /* VpnGatewayId com.amazonaws.ec2#VpnConnection$VpnGatewayId */ => {
let var_1442 =
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_vpn_gateway_id(var_1442);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#VpnConnection$TransitGatewayId */ => {
let var_1443 =
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_id(var_1443);
}
,
s if s.matches("coreNetworkArn") /* CoreNetworkArn com.amazonaws.ec2#VpnConnection$CoreNetworkArn */ => {
let var_1444 =
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_core_network_arn(var_1444);
}
,
s if s.matches("coreNetworkAttachmentArn") /* CoreNetworkAttachmentArn com.amazonaws.ec2#VpnConnection$CoreNetworkAttachmentArn */ => {
let var_1445 =
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_core_network_attachment_arn(var_1445);
}
,
s if s.matches("gatewayAssociationState") /* GatewayAssociationState com.amazonaws.ec2#VpnConnection$GatewayAssociationState */ => {
let var_1446 =
Some(
Result::<crate::model::GatewayAssociationState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayAssociationState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_gateway_association_state(var_1446);
}
,
s if s.matches("options") /* Options com.amazonaws.ec2#VpnConnection$Options */ => {
let var_1447 =
Some(
crate::xml_deser::deser_structure_crate_model_vpn_connection_options(&mut tag)
?
)
;
builder = builder.set_options(var_1447);
}
,
s if s.matches("routes") /* Routes com.amazonaws.ec2#VpnConnection$Routes */ => {
let var_1448 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vpn_static_route_list(&mut tag)
?
)
;
builder = builder.set_routes(var_1448);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#VpnConnection$Tags */ => {
let var_1449 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1449);
}
,
s if s.matches("vgwTelemetry") /* VgwTelemetry com.amazonaws.ec2#VpnConnection$VgwTelemetry */ => {
let var_1450 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vgw_telemetry_list(&mut tag)
?
)
;
builder = builder.set_vgw_telemetry(var_1450);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn set_state(self, input: Option<VpnState>) -> Self
pub fn set_state(self, input: Option<VpnState>) -> Self
The current state of the VPN connection.
Examples found in repository?
32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278
pub fn deser_structure_crate_model_vpn_connection(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpnConnection, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpnConnection::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("customerGatewayConfiguration") /* CustomerGatewayConfiguration com.amazonaws.ec2#VpnConnection$CustomerGatewayConfiguration */ => {
let var_1436 =
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_customer_gateway_configuration(var_1436);
}
,
s if s.matches("customerGatewayId") /* CustomerGatewayId com.amazonaws.ec2#VpnConnection$CustomerGatewayId */ => {
let var_1437 =
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_customer_gateway_id(var_1437);
}
,
s if s.matches("category") /* Category com.amazonaws.ec2#VpnConnection$Category */ => {
let var_1438 =
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_category(var_1438);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#VpnConnection$State */ => {
let var_1439 =
Some(
Result::<crate::model::VpnState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpnState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1439);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#VpnConnection$Type */ => {
let var_1440 =
Some(
Result::<crate::model::GatewayType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1440);
}
,
s if s.matches("vpnConnectionId") /* VpnConnectionId com.amazonaws.ec2#VpnConnection$VpnConnectionId */ => {
let var_1441 =
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_vpn_connection_id(var_1441);
}
,
s if s.matches("vpnGatewayId") /* VpnGatewayId com.amazonaws.ec2#VpnConnection$VpnGatewayId */ => {
let var_1442 =
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_vpn_gateway_id(var_1442);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#VpnConnection$TransitGatewayId */ => {
let var_1443 =
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_id(var_1443);
}
,
s if s.matches("coreNetworkArn") /* CoreNetworkArn com.amazonaws.ec2#VpnConnection$CoreNetworkArn */ => {
let var_1444 =
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_core_network_arn(var_1444);
}
,
s if s.matches("coreNetworkAttachmentArn") /* CoreNetworkAttachmentArn com.amazonaws.ec2#VpnConnection$CoreNetworkAttachmentArn */ => {
let var_1445 =
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_core_network_attachment_arn(var_1445);
}
,
s if s.matches("gatewayAssociationState") /* GatewayAssociationState com.amazonaws.ec2#VpnConnection$GatewayAssociationState */ => {
let var_1446 =
Some(
Result::<crate::model::GatewayAssociationState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayAssociationState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_gateway_association_state(var_1446);
}
,
s if s.matches("options") /* Options com.amazonaws.ec2#VpnConnection$Options */ => {
let var_1447 =
Some(
crate::xml_deser::deser_structure_crate_model_vpn_connection_options(&mut tag)
?
)
;
builder = builder.set_options(var_1447);
}
,
s if s.matches("routes") /* Routes com.amazonaws.ec2#VpnConnection$Routes */ => {
let var_1448 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vpn_static_route_list(&mut tag)
?
)
;
builder = builder.set_routes(var_1448);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#VpnConnection$Tags */ => {
let var_1449 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1449);
}
,
s if s.matches("vgwTelemetry") /* VgwTelemetry com.amazonaws.ec2#VpnConnection$VgwTelemetry */ => {
let var_1450 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vgw_telemetry_list(&mut tag)
?
)
;
builder = builder.set_vgw_telemetry(var_1450);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn type(self, input: GatewayType) -> Self
pub fn type(self, input: GatewayType) -> Self
The type of VPN connection.
sourcepub fn set_type(self, input: Option<GatewayType>) -> Self
pub fn set_type(self, input: Option<GatewayType>) -> Self
The type of VPN connection.
Examples found in repository?
32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278
pub fn deser_structure_crate_model_vpn_connection(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpnConnection, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpnConnection::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("customerGatewayConfiguration") /* CustomerGatewayConfiguration com.amazonaws.ec2#VpnConnection$CustomerGatewayConfiguration */ => {
let var_1436 =
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_customer_gateway_configuration(var_1436);
}
,
s if s.matches("customerGatewayId") /* CustomerGatewayId com.amazonaws.ec2#VpnConnection$CustomerGatewayId */ => {
let var_1437 =
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_customer_gateway_id(var_1437);
}
,
s if s.matches("category") /* Category com.amazonaws.ec2#VpnConnection$Category */ => {
let var_1438 =
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_category(var_1438);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#VpnConnection$State */ => {
let var_1439 =
Some(
Result::<crate::model::VpnState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpnState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1439);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#VpnConnection$Type */ => {
let var_1440 =
Some(
Result::<crate::model::GatewayType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1440);
}
,
s if s.matches("vpnConnectionId") /* VpnConnectionId com.amazonaws.ec2#VpnConnection$VpnConnectionId */ => {
let var_1441 =
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_vpn_connection_id(var_1441);
}
,
s if s.matches("vpnGatewayId") /* VpnGatewayId com.amazonaws.ec2#VpnConnection$VpnGatewayId */ => {
let var_1442 =
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_vpn_gateway_id(var_1442);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#VpnConnection$TransitGatewayId */ => {
let var_1443 =
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_id(var_1443);
}
,
s if s.matches("coreNetworkArn") /* CoreNetworkArn com.amazonaws.ec2#VpnConnection$CoreNetworkArn */ => {
let var_1444 =
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_core_network_arn(var_1444);
}
,
s if s.matches("coreNetworkAttachmentArn") /* CoreNetworkAttachmentArn com.amazonaws.ec2#VpnConnection$CoreNetworkAttachmentArn */ => {
let var_1445 =
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_core_network_attachment_arn(var_1445);
}
,
s if s.matches("gatewayAssociationState") /* GatewayAssociationState com.amazonaws.ec2#VpnConnection$GatewayAssociationState */ => {
let var_1446 =
Some(
Result::<crate::model::GatewayAssociationState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayAssociationState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_gateway_association_state(var_1446);
}
,
s if s.matches("options") /* Options com.amazonaws.ec2#VpnConnection$Options */ => {
let var_1447 =
Some(
crate::xml_deser::deser_structure_crate_model_vpn_connection_options(&mut tag)
?
)
;
builder = builder.set_options(var_1447);
}
,
s if s.matches("routes") /* Routes com.amazonaws.ec2#VpnConnection$Routes */ => {
let var_1448 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vpn_static_route_list(&mut tag)
?
)
;
builder = builder.set_routes(var_1448);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#VpnConnection$Tags */ => {
let var_1449 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1449);
}
,
s if s.matches("vgwTelemetry") /* VgwTelemetry com.amazonaws.ec2#VpnConnection$VgwTelemetry */ => {
let var_1450 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vgw_telemetry_list(&mut tag)
?
)
;
builder = builder.set_vgw_telemetry(var_1450);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn vpn_connection_id(self, input: impl Into<String>) -> Self
pub fn vpn_connection_id(self, input: impl Into<String>) -> Self
The ID of the VPN connection.
sourcepub fn set_vpn_connection_id(self, input: Option<String>) -> Self
pub fn set_vpn_connection_id(self, input: Option<String>) -> Self
The ID of the VPN connection.
Examples found in repository?
32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278
pub fn deser_structure_crate_model_vpn_connection(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpnConnection, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpnConnection::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("customerGatewayConfiguration") /* CustomerGatewayConfiguration com.amazonaws.ec2#VpnConnection$CustomerGatewayConfiguration */ => {
let var_1436 =
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_customer_gateway_configuration(var_1436);
}
,
s if s.matches("customerGatewayId") /* CustomerGatewayId com.amazonaws.ec2#VpnConnection$CustomerGatewayId */ => {
let var_1437 =
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_customer_gateway_id(var_1437);
}
,
s if s.matches("category") /* Category com.amazonaws.ec2#VpnConnection$Category */ => {
let var_1438 =
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_category(var_1438);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#VpnConnection$State */ => {
let var_1439 =
Some(
Result::<crate::model::VpnState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpnState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1439);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#VpnConnection$Type */ => {
let var_1440 =
Some(
Result::<crate::model::GatewayType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1440);
}
,
s if s.matches("vpnConnectionId") /* VpnConnectionId com.amazonaws.ec2#VpnConnection$VpnConnectionId */ => {
let var_1441 =
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_vpn_connection_id(var_1441);
}
,
s if s.matches("vpnGatewayId") /* VpnGatewayId com.amazonaws.ec2#VpnConnection$VpnGatewayId */ => {
let var_1442 =
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_vpn_gateway_id(var_1442);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#VpnConnection$TransitGatewayId */ => {
let var_1443 =
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_id(var_1443);
}
,
s if s.matches("coreNetworkArn") /* CoreNetworkArn com.amazonaws.ec2#VpnConnection$CoreNetworkArn */ => {
let var_1444 =
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_core_network_arn(var_1444);
}
,
s if s.matches("coreNetworkAttachmentArn") /* CoreNetworkAttachmentArn com.amazonaws.ec2#VpnConnection$CoreNetworkAttachmentArn */ => {
let var_1445 =
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_core_network_attachment_arn(var_1445);
}
,
s if s.matches("gatewayAssociationState") /* GatewayAssociationState com.amazonaws.ec2#VpnConnection$GatewayAssociationState */ => {
let var_1446 =
Some(
Result::<crate::model::GatewayAssociationState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayAssociationState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_gateway_association_state(var_1446);
}
,
s if s.matches("options") /* Options com.amazonaws.ec2#VpnConnection$Options */ => {
let var_1447 =
Some(
crate::xml_deser::deser_structure_crate_model_vpn_connection_options(&mut tag)
?
)
;
builder = builder.set_options(var_1447);
}
,
s if s.matches("routes") /* Routes com.amazonaws.ec2#VpnConnection$Routes */ => {
let var_1448 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vpn_static_route_list(&mut tag)
?
)
;
builder = builder.set_routes(var_1448);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#VpnConnection$Tags */ => {
let var_1449 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1449);
}
,
s if s.matches("vgwTelemetry") /* VgwTelemetry com.amazonaws.ec2#VpnConnection$VgwTelemetry */ => {
let var_1450 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vgw_telemetry_list(&mut tag)
?
)
;
builder = builder.set_vgw_telemetry(var_1450);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn vpn_gateway_id(self, input: impl Into<String>) -> Self
pub fn vpn_gateway_id(self, input: impl Into<String>) -> Self
The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection.
sourcepub fn set_vpn_gateway_id(self, input: Option<String>) -> Self
pub fn set_vpn_gateway_id(self, input: Option<String>) -> Self
The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection.
Examples found in repository?
32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278
pub fn deser_structure_crate_model_vpn_connection(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpnConnection, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpnConnection::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("customerGatewayConfiguration") /* CustomerGatewayConfiguration com.amazonaws.ec2#VpnConnection$CustomerGatewayConfiguration */ => {
let var_1436 =
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_customer_gateway_configuration(var_1436);
}
,
s if s.matches("customerGatewayId") /* CustomerGatewayId com.amazonaws.ec2#VpnConnection$CustomerGatewayId */ => {
let var_1437 =
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_customer_gateway_id(var_1437);
}
,
s if s.matches("category") /* Category com.amazonaws.ec2#VpnConnection$Category */ => {
let var_1438 =
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_category(var_1438);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#VpnConnection$State */ => {
let var_1439 =
Some(
Result::<crate::model::VpnState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpnState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1439);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#VpnConnection$Type */ => {
let var_1440 =
Some(
Result::<crate::model::GatewayType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1440);
}
,
s if s.matches("vpnConnectionId") /* VpnConnectionId com.amazonaws.ec2#VpnConnection$VpnConnectionId */ => {
let var_1441 =
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_vpn_connection_id(var_1441);
}
,
s if s.matches("vpnGatewayId") /* VpnGatewayId com.amazonaws.ec2#VpnConnection$VpnGatewayId */ => {
let var_1442 =
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_vpn_gateway_id(var_1442);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#VpnConnection$TransitGatewayId */ => {
let var_1443 =
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_id(var_1443);
}
,
s if s.matches("coreNetworkArn") /* CoreNetworkArn com.amazonaws.ec2#VpnConnection$CoreNetworkArn */ => {
let var_1444 =
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_core_network_arn(var_1444);
}
,
s if s.matches("coreNetworkAttachmentArn") /* CoreNetworkAttachmentArn com.amazonaws.ec2#VpnConnection$CoreNetworkAttachmentArn */ => {
let var_1445 =
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_core_network_attachment_arn(var_1445);
}
,
s if s.matches("gatewayAssociationState") /* GatewayAssociationState com.amazonaws.ec2#VpnConnection$GatewayAssociationState */ => {
let var_1446 =
Some(
Result::<crate::model::GatewayAssociationState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayAssociationState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_gateway_association_state(var_1446);
}
,
s if s.matches("options") /* Options com.amazonaws.ec2#VpnConnection$Options */ => {
let var_1447 =
Some(
crate::xml_deser::deser_structure_crate_model_vpn_connection_options(&mut tag)
?
)
;
builder = builder.set_options(var_1447);
}
,
s if s.matches("routes") /* Routes com.amazonaws.ec2#VpnConnection$Routes */ => {
let var_1448 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vpn_static_route_list(&mut tag)
?
)
;
builder = builder.set_routes(var_1448);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#VpnConnection$Tags */ => {
let var_1449 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1449);
}
,
s if s.matches("vgwTelemetry") /* VgwTelemetry com.amazonaws.ec2#VpnConnection$VgwTelemetry */ => {
let var_1450 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vgw_telemetry_list(&mut tag)
?
)
;
builder = builder.set_vgw_telemetry(var_1450);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn transit_gateway_id(self, input: impl Into<String>) -> Self
pub fn transit_gateway_id(self, input: impl Into<String>) -> Self
The ID of the transit gateway associated with the VPN connection.
sourcepub fn set_transit_gateway_id(self, input: Option<String>) -> Self
pub fn set_transit_gateway_id(self, input: Option<String>) -> Self
The ID of the transit gateway associated with the VPN connection.
Examples found in repository?
32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278
pub fn deser_structure_crate_model_vpn_connection(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpnConnection, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpnConnection::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("customerGatewayConfiguration") /* CustomerGatewayConfiguration com.amazonaws.ec2#VpnConnection$CustomerGatewayConfiguration */ => {
let var_1436 =
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_customer_gateway_configuration(var_1436);
}
,
s if s.matches("customerGatewayId") /* CustomerGatewayId com.amazonaws.ec2#VpnConnection$CustomerGatewayId */ => {
let var_1437 =
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_customer_gateway_id(var_1437);
}
,
s if s.matches("category") /* Category com.amazonaws.ec2#VpnConnection$Category */ => {
let var_1438 =
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_category(var_1438);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#VpnConnection$State */ => {
let var_1439 =
Some(
Result::<crate::model::VpnState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpnState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1439);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#VpnConnection$Type */ => {
let var_1440 =
Some(
Result::<crate::model::GatewayType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1440);
}
,
s if s.matches("vpnConnectionId") /* VpnConnectionId com.amazonaws.ec2#VpnConnection$VpnConnectionId */ => {
let var_1441 =
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_vpn_connection_id(var_1441);
}
,
s if s.matches("vpnGatewayId") /* VpnGatewayId com.amazonaws.ec2#VpnConnection$VpnGatewayId */ => {
let var_1442 =
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_vpn_gateway_id(var_1442);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#VpnConnection$TransitGatewayId */ => {
let var_1443 =
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_id(var_1443);
}
,
s if s.matches("coreNetworkArn") /* CoreNetworkArn com.amazonaws.ec2#VpnConnection$CoreNetworkArn */ => {
let var_1444 =
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_core_network_arn(var_1444);
}
,
s if s.matches("coreNetworkAttachmentArn") /* CoreNetworkAttachmentArn com.amazonaws.ec2#VpnConnection$CoreNetworkAttachmentArn */ => {
let var_1445 =
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_core_network_attachment_arn(var_1445);
}
,
s if s.matches("gatewayAssociationState") /* GatewayAssociationState com.amazonaws.ec2#VpnConnection$GatewayAssociationState */ => {
let var_1446 =
Some(
Result::<crate::model::GatewayAssociationState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayAssociationState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_gateway_association_state(var_1446);
}
,
s if s.matches("options") /* Options com.amazonaws.ec2#VpnConnection$Options */ => {
let var_1447 =
Some(
crate::xml_deser::deser_structure_crate_model_vpn_connection_options(&mut tag)
?
)
;
builder = builder.set_options(var_1447);
}
,
s if s.matches("routes") /* Routes com.amazonaws.ec2#VpnConnection$Routes */ => {
let var_1448 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vpn_static_route_list(&mut tag)
?
)
;
builder = builder.set_routes(var_1448);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#VpnConnection$Tags */ => {
let var_1449 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1449);
}
,
s if s.matches("vgwTelemetry") /* VgwTelemetry com.amazonaws.ec2#VpnConnection$VgwTelemetry */ => {
let var_1450 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vgw_telemetry_list(&mut tag)
?
)
;
builder = builder.set_vgw_telemetry(var_1450);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn core_network_arn(self, input: impl Into<String>) -> Self
pub fn core_network_arn(self, input: impl Into<String>) -> Self
The ARN of the core network.
sourcepub fn set_core_network_arn(self, input: Option<String>) -> Self
pub fn set_core_network_arn(self, input: Option<String>) -> Self
The ARN of the core network.
Examples found in repository?
32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278
pub fn deser_structure_crate_model_vpn_connection(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpnConnection, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpnConnection::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("customerGatewayConfiguration") /* CustomerGatewayConfiguration com.amazonaws.ec2#VpnConnection$CustomerGatewayConfiguration */ => {
let var_1436 =
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_customer_gateway_configuration(var_1436);
}
,
s if s.matches("customerGatewayId") /* CustomerGatewayId com.amazonaws.ec2#VpnConnection$CustomerGatewayId */ => {
let var_1437 =
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_customer_gateway_id(var_1437);
}
,
s if s.matches("category") /* Category com.amazonaws.ec2#VpnConnection$Category */ => {
let var_1438 =
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_category(var_1438);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#VpnConnection$State */ => {
let var_1439 =
Some(
Result::<crate::model::VpnState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpnState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1439);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#VpnConnection$Type */ => {
let var_1440 =
Some(
Result::<crate::model::GatewayType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1440);
}
,
s if s.matches("vpnConnectionId") /* VpnConnectionId com.amazonaws.ec2#VpnConnection$VpnConnectionId */ => {
let var_1441 =
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_vpn_connection_id(var_1441);
}
,
s if s.matches("vpnGatewayId") /* VpnGatewayId com.amazonaws.ec2#VpnConnection$VpnGatewayId */ => {
let var_1442 =
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_vpn_gateway_id(var_1442);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#VpnConnection$TransitGatewayId */ => {
let var_1443 =
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_id(var_1443);
}
,
s if s.matches("coreNetworkArn") /* CoreNetworkArn com.amazonaws.ec2#VpnConnection$CoreNetworkArn */ => {
let var_1444 =
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_core_network_arn(var_1444);
}
,
s if s.matches("coreNetworkAttachmentArn") /* CoreNetworkAttachmentArn com.amazonaws.ec2#VpnConnection$CoreNetworkAttachmentArn */ => {
let var_1445 =
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_core_network_attachment_arn(var_1445);
}
,
s if s.matches("gatewayAssociationState") /* GatewayAssociationState com.amazonaws.ec2#VpnConnection$GatewayAssociationState */ => {
let var_1446 =
Some(
Result::<crate::model::GatewayAssociationState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayAssociationState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_gateway_association_state(var_1446);
}
,
s if s.matches("options") /* Options com.amazonaws.ec2#VpnConnection$Options */ => {
let var_1447 =
Some(
crate::xml_deser::deser_structure_crate_model_vpn_connection_options(&mut tag)
?
)
;
builder = builder.set_options(var_1447);
}
,
s if s.matches("routes") /* Routes com.amazonaws.ec2#VpnConnection$Routes */ => {
let var_1448 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vpn_static_route_list(&mut tag)
?
)
;
builder = builder.set_routes(var_1448);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#VpnConnection$Tags */ => {
let var_1449 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1449);
}
,
s if s.matches("vgwTelemetry") /* VgwTelemetry com.amazonaws.ec2#VpnConnection$VgwTelemetry */ => {
let var_1450 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vgw_telemetry_list(&mut tag)
?
)
;
builder = builder.set_vgw_telemetry(var_1450);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn core_network_attachment_arn(self, input: impl Into<String>) -> Self
pub fn core_network_attachment_arn(self, input: impl Into<String>) -> Self
The ARN of the core network attachment.
sourcepub fn set_core_network_attachment_arn(self, input: Option<String>) -> Self
pub fn set_core_network_attachment_arn(self, input: Option<String>) -> Self
The ARN of the core network attachment.
Examples found in repository?
32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278
pub fn deser_structure_crate_model_vpn_connection(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpnConnection, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpnConnection::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("customerGatewayConfiguration") /* CustomerGatewayConfiguration com.amazonaws.ec2#VpnConnection$CustomerGatewayConfiguration */ => {
let var_1436 =
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_customer_gateway_configuration(var_1436);
}
,
s if s.matches("customerGatewayId") /* CustomerGatewayId com.amazonaws.ec2#VpnConnection$CustomerGatewayId */ => {
let var_1437 =
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_customer_gateway_id(var_1437);
}
,
s if s.matches("category") /* Category com.amazonaws.ec2#VpnConnection$Category */ => {
let var_1438 =
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_category(var_1438);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#VpnConnection$State */ => {
let var_1439 =
Some(
Result::<crate::model::VpnState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpnState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1439);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#VpnConnection$Type */ => {
let var_1440 =
Some(
Result::<crate::model::GatewayType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1440);
}
,
s if s.matches("vpnConnectionId") /* VpnConnectionId com.amazonaws.ec2#VpnConnection$VpnConnectionId */ => {
let var_1441 =
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_vpn_connection_id(var_1441);
}
,
s if s.matches("vpnGatewayId") /* VpnGatewayId com.amazonaws.ec2#VpnConnection$VpnGatewayId */ => {
let var_1442 =
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_vpn_gateway_id(var_1442);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#VpnConnection$TransitGatewayId */ => {
let var_1443 =
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_id(var_1443);
}
,
s if s.matches("coreNetworkArn") /* CoreNetworkArn com.amazonaws.ec2#VpnConnection$CoreNetworkArn */ => {
let var_1444 =
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_core_network_arn(var_1444);
}
,
s if s.matches("coreNetworkAttachmentArn") /* CoreNetworkAttachmentArn com.amazonaws.ec2#VpnConnection$CoreNetworkAttachmentArn */ => {
let var_1445 =
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_core_network_attachment_arn(var_1445);
}
,
s if s.matches("gatewayAssociationState") /* GatewayAssociationState com.amazonaws.ec2#VpnConnection$GatewayAssociationState */ => {
let var_1446 =
Some(
Result::<crate::model::GatewayAssociationState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayAssociationState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_gateway_association_state(var_1446);
}
,
s if s.matches("options") /* Options com.amazonaws.ec2#VpnConnection$Options */ => {
let var_1447 =
Some(
crate::xml_deser::deser_structure_crate_model_vpn_connection_options(&mut tag)
?
)
;
builder = builder.set_options(var_1447);
}
,
s if s.matches("routes") /* Routes com.amazonaws.ec2#VpnConnection$Routes */ => {
let var_1448 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vpn_static_route_list(&mut tag)
?
)
;
builder = builder.set_routes(var_1448);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#VpnConnection$Tags */ => {
let var_1449 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1449);
}
,
s if s.matches("vgwTelemetry") /* VgwTelemetry com.amazonaws.ec2#VpnConnection$VgwTelemetry */ => {
let var_1450 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vgw_telemetry_list(&mut tag)
?
)
;
builder = builder.set_vgw_telemetry(var_1450);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn gateway_association_state(self, input: GatewayAssociationState) -> Self
pub fn gateway_association_state(self, input: GatewayAssociationState) -> Self
The current state of the gateway association.
sourcepub fn set_gateway_association_state(
self,
input: Option<GatewayAssociationState>
) -> Self
pub fn set_gateway_association_state(
self,
input: Option<GatewayAssociationState>
) -> Self
The current state of the gateway association.
Examples found in repository?
32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278
pub fn deser_structure_crate_model_vpn_connection(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpnConnection, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpnConnection::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("customerGatewayConfiguration") /* CustomerGatewayConfiguration com.amazonaws.ec2#VpnConnection$CustomerGatewayConfiguration */ => {
let var_1436 =
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_customer_gateway_configuration(var_1436);
}
,
s if s.matches("customerGatewayId") /* CustomerGatewayId com.amazonaws.ec2#VpnConnection$CustomerGatewayId */ => {
let var_1437 =
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_customer_gateway_id(var_1437);
}
,
s if s.matches("category") /* Category com.amazonaws.ec2#VpnConnection$Category */ => {
let var_1438 =
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_category(var_1438);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#VpnConnection$State */ => {
let var_1439 =
Some(
Result::<crate::model::VpnState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpnState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1439);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#VpnConnection$Type */ => {
let var_1440 =
Some(
Result::<crate::model::GatewayType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1440);
}
,
s if s.matches("vpnConnectionId") /* VpnConnectionId com.amazonaws.ec2#VpnConnection$VpnConnectionId */ => {
let var_1441 =
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_vpn_connection_id(var_1441);
}
,
s if s.matches("vpnGatewayId") /* VpnGatewayId com.amazonaws.ec2#VpnConnection$VpnGatewayId */ => {
let var_1442 =
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_vpn_gateway_id(var_1442);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#VpnConnection$TransitGatewayId */ => {
let var_1443 =
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_id(var_1443);
}
,
s if s.matches("coreNetworkArn") /* CoreNetworkArn com.amazonaws.ec2#VpnConnection$CoreNetworkArn */ => {
let var_1444 =
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_core_network_arn(var_1444);
}
,
s if s.matches("coreNetworkAttachmentArn") /* CoreNetworkAttachmentArn com.amazonaws.ec2#VpnConnection$CoreNetworkAttachmentArn */ => {
let var_1445 =
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_core_network_attachment_arn(var_1445);
}
,
s if s.matches("gatewayAssociationState") /* GatewayAssociationState com.amazonaws.ec2#VpnConnection$GatewayAssociationState */ => {
let var_1446 =
Some(
Result::<crate::model::GatewayAssociationState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayAssociationState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_gateway_association_state(var_1446);
}
,
s if s.matches("options") /* Options com.amazonaws.ec2#VpnConnection$Options */ => {
let var_1447 =
Some(
crate::xml_deser::deser_structure_crate_model_vpn_connection_options(&mut tag)
?
)
;
builder = builder.set_options(var_1447);
}
,
s if s.matches("routes") /* Routes com.amazonaws.ec2#VpnConnection$Routes */ => {
let var_1448 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vpn_static_route_list(&mut tag)
?
)
;
builder = builder.set_routes(var_1448);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#VpnConnection$Tags */ => {
let var_1449 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1449);
}
,
s if s.matches("vgwTelemetry") /* VgwTelemetry com.amazonaws.ec2#VpnConnection$VgwTelemetry */ => {
let var_1450 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vgw_telemetry_list(&mut tag)
?
)
;
builder = builder.set_vgw_telemetry(var_1450);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn options(self, input: VpnConnectionOptions) -> Self
pub fn options(self, input: VpnConnectionOptions) -> Self
The VPN connection options.
sourcepub fn set_options(self, input: Option<VpnConnectionOptions>) -> Self
pub fn set_options(self, input: Option<VpnConnectionOptions>) -> Self
The VPN connection options.
Examples found in repository?
32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278
pub fn deser_structure_crate_model_vpn_connection(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpnConnection, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpnConnection::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("customerGatewayConfiguration") /* CustomerGatewayConfiguration com.amazonaws.ec2#VpnConnection$CustomerGatewayConfiguration */ => {
let var_1436 =
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_customer_gateway_configuration(var_1436);
}
,
s if s.matches("customerGatewayId") /* CustomerGatewayId com.amazonaws.ec2#VpnConnection$CustomerGatewayId */ => {
let var_1437 =
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_customer_gateway_id(var_1437);
}
,
s if s.matches("category") /* Category com.amazonaws.ec2#VpnConnection$Category */ => {
let var_1438 =
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_category(var_1438);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#VpnConnection$State */ => {
let var_1439 =
Some(
Result::<crate::model::VpnState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpnState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1439);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#VpnConnection$Type */ => {
let var_1440 =
Some(
Result::<crate::model::GatewayType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1440);
}
,
s if s.matches("vpnConnectionId") /* VpnConnectionId com.amazonaws.ec2#VpnConnection$VpnConnectionId */ => {
let var_1441 =
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_vpn_connection_id(var_1441);
}
,
s if s.matches("vpnGatewayId") /* VpnGatewayId com.amazonaws.ec2#VpnConnection$VpnGatewayId */ => {
let var_1442 =
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_vpn_gateway_id(var_1442);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#VpnConnection$TransitGatewayId */ => {
let var_1443 =
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_id(var_1443);
}
,
s if s.matches("coreNetworkArn") /* CoreNetworkArn com.amazonaws.ec2#VpnConnection$CoreNetworkArn */ => {
let var_1444 =
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_core_network_arn(var_1444);
}
,
s if s.matches("coreNetworkAttachmentArn") /* CoreNetworkAttachmentArn com.amazonaws.ec2#VpnConnection$CoreNetworkAttachmentArn */ => {
let var_1445 =
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_core_network_attachment_arn(var_1445);
}
,
s if s.matches("gatewayAssociationState") /* GatewayAssociationState com.amazonaws.ec2#VpnConnection$GatewayAssociationState */ => {
let var_1446 =
Some(
Result::<crate::model::GatewayAssociationState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayAssociationState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_gateway_association_state(var_1446);
}
,
s if s.matches("options") /* Options com.amazonaws.ec2#VpnConnection$Options */ => {
let var_1447 =
Some(
crate::xml_deser::deser_structure_crate_model_vpn_connection_options(&mut tag)
?
)
;
builder = builder.set_options(var_1447);
}
,
s if s.matches("routes") /* Routes com.amazonaws.ec2#VpnConnection$Routes */ => {
let var_1448 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vpn_static_route_list(&mut tag)
?
)
;
builder = builder.set_routes(var_1448);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#VpnConnection$Tags */ => {
let var_1449 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1449);
}
,
s if s.matches("vgwTelemetry") /* VgwTelemetry com.amazonaws.ec2#VpnConnection$VgwTelemetry */ => {
let var_1450 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vgw_telemetry_list(&mut tag)
?
)
;
builder = builder.set_vgw_telemetry(var_1450);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn routes(self, input: VpnStaticRoute) -> Self
pub fn routes(self, input: VpnStaticRoute) -> Self
Appends an item to routes
.
To override the contents of this collection use set_routes
.
The static routes associated with the VPN connection.
sourcepub fn set_routes(self, input: Option<Vec<VpnStaticRoute>>) -> Self
pub fn set_routes(self, input: Option<Vec<VpnStaticRoute>>) -> Self
The static routes associated with the VPN connection.
Examples found in repository?
32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278
pub fn deser_structure_crate_model_vpn_connection(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpnConnection, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpnConnection::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("customerGatewayConfiguration") /* CustomerGatewayConfiguration com.amazonaws.ec2#VpnConnection$CustomerGatewayConfiguration */ => {
let var_1436 =
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_customer_gateway_configuration(var_1436);
}
,
s if s.matches("customerGatewayId") /* CustomerGatewayId com.amazonaws.ec2#VpnConnection$CustomerGatewayId */ => {
let var_1437 =
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_customer_gateway_id(var_1437);
}
,
s if s.matches("category") /* Category com.amazonaws.ec2#VpnConnection$Category */ => {
let var_1438 =
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_category(var_1438);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#VpnConnection$State */ => {
let var_1439 =
Some(
Result::<crate::model::VpnState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpnState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1439);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#VpnConnection$Type */ => {
let var_1440 =
Some(
Result::<crate::model::GatewayType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1440);
}
,
s if s.matches("vpnConnectionId") /* VpnConnectionId com.amazonaws.ec2#VpnConnection$VpnConnectionId */ => {
let var_1441 =
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_vpn_connection_id(var_1441);
}
,
s if s.matches("vpnGatewayId") /* VpnGatewayId com.amazonaws.ec2#VpnConnection$VpnGatewayId */ => {
let var_1442 =
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_vpn_gateway_id(var_1442);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#VpnConnection$TransitGatewayId */ => {
let var_1443 =
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_id(var_1443);
}
,
s if s.matches("coreNetworkArn") /* CoreNetworkArn com.amazonaws.ec2#VpnConnection$CoreNetworkArn */ => {
let var_1444 =
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_core_network_arn(var_1444);
}
,
s if s.matches("coreNetworkAttachmentArn") /* CoreNetworkAttachmentArn com.amazonaws.ec2#VpnConnection$CoreNetworkAttachmentArn */ => {
let var_1445 =
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_core_network_attachment_arn(var_1445);
}
,
s if s.matches("gatewayAssociationState") /* GatewayAssociationState com.amazonaws.ec2#VpnConnection$GatewayAssociationState */ => {
let var_1446 =
Some(
Result::<crate::model::GatewayAssociationState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayAssociationState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_gateway_association_state(var_1446);
}
,
s if s.matches("options") /* Options com.amazonaws.ec2#VpnConnection$Options */ => {
let var_1447 =
Some(
crate::xml_deser::deser_structure_crate_model_vpn_connection_options(&mut tag)
?
)
;
builder = builder.set_options(var_1447);
}
,
s if s.matches("routes") /* Routes com.amazonaws.ec2#VpnConnection$Routes */ => {
let var_1448 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vpn_static_route_list(&mut tag)
?
)
;
builder = builder.set_routes(var_1448);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#VpnConnection$Tags */ => {
let var_1449 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1449);
}
,
s if s.matches("vgwTelemetry") /* VgwTelemetry com.amazonaws.ec2#VpnConnection$VgwTelemetry */ => {
let var_1450 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vgw_telemetry_list(&mut tag)
?
)
;
builder = builder.set_vgw_telemetry(var_1450);
}
,
_ => {}
}
}
Ok(builder.build())
}
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Any tags assigned to the VPN connection.
Any tags assigned to the VPN connection.
Examples found in repository?
32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278
pub fn deser_structure_crate_model_vpn_connection(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpnConnection, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpnConnection::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("customerGatewayConfiguration") /* CustomerGatewayConfiguration com.amazonaws.ec2#VpnConnection$CustomerGatewayConfiguration */ => {
let var_1436 =
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_customer_gateway_configuration(var_1436);
}
,
s if s.matches("customerGatewayId") /* CustomerGatewayId com.amazonaws.ec2#VpnConnection$CustomerGatewayId */ => {
let var_1437 =
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_customer_gateway_id(var_1437);
}
,
s if s.matches("category") /* Category com.amazonaws.ec2#VpnConnection$Category */ => {
let var_1438 =
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_category(var_1438);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#VpnConnection$State */ => {
let var_1439 =
Some(
Result::<crate::model::VpnState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpnState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1439);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#VpnConnection$Type */ => {
let var_1440 =
Some(
Result::<crate::model::GatewayType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1440);
}
,
s if s.matches("vpnConnectionId") /* VpnConnectionId com.amazonaws.ec2#VpnConnection$VpnConnectionId */ => {
let var_1441 =
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_vpn_connection_id(var_1441);
}
,
s if s.matches("vpnGatewayId") /* VpnGatewayId com.amazonaws.ec2#VpnConnection$VpnGatewayId */ => {
let var_1442 =
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_vpn_gateway_id(var_1442);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#VpnConnection$TransitGatewayId */ => {
let var_1443 =
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_id(var_1443);
}
,
s if s.matches("coreNetworkArn") /* CoreNetworkArn com.amazonaws.ec2#VpnConnection$CoreNetworkArn */ => {
let var_1444 =
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_core_network_arn(var_1444);
}
,
s if s.matches("coreNetworkAttachmentArn") /* CoreNetworkAttachmentArn com.amazonaws.ec2#VpnConnection$CoreNetworkAttachmentArn */ => {
let var_1445 =
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_core_network_attachment_arn(var_1445);
}
,
s if s.matches("gatewayAssociationState") /* GatewayAssociationState com.amazonaws.ec2#VpnConnection$GatewayAssociationState */ => {
let var_1446 =
Some(
Result::<crate::model::GatewayAssociationState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayAssociationState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_gateway_association_state(var_1446);
}
,
s if s.matches("options") /* Options com.amazonaws.ec2#VpnConnection$Options */ => {
let var_1447 =
Some(
crate::xml_deser::deser_structure_crate_model_vpn_connection_options(&mut tag)
?
)
;
builder = builder.set_options(var_1447);
}
,
s if s.matches("routes") /* Routes com.amazonaws.ec2#VpnConnection$Routes */ => {
let var_1448 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vpn_static_route_list(&mut tag)
?
)
;
builder = builder.set_routes(var_1448);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#VpnConnection$Tags */ => {
let var_1449 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1449);
}
,
s if s.matches("vgwTelemetry") /* VgwTelemetry com.amazonaws.ec2#VpnConnection$VgwTelemetry */ => {
let var_1450 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vgw_telemetry_list(&mut tag)
?
)
;
builder = builder.set_vgw_telemetry(var_1450);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn vgw_telemetry(self, input: VgwTelemetry) -> Self
pub fn vgw_telemetry(self, input: VgwTelemetry) -> Self
Appends an item to vgw_telemetry
.
To override the contents of this collection use set_vgw_telemetry
.
Information about the VPN tunnel.
sourcepub fn set_vgw_telemetry(self, input: Option<Vec<VgwTelemetry>>) -> Self
pub fn set_vgw_telemetry(self, input: Option<Vec<VgwTelemetry>>) -> Self
Information about the VPN tunnel.
Examples found in repository?
32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278
pub fn deser_structure_crate_model_vpn_connection(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpnConnection, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpnConnection::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("customerGatewayConfiguration") /* CustomerGatewayConfiguration com.amazonaws.ec2#VpnConnection$CustomerGatewayConfiguration */ => {
let var_1436 =
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_customer_gateway_configuration(var_1436);
}
,
s if s.matches("customerGatewayId") /* CustomerGatewayId com.amazonaws.ec2#VpnConnection$CustomerGatewayId */ => {
let var_1437 =
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_customer_gateway_id(var_1437);
}
,
s if s.matches("category") /* Category com.amazonaws.ec2#VpnConnection$Category */ => {
let var_1438 =
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_category(var_1438);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#VpnConnection$State */ => {
let var_1439 =
Some(
Result::<crate::model::VpnState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpnState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1439);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#VpnConnection$Type */ => {
let var_1440 =
Some(
Result::<crate::model::GatewayType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1440);
}
,
s if s.matches("vpnConnectionId") /* VpnConnectionId com.amazonaws.ec2#VpnConnection$VpnConnectionId */ => {
let var_1441 =
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_vpn_connection_id(var_1441);
}
,
s if s.matches("vpnGatewayId") /* VpnGatewayId com.amazonaws.ec2#VpnConnection$VpnGatewayId */ => {
let var_1442 =
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_vpn_gateway_id(var_1442);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#VpnConnection$TransitGatewayId */ => {
let var_1443 =
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_id(var_1443);
}
,
s if s.matches("coreNetworkArn") /* CoreNetworkArn com.amazonaws.ec2#VpnConnection$CoreNetworkArn */ => {
let var_1444 =
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_core_network_arn(var_1444);
}
,
s if s.matches("coreNetworkAttachmentArn") /* CoreNetworkAttachmentArn com.amazonaws.ec2#VpnConnection$CoreNetworkAttachmentArn */ => {
let var_1445 =
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_core_network_attachment_arn(var_1445);
}
,
s if s.matches("gatewayAssociationState") /* GatewayAssociationState com.amazonaws.ec2#VpnConnection$GatewayAssociationState */ => {
let var_1446 =
Some(
Result::<crate::model::GatewayAssociationState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayAssociationState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_gateway_association_state(var_1446);
}
,
s if s.matches("options") /* Options com.amazonaws.ec2#VpnConnection$Options */ => {
let var_1447 =
Some(
crate::xml_deser::deser_structure_crate_model_vpn_connection_options(&mut tag)
?
)
;
builder = builder.set_options(var_1447);
}
,
s if s.matches("routes") /* Routes com.amazonaws.ec2#VpnConnection$Routes */ => {
let var_1448 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vpn_static_route_list(&mut tag)
?
)
;
builder = builder.set_routes(var_1448);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#VpnConnection$Tags */ => {
let var_1449 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1449);
}
,
s if s.matches("vgwTelemetry") /* VgwTelemetry com.amazonaws.ec2#VpnConnection$VgwTelemetry */ => {
let var_1450 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vgw_telemetry_list(&mut tag)
?
)
;
builder = builder.set_vgw_telemetry(var_1450);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> VpnConnection
pub fn build(self) -> VpnConnection
Consumes the builder and constructs a VpnConnection
.
Examples found in repository?
32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278
pub fn deser_structure_crate_model_vpn_connection(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpnConnection, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpnConnection::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("customerGatewayConfiguration") /* CustomerGatewayConfiguration com.amazonaws.ec2#VpnConnection$CustomerGatewayConfiguration */ => {
let var_1436 =
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_customer_gateway_configuration(var_1436);
}
,
s if s.matches("customerGatewayId") /* CustomerGatewayId com.amazonaws.ec2#VpnConnection$CustomerGatewayId */ => {
let var_1437 =
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_customer_gateway_id(var_1437);
}
,
s if s.matches("category") /* Category com.amazonaws.ec2#VpnConnection$Category */ => {
let var_1438 =
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_category(var_1438);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#VpnConnection$State */ => {
let var_1439 =
Some(
Result::<crate::model::VpnState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpnState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1439);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#VpnConnection$Type */ => {
let var_1440 =
Some(
Result::<crate::model::GatewayType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1440);
}
,
s if s.matches("vpnConnectionId") /* VpnConnectionId com.amazonaws.ec2#VpnConnection$VpnConnectionId */ => {
let var_1441 =
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_vpn_connection_id(var_1441);
}
,
s if s.matches("vpnGatewayId") /* VpnGatewayId com.amazonaws.ec2#VpnConnection$VpnGatewayId */ => {
let var_1442 =
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_vpn_gateway_id(var_1442);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#VpnConnection$TransitGatewayId */ => {
let var_1443 =
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_id(var_1443);
}
,
s if s.matches("coreNetworkArn") /* CoreNetworkArn com.amazonaws.ec2#VpnConnection$CoreNetworkArn */ => {
let var_1444 =
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_core_network_arn(var_1444);
}
,
s if s.matches("coreNetworkAttachmentArn") /* CoreNetworkAttachmentArn com.amazonaws.ec2#VpnConnection$CoreNetworkAttachmentArn */ => {
let var_1445 =
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_core_network_attachment_arn(var_1445);
}
,
s if s.matches("gatewayAssociationState") /* GatewayAssociationState com.amazonaws.ec2#VpnConnection$GatewayAssociationState */ => {
let var_1446 =
Some(
Result::<crate::model::GatewayAssociationState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayAssociationState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_gateway_association_state(var_1446);
}
,
s if s.matches("options") /* Options com.amazonaws.ec2#VpnConnection$Options */ => {
let var_1447 =
Some(
crate::xml_deser::deser_structure_crate_model_vpn_connection_options(&mut tag)
?
)
;
builder = builder.set_options(var_1447);
}
,
s if s.matches("routes") /* Routes com.amazonaws.ec2#VpnConnection$Routes */ => {
let var_1448 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vpn_static_route_list(&mut tag)
?
)
;
builder = builder.set_routes(var_1448);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#VpnConnection$Tags */ => {
let var_1449 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1449);
}
,
s if s.matches("vgwTelemetry") /* VgwTelemetry com.amazonaws.ec2#VpnConnection$VgwTelemetry */ => {
let var_1450 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vgw_telemetry_list(&mut tag)
?
)
;
builder = builder.set_vgw_telemetry(var_1450);
}
,
_ => {}
}
}
Ok(builder.build())
}