Struct aws_sdk_ec2::model::volume_status_details::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for VolumeStatusDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn name(self, input: VolumeStatusName) -> Self
pub fn name(self, input: VolumeStatusName) -> Self
The name of the volume status.
sourcepub fn set_name(self, input: Option<VolumeStatusName>) -> Self
pub fn set_name(self, input: Option<VolumeStatusName>) -> Self
The name of the volume status.
Examples found in repository?
src/xml_deser.rs (line 69976)
69958 69959 69960 69961 69962 69963 69964 69965 69966 69967 69968 69969 69970 69971 69972 69973 69974 69975 69976 69977 69978 69979 69980 69981 69982 69983 69984 69985 69986 69987 69988 69989 69990 69991 69992 69993 69994 69995 69996
pub fn deser_structure_crate_model_volume_status_details(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VolumeStatusDetails, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VolumeStatusDetails::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("name") /* Name com.amazonaws.ec2#VolumeStatusDetails$Name */ => {
let var_3462 =
Some(
Result::<crate::model::VolumeStatusName, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VolumeStatusName::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_name(var_3462);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#VolumeStatusDetails$Status */ => {
let var_3463 =
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_status(var_3463);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
The intended status of the volume status.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The intended status of the volume status.
Examples found in repository?
src/xml_deser.rs (line 69989)
69958 69959 69960 69961 69962 69963 69964 69965 69966 69967 69968 69969 69970 69971 69972 69973 69974 69975 69976 69977 69978 69979 69980 69981 69982 69983 69984 69985 69986 69987 69988 69989 69990 69991 69992 69993 69994 69995 69996
pub fn deser_structure_crate_model_volume_status_details(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VolumeStatusDetails, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VolumeStatusDetails::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("name") /* Name com.amazonaws.ec2#VolumeStatusDetails$Name */ => {
let var_3462 =
Some(
Result::<crate::model::VolumeStatusName, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VolumeStatusName::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_name(var_3462);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#VolumeStatusDetails$Status */ => {
let var_3463 =
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_status(var_3463);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> VolumeStatusDetails
pub fn build(self) -> VolumeStatusDetails
Consumes the builder and constructs a VolumeStatusDetails
.
Examples found in repository?
src/xml_deser.rs (line 69995)
69958 69959 69960 69961 69962 69963 69964 69965 69966 69967 69968 69969 69970 69971 69972 69973 69974 69975 69976 69977 69978 69979 69980 69981 69982 69983 69984 69985 69986 69987 69988 69989 69990 69991 69992 69993 69994 69995 69996
pub fn deser_structure_crate_model_volume_status_details(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VolumeStatusDetails, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VolumeStatusDetails::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("name") /* Name com.amazonaws.ec2#VolumeStatusDetails$Name */ => {
let var_3462 =
Some(
Result::<crate::model::VolumeStatusName, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VolumeStatusName::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_name(var_3462);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#VolumeStatusDetails$Status */ => {
let var_3463 =
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_status(var_3463);
}
,
_ => {}
}
}
Ok(builder.build())
}