#[non_exhaustive]pub struct OriginGroupFailoverCriteria { /* private fields */ }
Expand description
A complex data type that includes information about the failover criteria for an origin group, including the status codes for which CloudFront will failover from the primary origin to the second origin.
Implementations§
source§impl OriginGroupFailoverCriteria
impl OriginGroupFailoverCriteria
sourcepub fn status_codes(&self) -> Option<&StatusCodes>
pub fn status_codes(&self) -> Option<&StatusCodes>
The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second origin.
source§impl OriginGroupFailoverCriteria
impl OriginGroupFailoverCriteria
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture OriginGroupFailoverCriteria
.
Examples found in repository?
src/xml_deser.rs (line 15121)
15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138
pub fn deser_structure_crate_model_origin_group_failover_criteria(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::OriginGroupFailoverCriteria, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::OriginGroupFailoverCriteria::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StatusCodes") /* StatusCodes com.amazonaws.cloudfront#OriginGroupFailoverCriteria$StatusCodes */ => {
let var_642 =
Some(
crate::xml_deser::deser_structure_crate_model_status_codes(&mut tag)
?
)
;
builder = builder.set_status_codes(var_642);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for OriginGroupFailoverCriteria
impl Clone for OriginGroupFailoverCriteria
source§fn clone(&self) -> OriginGroupFailoverCriteria
fn clone(&self) -> OriginGroupFailoverCriteria
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