Struct aws_sdk_ec2::model::ValidationError
source · #[non_exhaustive]pub struct ValidationError { /* private fields */ }
Expand description
The error code and error message that is returned for a parameter or parameter combination that is not valid when a new launch template or new version of a launch template is created.
Implementations§
source§impl ValidationError
impl ValidationError
sourcepub fn code(&self) -> Option<&str>
pub fn code(&self) -> Option<&str>
The error code that indicates why the parameter or parameter combination is not valid. For more information about error codes, see Error codes.
sourcepub fn message(&self) -> Option<&str>
pub fn message(&self) -> Option<&str>
The error message that describes why the parameter or parameter combination is not valid. For more information about error messages, see Error codes.
source§impl ValidationError
impl ValidationError
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ValidationError
.
Examples found in repository?
src/xml_deser.rs (line 56881)
56877 56878 56879 56880 56881 56882 56883 56884 56885 56886 56887 56888 56889 56890 56891 56892 56893 56894 56895 56896 56897 56898 56899 56900 56901 56902 56903 56904 56905 56906 56907 56908 56909 56910 56911 56912 56913 56914
pub fn deser_structure_crate_model_validation_error(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ValidationError, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ValidationError::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("code") /* Code com.amazonaws.ec2#ValidationError$Code */ => {
let var_2762 =
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_code(var_2762);
}
,
s if s.matches("message") /* Message com.amazonaws.ec2#ValidationError$Message */ => {
let var_2763 =
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_message(var_2763);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ValidationError
impl Clone for ValidationError
source§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more