pub struct Builder { /* private fields */ }
Expand description
A builder for ModifyInstanceEventWindowOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn instance_event_window(self, input: InstanceEventWindow) -> Self
pub fn instance_event_window(self, input: InstanceEventWindow) -> Self
Information about the event window.
sourcepub fn set_instance_event_window(
self,
input: Option<InstanceEventWindow>
) -> Self
pub fn set_instance_event_window(
self,
input: Option<InstanceEventWindow>
) -> Self
Information about the event window.
Examples found in repository?
src/xml_deser.rs (line 19917)
19889 19890 19891 19892 19893 19894 19895 19896 19897 19898 19899 19900 19901 19902 19903 19904 19905 19906 19907 19908 19909 19910 19911 19912 19913 19914 19915 19916 19917 19918 19919 19920 19921 19922 19923 19924
pub fn deser_operation_crate_operation_modify_instance_event_window(
inp: &[u8],
mut builder: crate::output::modify_instance_event_window_output::Builder,
) -> Result<
crate::output::modify_instance_event_window_output::Builder,
aws_smithy_xml::decode::XmlDecodeError,
> {
let mut doc = aws_smithy_xml::decode::Document::try_from(inp)?;
#[allow(unused_mut)]
let mut decoder = doc.root_element()?;
#[allow(unused_variables)]
let start_el = decoder.start_el();
if !(start_el.matches("ModifyInstanceEventWindowResponse")) {
return Err(aws_smithy_xml::decode::XmlDecodeError::custom(format!(
"invalid root, expected ModifyInstanceEventWindowResponse got {:?}",
start_el
)));
}
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("instanceEventWindow") /* InstanceEventWindow com.amazonaws.ec2.synthetic#ModifyInstanceEventWindowOutput$InstanceEventWindow */ => {
let var_768 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_event_window(&mut tag)
?
)
;
builder = builder.set_instance_event_window(var_768);
}
,
_ => {}
}
}
Ok(builder)
}
sourcepub fn build(self) -> ModifyInstanceEventWindowOutput
pub fn build(self) -> ModifyInstanceEventWindowOutput
Consumes the builder and constructs a ModifyInstanceEventWindowOutput
.
Examples found in repository?
src/operation_deser.rs (line 13479)
13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481
pub fn parse_modify_instance_event_window_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::ModifyInstanceEventWindowOutput,
crate::error::ModifyInstanceEventWindowError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::modify_instance_event_window_output::Builder::default();
let _ = response;
output = crate::xml_deser::deser_operation_crate_operation_modify_instance_event_window(
response.body().as_ref(),
output,
)
.map_err(crate::error::ModifyInstanceEventWindowError::unhandled)?;
output.build()
})
}