#[non_exhaustive]
pub struct InstanceEventWindowAssociationTarget { /* private fields */ }
Expand description

One or more targets associated with the event window.

Implementations§

The IDs of the instances 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.

The IDs of the Dedicated Hosts associated with the event window.

Creates a new builder-style object to manufacture InstanceEventWindowAssociationTarget.

Examples found in repository?
src/xml_deser.rs (line 39349)
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())
}

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more