Struct aws_sdk_ec2::model::InstanceMaintenanceOptions
source · #[non_exhaustive]pub struct InstanceMaintenanceOptions { /* private fields */ }
Expand description
The maintenance options for the instance.
Implementations§
source§impl InstanceMaintenanceOptions
impl InstanceMaintenanceOptions
sourcepub fn auto_recovery(&self) -> Option<&InstanceAutoRecoveryState>
pub fn auto_recovery(&self) -> Option<&InstanceAutoRecoveryState>
Provides information on the current automatic recovery behavior of your instance.
source§impl InstanceMaintenanceOptions
impl InstanceMaintenanceOptions
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture InstanceMaintenanceOptions
.
Examples found in repository?
src/xml_deser.rs (line 63132)
63128 63129 63130 63131 63132 63133 63134 63135 63136 63137 63138 63139 63140 63141 63142 63143 63144 63145 63146 63147 63148 63149 63150 63151 63152 63153
pub fn deser_structure_crate_model_instance_maintenance_options(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InstanceMaintenanceOptions, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InstanceMaintenanceOptions::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("autoRecovery") /* AutoRecovery com.amazonaws.ec2#InstanceMaintenanceOptions$AutoRecovery */ => {
let var_3074 =
Some(
Result::<crate::model::InstanceAutoRecoveryState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceAutoRecoveryState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_auto_recovery(var_3074);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for InstanceMaintenanceOptions
impl Clone for InstanceMaintenanceOptions
source§fn clone(&self) -> InstanceMaintenanceOptions
fn clone(&self) -> InstanceMaintenanceOptions
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