pub struct Builder { /* private fields */ }
Expand description
A builder for InstanceEventWindowAssociationTarget
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn instance_ids(self, input: impl Into<String>) -> Self
pub fn instance_ids(self, input: impl Into<String>) -> Self
Appends an item to instance_ids
.
To override the contents of this collection use set_instance_ids
.
The IDs of the instances associated with the event window.
sourcepub fn set_instance_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_instance_ids(self, input: Option<Vec<String>>) -> Self
The IDs of the instances associated with the event window.
Examples found in repository?
39342 39343 39344 39345 39346 39347 39348 39349 39350 39351 39352 39353 39354 39355 39356 39357 39358 39359 39360 39361 39362 39363 39364 39365 39366 39367 39368 39369 39370 39371 39372 39373 39374 39375 39376 39377 39378 39379 39380 39381 39382 39383 39384 39385 39386
pub fn deser_structure_crate_model_instance_event_window_association_target(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
crate::model::InstanceEventWindowAssociationTarget,
aws_smithy_xml::decode::XmlDecodeError,
> {
#[allow(unused_mut)]
let mut builder = crate::model::InstanceEventWindowAssociationTarget::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("instanceIdSet") /* InstanceIds com.amazonaws.ec2#InstanceEventWindowAssociationTarget$InstanceIds */ => {
let var_1665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_id_list(&mut tag)
?
)
;
builder = builder.set_instance_ids(var_1665);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#InstanceEventWindowAssociationTarget$Tags */ => {
let var_1666 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1666);
}
,
s if s.matches("dedicatedHostIdSet") /* DedicatedHostIds com.amazonaws.ec2#InstanceEventWindowAssociationTarget$DedicatedHostIds */ => {
let var_1667 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_dedicated_host_id_list(&mut tag)
?
)
;
builder = builder.set_dedicated_host_ids(var_1667);
}
,
_ => {}
}
}
Ok(builder.build())
}
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The instance tags associated with the event window. Any instances associated with the tags will be associated with the event window.
The instance tags associated with the event window. Any instances associated with the tags will be associated with the event window.
Examples found in repository?
39342 39343 39344 39345 39346 39347 39348 39349 39350 39351 39352 39353 39354 39355 39356 39357 39358 39359 39360 39361 39362 39363 39364 39365 39366 39367 39368 39369 39370 39371 39372 39373 39374 39375 39376 39377 39378 39379 39380 39381 39382 39383 39384 39385 39386
pub fn deser_structure_crate_model_instance_event_window_association_target(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
crate::model::InstanceEventWindowAssociationTarget,
aws_smithy_xml::decode::XmlDecodeError,
> {
#[allow(unused_mut)]
let mut builder = crate::model::InstanceEventWindowAssociationTarget::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("instanceIdSet") /* InstanceIds com.amazonaws.ec2#InstanceEventWindowAssociationTarget$InstanceIds */ => {
let var_1665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_id_list(&mut tag)
?
)
;
builder = builder.set_instance_ids(var_1665);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#InstanceEventWindowAssociationTarget$Tags */ => {
let var_1666 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1666);
}
,
s if s.matches("dedicatedHostIdSet") /* DedicatedHostIds com.amazonaws.ec2#InstanceEventWindowAssociationTarget$DedicatedHostIds */ => {
let var_1667 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_dedicated_host_id_list(&mut tag)
?
)
;
builder = builder.set_dedicated_host_ids(var_1667);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn dedicated_host_ids(self, input: impl Into<String>) -> Self
pub fn dedicated_host_ids(self, input: impl Into<String>) -> Self
Appends an item to dedicated_host_ids
.
To override the contents of this collection use set_dedicated_host_ids
.
The IDs of the Dedicated Hosts associated with the event window.
sourcepub fn set_dedicated_host_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_dedicated_host_ids(self, input: Option<Vec<String>>) -> Self
The IDs of the Dedicated Hosts associated with the event window.
Examples found in repository?
39342 39343 39344 39345 39346 39347 39348 39349 39350 39351 39352 39353 39354 39355 39356 39357 39358 39359 39360 39361 39362 39363 39364 39365 39366 39367 39368 39369 39370 39371 39372 39373 39374 39375 39376 39377 39378 39379 39380 39381 39382 39383 39384 39385 39386
pub fn deser_structure_crate_model_instance_event_window_association_target(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
crate::model::InstanceEventWindowAssociationTarget,
aws_smithy_xml::decode::XmlDecodeError,
> {
#[allow(unused_mut)]
let mut builder = crate::model::InstanceEventWindowAssociationTarget::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("instanceIdSet") /* InstanceIds com.amazonaws.ec2#InstanceEventWindowAssociationTarget$InstanceIds */ => {
let var_1665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_id_list(&mut tag)
?
)
;
builder = builder.set_instance_ids(var_1665);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#InstanceEventWindowAssociationTarget$Tags */ => {
let var_1666 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1666);
}
,
s if s.matches("dedicatedHostIdSet") /* DedicatedHostIds com.amazonaws.ec2#InstanceEventWindowAssociationTarget$DedicatedHostIds */ => {
let var_1667 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_dedicated_host_id_list(&mut tag)
?
)
;
builder = builder.set_dedicated_host_ids(var_1667);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> InstanceEventWindowAssociationTarget
pub fn build(self) -> InstanceEventWindowAssociationTarget
Consumes the builder and constructs a InstanceEventWindowAssociationTarget
.
Examples found in repository?
39342 39343 39344 39345 39346 39347 39348 39349 39350 39351 39352 39353 39354 39355 39356 39357 39358 39359 39360 39361 39362 39363 39364 39365 39366 39367 39368 39369 39370 39371 39372 39373 39374 39375 39376 39377 39378 39379 39380 39381 39382 39383 39384 39385 39386
pub fn deser_structure_crate_model_instance_event_window_association_target(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
crate::model::InstanceEventWindowAssociationTarget,
aws_smithy_xml::decode::XmlDecodeError,
> {
#[allow(unused_mut)]
let mut builder = crate::model::InstanceEventWindowAssociationTarget::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("instanceIdSet") /* InstanceIds com.amazonaws.ec2#InstanceEventWindowAssociationTarget$InstanceIds */ => {
let var_1665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_id_list(&mut tag)
?
)
;
builder = builder.set_instance_ids(var_1665);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#InstanceEventWindowAssociationTarget$Tags */ => {
let var_1666 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1666);
}
,
s if s.matches("dedicatedHostIdSet") /* DedicatedHostIds com.amazonaws.ec2#InstanceEventWindowAssociationTarget$DedicatedHostIds */ => {
let var_1667 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_dedicated_host_id_list(&mut tag)
?
)
;
builder = builder.set_dedicated_host_ids(var_1667);
}
,
_ => {}
}
}
Ok(builder.build())
}