Struct aws_sdk_ec2::model::InstanceEventWindow
source · #[non_exhaustive]pub struct InstanceEventWindow { /* private fields */ }
Expand description
The event window.
Implementations§
source§impl InstanceEventWindow
impl InstanceEventWindow
sourcepub fn instance_event_window_id(&self) -> Option<&str>
pub fn instance_event_window_id(&self) -> Option<&str>
The ID of the event window.
sourcepub fn time_ranges(&self) -> Option<&[InstanceEventWindowTimeRange]>
pub fn time_ranges(&self) -> Option<&[InstanceEventWindowTimeRange]>
One or more time ranges defined for the event window.
sourcepub fn cron_expression(&self) -> Option<&str>
pub fn cron_expression(&self) -> Option<&str>
The cron expression defined for the event window.
sourcepub fn association_target(
&self
) -> Option<&InstanceEventWindowAssociationTarget>
pub fn association_target(
&self
) -> Option<&InstanceEventWindowAssociationTarget>
One or more targets associated with the event window.
sourcepub fn state(&self) -> Option<&InstanceEventWindowState>
pub fn state(&self) -> Option<&InstanceEventWindowState>
The current state of the event window.
The instance tags associated with the event window.
source§impl InstanceEventWindow
impl InstanceEventWindow
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture InstanceEventWindow
.
Examples found in repository?
src/xml_deser.rs (line 24689)
24685 24686 24687 24688 24689 24690 24691 24692 24693 24694 24695 24696 24697 24698 24699 24700 24701 24702 24703 24704 24705 24706 24707 24708 24709 24710 24711 24712 24713 24714 24715 24716 24717 24718 24719 24720 24721 24722 24723 24724 24725 24726 24727 24728 24729 24730 24731 24732 24733 24734 24735 24736 24737 24738 24739 24740 24741 24742 24743 24744 24745 24746 24747 24748 24749 24750 24751 24752 24753 24754 24755 24756 24757 24758 24759 24760 24761 24762 24763 24764 24765 24766 24767 24768 24769 24770 24771 24772 24773 24774 24775 24776 24777 24778 24779
pub fn deser_structure_crate_model_instance_event_window(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InstanceEventWindow, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InstanceEventWindow::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("instanceEventWindowId") /* InstanceEventWindowId com.amazonaws.ec2#InstanceEventWindow$InstanceEventWindowId */ => {
let var_943 =
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_instance_event_window_id(var_943);
}
,
s if s.matches("timeRangeSet") /* TimeRanges com.amazonaws.ec2#InstanceEventWindow$TimeRanges */ => {
let var_944 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_event_window_time_range_list(&mut tag)
?
)
;
builder = builder.set_time_ranges(var_944);
}
,
s if s.matches("name") /* Name com.amazonaws.ec2#InstanceEventWindow$Name */ => {
let var_945 =
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_name(var_945);
}
,
s if s.matches("cronExpression") /* CronExpression com.amazonaws.ec2#InstanceEventWindow$CronExpression */ => {
let var_946 =
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_cron_expression(var_946);
}
,
s if s.matches("associationTarget") /* AssociationTarget com.amazonaws.ec2#InstanceEventWindow$AssociationTarget */ => {
let var_947 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_event_window_association_target(&mut tag)
?
)
;
builder = builder.set_association_target(var_947);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#InstanceEventWindow$State */ => {
let var_948 =
Some(
Result::<crate::model::InstanceEventWindowState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceEventWindowState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_948);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#InstanceEventWindow$Tags */ => {
let var_949 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_949);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for InstanceEventWindow
impl Clone for InstanceEventWindow
source§fn clone(&self) -> InstanceEventWindow
fn clone(&self) -> InstanceEventWindow
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