Struct aws_sdk_ec2::model::validation_warning::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ValidationWarning
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn errors(self, input: ValidationError) -> Self
pub fn errors(self, input: ValidationError) -> Self
Appends an item to errors
.
To override the contents of this collection use set_errors
.
The error codes and error messages.
sourcepub fn set_errors(self, input: Option<Vec<ValidationError>>) -> Self
pub fn set_errors(self, input: Option<Vec<ValidationError>>) -> Self
The error codes and error messages.
Examples found in repository?
src/xml_deser.rs (line 27861)
27847 27848 27849 27850 27851 27852 27853 27854 27855 27856 27857 27858 27859 27860 27861 27862 27863 27864 27865 27866 27867 27868
pub fn deser_structure_crate_model_validation_warning(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ValidationWarning, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ValidationWarning::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#ValidationWarning$Errors */ => {
let var_1140 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1140);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> ValidationWarning
pub fn build(self) -> ValidationWarning
Consumes the builder and constructs a ValidationWarning
.
Examples found in repository?
src/xml_deser.rs (line 27867)
27847 27848 27849 27850 27851 27852 27853 27854 27855 27856 27857 27858 27859 27860 27861 27862 27863 27864 27865 27866 27867 27868
pub fn deser_structure_crate_model_validation_warning(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ValidationWarning, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ValidationWarning::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#ValidationWarning$Errors */ => {
let var_1140 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1140);
}
,
_ => {}
}
}
Ok(builder.build())
}