pub struct Builder { /* private fields */ }
Expand description
A builder for ElasticGpuSpecificationResponse
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
The elastic GPU type.
Examples found in repository?
src/xml_deser.rs (line 61637)
61620 61621 61622 61623 61624 61625 61626 61627 61628 61629 61630 61631 61632 61633 61634 61635 61636 61637 61638 61639 61640 61641 61642 61643 61644
pub fn deser_structure_crate_model_elastic_gpu_specification_response(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ElasticGpuSpecificationResponse, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ElasticGpuSpecificationResponse::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("type") /* Type com.amazonaws.ec2#ElasticGpuSpecificationResponse$Type */ => {
let var_3014 =
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_type(var_3014);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> ElasticGpuSpecificationResponse
pub fn build(self) -> ElasticGpuSpecificationResponse
Consumes the builder and constructs a ElasticGpuSpecificationResponse
.
Examples found in repository?
src/xml_deser.rs (line 61643)
61620 61621 61622 61623 61624 61625 61626 61627 61628 61629 61630 61631 61632 61633 61634 61635 61636 61637 61638 61639 61640 61641 61642 61643 61644
pub fn deser_structure_crate_model_elastic_gpu_specification_response(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ElasticGpuSpecificationResponse, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ElasticGpuSpecificationResponse::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("type") /* Type com.amazonaws.ec2#ElasticGpuSpecificationResponse$Type */ => {
let var_3014 =
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_type(var_3014);
}
,
_ => {}
}
}
Ok(builder.build())
}