Struct aws_sdk_ec2::model::efa_info::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for EfaInfo
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn maximum_efa_interfaces(self, input: i32) -> Self
pub fn maximum_efa_interfaces(self, input: i32) -> Self
The maximum number of Elastic Fabric Adapters for the instance type.
sourcepub fn set_maximum_efa_interfaces(self, input: Option<i32>) -> Self
pub fn set_maximum_efa_interfaces(self, input: Option<i32>) -> Self
The maximum number of Elastic Fabric Adapters for the instance type.
Examples found in repository?
src/xml_deser.rs (line 65537)
65518 65519 65520 65521 65522 65523 65524 65525 65526 65527 65528 65529 65530 65531 65532 65533 65534 65535 65536 65537 65538 65539 65540 65541 65542 65543 65544
pub fn deser_structure_crate_model_efa_info(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::EfaInfo, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::EfaInfo::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("maximumEfaInterfaces") /* MaximumEfaInterfaces com.amazonaws.ec2#EfaInfo$MaximumEfaInterfaces */ => {
let var_3228 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.ec2#MaximumEfaInterfaces`)"))
}
?
)
;
builder = builder.set_maximum_efa_interfaces(var_3228);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> EfaInfo
pub fn build(self) -> EfaInfo
Consumes the builder and constructs a EfaInfo
.
Examples found in repository?
src/xml_deser.rs (line 65543)
65518 65519 65520 65521 65522 65523 65524 65525 65526 65527 65528 65529 65530 65531 65532 65533 65534 65535 65536 65537 65538 65539 65540 65541 65542 65543 65544
pub fn deser_structure_crate_model_efa_info(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::EfaInfo, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::EfaInfo::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("maximumEfaInterfaces") /* MaximumEfaInterfaces com.amazonaws.ec2#EfaInfo$MaximumEfaInterfaces */ => {
let var_3228 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.ec2#MaximumEfaInterfaces`)"))
}
?
)
;
builder = builder.set_maximum_efa_interfaces(var_3228);
}
,
_ => {}
}
}
Ok(builder.build())
}