#[non_exhaustive]pub struct NetworkInsightsAccessScopeAnalysis { /* private fields */ }Expand description
Describes a Network Access Scope analysis.
Implementations§
source§impl NetworkInsightsAccessScopeAnalysis
impl NetworkInsightsAccessScopeAnalysis
sourcepub fn network_insights_access_scope_analysis_id(&self) -> Option<&str>
pub fn network_insights_access_scope_analysis_id(&self) -> Option<&str>
The ID of the Network Access Scope analysis.
sourcepub fn network_insights_access_scope_analysis_arn(&self) -> Option<&str>
pub fn network_insights_access_scope_analysis_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the Network Access Scope analysis.
sourcepub fn network_insights_access_scope_id(&self) -> Option<&str>
pub fn network_insights_access_scope_id(&self) -> Option<&str>
The ID of the Network Access Scope.
sourcepub fn status(&self) -> Option<&AnalysisStatus>
pub fn status(&self) -> Option<&AnalysisStatus>
The status.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
The status message.
sourcepub fn warning_message(&self) -> Option<&str>
pub fn warning_message(&self) -> Option<&str>
The warning message.
sourcepub fn start_date(&self) -> Option<&DateTime>
pub fn start_date(&self) -> Option<&DateTime>
The analysis start date.
sourcepub fn findings_found(&self) -> Option<&FindingsFound>
pub fn findings_found(&self) -> Option<&FindingsFound>
Indicates whether there are findings.
sourcepub fn analyzed_eni_count(&self) -> Option<i32>
pub fn analyzed_eni_count(&self) -> Option<i32>
The number of network interfaces analyzed.
The tags.
source§impl NetworkInsightsAccessScopeAnalysis
impl NetworkInsightsAccessScopeAnalysis
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture NetworkInsightsAccessScopeAnalysis.
Examples found in repository?
src/xml_deser.rs (line 38490)
38485 38486 38487 38488 38489 38490 38491 38492 38493 38494 38495 38496 38497 38498 38499 38500 38501 38502 38503 38504 38505 38506 38507 38508 38509 38510 38511 38512 38513 38514 38515 38516 38517 38518 38519 38520 38521 38522 38523 38524 38525 38526 38527 38528 38529 38530 38531 38532 38533 38534 38535 38536 38537 38538 38539 38540 38541 38542 38543 38544 38545 38546 38547 38548 38549 38550 38551 38552 38553 38554 38555 38556 38557 38558 38559 38560 38561 38562 38563 38564 38565 38566 38567 38568 38569 38570 38571 38572 38573 38574 38575 38576 38577 38578 38579 38580 38581 38582 38583 38584 38585 38586 38587 38588 38589 38590 38591 38592 38593 38594 38595 38596 38597 38598 38599 38600 38601 38602 38603 38604 38605 38606 38607 38608 38609 38610 38611 38612 38613 38614 38615 38616 38617 38618 38619 38620 38621 38622 38623 38624 38625 38626 38627 38628 38629 38630 38631 38632 38633 38634 38635 38636 38637 38638 38639 38640 38641 38642 38643
pub fn deser_structure_crate_model_network_insights_access_scope_analysis(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NetworkInsightsAccessScopeAnalysis, aws_smithy_xml::decode::XmlDecodeError>
{
#[allow(unused_mut)]
let mut builder = crate::model::NetworkInsightsAccessScopeAnalysis::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("networkInsightsAccessScopeAnalysisId") /* NetworkInsightsAccessScopeAnalysisId com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysis$NetworkInsightsAccessScopeAnalysisId */ => {
let var_1615 =
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_1615);
}
,
s if s.matches("networkInsightsAccessScopeAnalysisArn") /* NetworkInsightsAccessScopeAnalysisArn com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysis$NetworkInsightsAccessScopeAnalysisArn */ => {
let var_1616 =
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_arn(var_1616);
}
,
s if s.matches("networkInsightsAccessScopeId") /* NetworkInsightsAccessScopeId com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysis$NetworkInsightsAccessScopeId */ => {
let var_1617 =
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_1617);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysis$Status */ => {
let var_1618 =
Some(
Result::<crate::model::AnalysisStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AnalysisStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_1618);
}
,
s if s.matches("statusMessage") /* StatusMessage com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysis$StatusMessage */ => {
let var_1619 =
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_status_message(var_1619);
}
,
s if s.matches("warningMessage") /* WarningMessage com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysis$WarningMessage */ => {
let var_1620 =
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_warning_message(var_1620);
}
,
s if s.matches("startDate") /* StartDate com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysis$StartDate */ => {
let var_1621 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#MillisecondDateTime`)"))
?
)
;
builder = builder.set_start_date(var_1621);
}
,
s if s.matches("endDate") /* EndDate com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysis$EndDate */ => {
let var_1622 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#MillisecondDateTime`)"))
?
)
;
builder = builder.set_end_date(var_1622);
}
,
s if s.matches("findingsFound") /* FindingsFound com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysis$FindingsFound */ => {
let var_1623 =
Some(
Result::<crate::model::FindingsFound, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FindingsFound::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_findings_found(var_1623);
}
,
s if s.matches("analyzedEniCount") /* AnalyzedEniCount com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysis$AnalyzedEniCount */ => {
let var_1624 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.ec2#Integer`)"))
}
?
)
;
builder = builder.set_analyzed_eni_count(var_1624);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysis$Tags */ => {
let var_1625 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1625);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for NetworkInsightsAccessScopeAnalysis
impl Clone for NetworkInsightsAccessScopeAnalysis
source§fn clone(&self) -> NetworkInsightsAccessScopeAnalysis
fn clone(&self) -> NetworkInsightsAccessScopeAnalysis
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