pub struct Builder { /* private fields */ }
Expand description

Implementations§

The ID of the Network Access Scope analysis.

The ID of the Network Access Scope analysis.

Examples found in repository?
src/xml_deser.rs (line 53660)
53643
53644
53645
53646
53647
53648
53649
53650
53651
53652
53653
53654
53655
53656
53657
53658
53659
53660
53661
53662
53663
53664
53665
53666
53667
53668
53669
53670
53671
53672
53673
53674
53675
53676
53677
53678
53679
53680
53681
53682
53683
53684
53685
53686
53687
53688
53689
53690
53691
53692
53693
53694
53695
53696
53697
53698
53699
53700
53701
53702
53703
pub fn deser_structure_crate_model_access_scope_analysis_finding(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AccessScopeAnalysisFinding, aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::model::AccessScopeAnalysisFinding::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("networkInsightsAccessScopeAnalysisId") /* NetworkInsightsAccessScopeAnalysisId com.amazonaws.ec2#AccessScopeAnalysisFinding$NetworkInsightsAccessScopeAnalysisId */ =>  {
                let var_2568 =
                    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_network_insights_access_scope_analysis_id(var_2568);
            }
            ,
            s if s.matches("networkInsightsAccessScopeId") /* NetworkInsightsAccessScopeId com.amazonaws.ec2#AccessScopeAnalysisFinding$NetworkInsightsAccessScopeId */ =>  {
                let var_2569 =
                    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_network_insights_access_scope_id(var_2569);
            }
            ,
            s if s.matches("findingId") /* FindingId com.amazonaws.ec2#AccessScopeAnalysisFinding$FindingId */ =>  {
                let var_2570 =
                    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_finding_id(var_2570);
            }
            ,
            s if s.matches("findingComponentSet") /* FindingComponents com.amazonaws.ec2#AccessScopeAnalysisFinding$FindingComponents */ =>  {
                let var_2571 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_path_component_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_finding_components(var_2571);
            }
            ,
            _ => {}
        }
    }
    Ok(builder.build())
}

The ID of the Network Access Scope.

The ID of the Network Access Scope.

Examples found in repository?
src/xml_deser.rs (line 53673)
53643
53644
53645
53646
53647
53648
53649
53650
53651
53652
53653
53654
53655
53656
53657
53658
53659
53660
53661
53662
53663
53664
53665
53666
53667
53668
53669
53670
53671
53672
53673
53674
53675
53676
53677
53678
53679
53680
53681
53682
53683
53684
53685
53686
53687
53688
53689
53690
53691
53692
53693
53694
53695
53696
53697
53698
53699
53700
53701
53702
53703
pub fn deser_structure_crate_model_access_scope_analysis_finding(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AccessScopeAnalysisFinding, aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::model::AccessScopeAnalysisFinding::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("networkInsightsAccessScopeAnalysisId") /* NetworkInsightsAccessScopeAnalysisId com.amazonaws.ec2#AccessScopeAnalysisFinding$NetworkInsightsAccessScopeAnalysisId */ =>  {
                let var_2568 =
                    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_network_insights_access_scope_analysis_id(var_2568);
            }
            ,
            s if s.matches("networkInsightsAccessScopeId") /* NetworkInsightsAccessScopeId com.amazonaws.ec2#AccessScopeAnalysisFinding$NetworkInsightsAccessScopeId */ =>  {
                let var_2569 =
                    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_network_insights_access_scope_id(var_2569);
            }
            ,
            s if s.matches("findingId") /* FindingId com.amazonaws.ec2#AccessScopeAnalysisFinding$FindingId */ =>  {
                let var_2570 =
                    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_finding_id(var_2570);
            }
            ,
            s if s.matches("findingComponentSet") /* FindingComponents com.amazonaws.ec2#AccessScopeAnalysisFinding$FindingComponents */ =>  {
                let var_2571 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_path_component_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_finding_components(var_2571);
            }
            ,
            _ => {}
        }
    }
    Ok(builder.build())
}

The ID of the finding.

The ID of the finding.

Examples found in repository?
src/xml_deser.rs (line 53686)
53643
53644
53645
53646
53647
53648
53649
53650
53651
53652
53653
53654
53655
53656
53657
53658
53659
53660
53661
53662
53663
53664
53665
53666
53667
53668
53669
53670
53671
53672
53673
53674
53675
53676
53677
53678
53679
53680
53681
53682
53683
53684
53685
53686
53687
53688
53689
53690
53691
53692
53693
53694
53695
53696
53697
53698
53699
53700
53701
53702
53703
pub fn deser_structure_crate_model_access_scope_analysis_finding(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AccessScopeAnalysisFinding, aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::model::AccessScopeAnalysisFinding::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("networkInsightsAccessScopeAnalysisId") /* NetworkInsightsAccessScopeAnalysisId com.amazonaws.ec2#AccessScopeAnalysisFinding$NetworkInsightsAccessScopeAnalysisId */ =>  {
                let var_2568 =
                    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_network_insights_access_scope_analysis_id(var_2568);
            }
            ,
            s if s.matches("networkInsightsAccessScopeId") /* NetworkInsightsAccessScopeId com.amazonaws.ec2#AccessScopeAnalysisFinding$NetworkInsightsAccessScopeId */ =>  {
                let var_2569 =
                    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_network_insights_access_scope_id(var_2569);
            }
            ,
            s if s.matches("findingId") /* FindingId com.amazonaws.ec2#AccessScopeAnalysisFinding$FindingId */ =>  {
                let var_2570 =
                    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_finding_id(var_2570);
            }
            ,
            s if s.matches("findingComponentSet") /* FindingComponents com.amazonaws.ec2#AccessScopeAnalysisFinding$FindingComponents */ =>  {
                let var_2571 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_path_component_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_finding_components(var_2571);
            }
            ,
            _ => {}
        }
    }
    Ok(builder.build())
}

Appends an item to finding_components.

To override the contents of this collection use set_finding_components.

The finding components.

The finding components.

Examples found in repository?
src/xml_deser.rs (line 53696)
53643
53644
53645
53646
53647
53648
53649
53650
53651
53652
53653
53654
53655
53656
53657
53658
53659
53660
53661
53662
53663
53664
53665
53666
53667
53668
53669
53670
53671
53672
53673
53674
53675
53676
53677
53678
53679
53680
53681
53682
53683
53684
53685
53686
53687
53688
53689
53690
53691
53692
53693
53694
53695
53696
53697
53698
53699
53700
53701
53702
53703
pub fn deser_structure_crate_model_access_scope_analysis_finding(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AccessScopeAnalysisFinding, aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::model::AccessScopeAnalysisFinding::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("networkInsightsAccessScopeAnalysisId") /* NetworkInsightsAccessScopeAnalysisId com.amazonaws.ec2#AccessScopeAnalysisFinding$NetworkInsightsAccessScopeAnalysisId */ =>  {
                let var_2568 =
                    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_network_insights_access_scope_analysis_id(var_2568);
            }
            ,
            s if s.matches("networkInsightsAccessScopeId") /* NetworkInsightsAccessScopeId com.amazonaws.ec2#AccessScopeAnalysisFinding$NetworkInsightsAccessScopeId */ =>  {
                let var_2569 =
                    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_network_insights_access_scope_id(var_2569);
            }
            ,
            s if s.matches("findingId") /* FindingId com.amazonaws.ec2#AccessScopeAnalysisFinding$FindingId */ =>  {
                let var_2570 =
                    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_finding_id(var_2570);
            }
            ,
            s if s.matches("findingComponentSet") /* FindingComponents com.amazonaws.ec2#AccessScopeAnalysisFinding$FindingComponents */ =>  {
                let var_2571 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_path_component_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_finding_components(var_2571);
            }
            ,
            _ => {}
        }
    }
    Ok(builder.build())
}

Consumes the builder and constructs a AccessScopeAnalysisFinding.

Examples found in repository?
src/xml_deser.rs (line 53702)
53643
53644
53645
53646
53647
53648
53649
53650
53651
53652
53653
53654
53655
53656
53657
53658
53659
53660
53661
53662
53663
53664
53665
53666
53667
53668
53669
53670
53671
53672
53673
53674
53675
53676
53677
53678
53679
53680
53681
53682
53683
53684
53685
53686
53687
53688
53689
53690
53691
53692
53693
53694
53695
53696
53697
53698
53699
53700
53701
53702
53703
pub fn deser_structure_crate_model_access_scope_analysis_finding(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AccessScopeAnalysisFinding, aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::model::AccessScopeAnalysisFinding::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("networkInsightsAccessScopeAnalysisId") /* NetworkInsightsAccessScopeAnalysisId com.amazonaws.ec2#AccessScopeAnalysisFinding$NetworkInsightsAccessScopeAnalysisId */ =>  {
                let var_2568 =
                    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_network_insights_access_scope_analysis_id(var_2568);
            }
            ,
            s if s.matches("networkInsightsAccessScopeId") /* NetworkInsightsAccessScopeId com.amazonaws.ec2#AccessScopeAnalysisFinding$NetworkInsightsAccessScopeId */ =>  {
                let var_2569 =
                    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_network_insights_access_scope_id(var_2569);
            }
            ,
            s if s.matches("findingId") /* FindingId com.amazonaws.ec2#AccessScopeAnalysisFinding$FindingId */ =>  {
                let var_2570 =
                    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_finding_id(var_2570);
            }
            ,
            s if s.matches("findingComponentSet") /* FindingComponents com.amazonaws.ec2#AccessScopeAnalysisFinding$FindingComponents */ =>  {
                let var_2571 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_path_component_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_finding_components(var_2571);
            }
            ,
            _ => {}
        }
    }
    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
Returns the “default value” for a type. 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