Struct aws_sdk_ec2::model::VpnConnectionDeviceType
source · #[non_exhaustive]pub struct VpnConnectionDeviceType { /* private fields */ }
Expand description
List of customer gateway devices that have a sample configuration file available for use. You can also see the list of device types with sample configuration files available under Your customer gateway device in the Amazon Web Services Site-to-Site VPN User Guide.
Implementations§
source§impl VpnConnectionDeviceType
impl VpnConnectionDeviceType
sourcepub fn vpn_connection_device_type_id(&self) -> Option<&str>
pub fn vpn_connection_device_type_id(&self) -> Option<&str>
Customer gateway device identifier.
source§impl VpnConnectionDeviceType
impl VpnConnectionDeviceType
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture VpnConnectionDeviceType
.
Examples found in repository?
src/xml_deser.rs (line 54151)
54147 54148 54149 54150 54151 54152 54153 54154 54155 54156 54157 54158 54159 54160 54161 54162 54163 54164 54165 54166 54167 54168 54169 54170 54171 54172 54173 54174 54175 54176 54177 54178 54179 54180 54181 54182 54183 54184 54185 54186 54187 54188 54189 54190 54191 54192 54193 54194 54195 54196 54197 54198 54199 54200 54201 54202 54203 54204 54205 54206 54207 54208 54209 54210
pub fn deser_structure_crate_model_vpn_connection_device_type(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpnConnectionDeviceType, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpnConnectionDeviceType::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("vpnConnectionDeviceTypeId") /* VpnConnectionDeviceTypeId com.amazonaws.ec2#VpnConnectionDeviceType$VpnConnectionDeviceTypeId */ => {
let var_2598 =
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_device_type_id(var_2598);
}
,
s if s.matches("vendor") /* Vendor com.amazonaws.ec2#VpnConnectionDeviceType$Vendor */ => {
let var_2599 =
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_vendor(var_2599);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#VpnConnectionDeviceType$Platform */ => {
let var_2600 =
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_platform(var_2600);
}
,
s if s.matches("software") /* Software com.amazonaws.ec2#VpnConnectionDeviceType$Software */ => {
let var_2601 =
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_software(var_2601);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for VpnConnectionDeviceType
impl Clone for VpnConnectionDeviceType
source§fn clone(&self) -> VpnConnectionDeviceType
fn clone(&self) -> VpnConnectionDeviceType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more