Struct aws_sdk_ec2::model::additional_detail::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AdditionalDetail
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn additional_detail_type(self, input: impl Into<String>) -> Self
pub fn additional_detail_type(self, input: impl Into<String>) -> Self
The information type.
sourcepub fn set_additional_detail_type(self, input: Option<String>) -> Self
pub fn set_additional_detail_type(self, input: Option<String>) -> Self
The information type.
Examples found in repository?
src/xml_deser.rs (line 70457)
70440 70441 70442 70443 70444 70445 70446 70447 70448 70449 70450 70451 70452 70453 70454 70455 70456 70457 70458 70459 70460 70461 70462 70463 70464 70465 70466 70467 70468 70469 70470 70471 70472 70473 70474
pub fn deser_structure_crate_model_additional_detail(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AdditionalDetail, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AdditionalDetail::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("additionalDetailType") /* AdditionalDetailType com.amazonaws.ec2#AdditionalDetail$AdditionalDetailType */ => {
let var_3484 =
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_additional_detail_type(var_3484);
}
,
s if s.matches("component") /* Component com.amazonaws.ec2#AdditionalDetail$Component */ => {
let var_3485 =
Some(
crate::xml_deser::deser_structure_crate_model_analysis_component(&mut tag)
?
)
;
builder = builder.set_component(var_3485);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn component(self, input: AnalysisComponent) -> Self
pub fn component(self, input: AnalysisComponent) -> Self
The path component.
sourcepub fn set_component(self, input: Option<AnalysisComponent>) -> Self
pub fn set_component(self, input: Option<AnalysisComponent>) -> Self
The path component.
Examples found in repository?
src/xml_deser.rs (line 70467)
70440 70441 70442 70443 70444 70445 70446 70447 70448 70449 70450 70451 70452 70453 70454 70455 70456 70457 70458 70459 70460 70461 70462 70463 70464 70465 70466 70467 70468 70469 70470 70471 70472 70473 70474
pub fn deser_structure_crate_model_additional_detail(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AdditionalDetail, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AdditionalDetail::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("additionalDetailType") /* AdditionalDetailType com.amazonaws.ec2#AdditionalDetail$AdditionalDetailType */ => {
let var_3484 =
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_additional_detail_type(var_3484);
}
,
s if s.matches("component") /* Component com.amazonaws.ec2#AdditionalDetail$Component */ => {
let var_3485 =
Some(
crate::xml_deser::deser_structure_crate_model_analysis_component(&mut tag)
?
)
;
builder = builder.set_component(var_3485);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> AdditionalDetail
pub fn build(self) -> AdditionalDetail
Consumes the builder and constructs a AdditionalDetail
.
Examples found in repository?
src/xml_deser.rs (line 70473)
70440 70441 70442 70443 70444 70445 70446 70447 70448 70449 70450 70451 70452 70453 70454 70455 70456 70457 70458 70459 70460 70461 70462 70463 70464 70465 70466 70467 70468 70469 70470 70471 70472 70473 70474
pub fn deser_structure_crate_model_additional_detail(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AdditionalDetail, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AdditionalDetail::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("additionalDetailType") /* AdditionalDetailType com.amazonaws.ec2#AdditionalDetail$AdditionalDetailType */ => {
let var_3484 =
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_additional_detail_type(var_3484);
}
,
s if s.matches("component") /* Component com.amazonaws.ec2#AdditionalDetail$Component */ => {
let var_3485 =
Some(
crate::xml_deser::deser_structure_crate_model_analysis_component(&mut tag)
?
)
;
builder = builder.set_component(var_3485);
}
,
_ => {}
}
}
Ok(builder.build())
}