Struct aws_sdk_cloudfront::model::StatusCodes
source · #[non_exhaustive]pub struct StatusCodes { /* private fields */ }
Expand description
A complex data type for the status codes that you specify that, when returned by a primary origin, trigger CloudFront to failover to a second origin.
Implementations§
source§impl StatusCodes
impl StatusCodes
source§impl StatusCodes
impl StatusCodes
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StatusCodes
.
Examples found in repository?
src/xml_deser.rs (line 15509)
15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541
pub fn deser_structure_crate_model_status_codes(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StatusCodes, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StatusCodes::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Quantity") /* Quantity com.amazonaws.cloudfront#StatusCodes$Quantity */ => {
let var_659 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_quantity(var_659);
}
,
s if s.matches("Items") /* Items com.amazonaws.cloudfront#StatusCodes$Items */ => {
let var_660 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_status_code_list(&mut tag)
?
)
;
builder = builder.set_items(var_660);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for StatusCodes
impl Clone for StatusCodes
source§fn clone(&self) -> StatusCodes
fn clone(&self) -> StatusCodes
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