Struct aws_sdk_ec2::model::NetworkInsightsAnalysis
source · #[non_exhaustive]pub struct NetworkInsightsAnalysis { /* private fields */ }
Expand description
Describes a network insights analysis.
Implementations§
source§impl NetworkInsightsAnalysis
impl NetworkInsightsAnalysis
sourcepub fn network_insights_analysis_id(&self) -> Option<&str>
pub fn network_insights_analysis_id(&self) -> Option<&str>
The ID of the network insights analysis.
sourcepub fn network_insights_analysis_arn(&self) -> Option<&str>
pub fn network_insights_analysis_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the network insights analysis.
sourcepub fn network_insights_path_id(&self) -> Option<&str>
pub fn network_insights_path_id(&self) -> Option<&str>
The ID of the path.
sourcepub fn filter_in_arns(&self) -> Option<&[String]>
pub fn filter_in_arns(&self) -> Option<&[String]>
The Amazon Resource Names (ARN) of the Amazon Web Services resources that the path must traverse.
sourcepub fn start_date(&self) -> Option<&DateTime>
pub fn start_date(&self) -> Option<&DateTime>
The time the analysis started.
sourcepub fn status(&self) -> Option<&AnalysisStatus>
pub fn status(&self) -> Option<&AnalysisStatus>
The status of the network insights analysis.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
The status message, if the status is failed
.
sourcepub fn warning_message(&self) -> Option<&str>
pub fn warning_message(&self) -> Option<&str>
The warning message.
sourcepub fn network_path_found(&self) -> Option<bool>
pub fn network_path_found(&self) -> Option<bool>
Indicates whether the destination is reachable from the source.
sourcepub fn forward_path_components(&self) -> Option<&[PathComponent]>
pub fn forward_path_components(&self) -> Option<&[PathComponent]>
The components in the path from source to destination.
sourcepub fn return_path_components(&self) -> Option<&[PathComponent]>
pub fn return_path_components(&self) -> Option<&[PathComponent]>
The components in the path from destination to source.
sourcepub fn explanations(&self) -> Option<&[Explanation]>
pub fn explanations(&self) -> Option<&[Explanation]>
The explanations. For more information, see Reachability Analyzer explanation codes.
sourcepub fn alternate_path_hints(&self) -> Option<&[AlternatePathHint]>
pub fn alternate_path_hints(&self) -> Option<&[AlternatePathHint]>
Potential intermediate components.
The tags.
source§impl NetworkInsightsAnalysis
impl NetworkInsightsAnalysis
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture NetworkInsightsAnalysis
.
Examples found in repository?
38645 38646 38647 38648 38649 38650 38651 38652 38653 38654 38655 38656 38657 38658 38659 38660 38661 38662 38663 38664 38665 38666 38667 38668 38669 38670 38671 38672 38673 38674 38675 38676 38677 38678 38679 38680 38681 38682 38683 38684 38685 38686 38687 38688 38689 38690 38691 38692 38693 38694 38695 38696 38697 38698 38699 38700 38701 38702 38703 38704 38705 38706 38707 38708 38709 38710 38711 38712 38713 38714 38715 38716 38717 38718 38719 38720 38721 38722 38723 38724 38725 38726 38727 38728 38729 38730 38731 38732 38733 38734 38735 38736 38737 38738 38739 38740 38741 38742 38743 38744 38745 38746 38747 38748 38749 38750 38751 38752 38753 38754 38755 38756 38757 38758 38759 38760 38761 38762 38763 38764 38765 38766 38767 38768 38769 38770 38771 38772 38773 38774 38775 38776 38777 38778 38779 38780 38781 38782 38783 38784 38785 38786 38787 38788 38789 38790 38791 38792 38793 38794 38795 38796 38797 38798 38799 38800 38801 38802 38803 38804 38805 38806 38807 38808 38809 38810 38811 38812 38813 38814 38815 38816 38817 38818 38819 38820 38821 38822 38823 38824
pub fn deser_structure_crate_model_network_insights_analysis(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NetworkInsightsAnalysis, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::NetworkInsightsAnalysis::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("networkInsightsAnalysisId") /* NetworkInsightsAnalysisId com.amazonaws.ec2#NetworkInsightsAnalysis$NetworkInsightsAnalysisId */ => {
let var_1626 =
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_analysis_id(var_1626);
}
,
s if s.matches("networkInsightsAnalysisArn") /* NetworkInsightsAnalysisArn com.amazonaws.ec2#NetworkInsightsAnalysis$NetworkInsightsAnalysisArn */ => {
let var_1627 =
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_analysis_arn(var_1627);
}
,
s if s.matches("networkInsightsPathId") /* NetworkInsightsPathId com.amazonaws.ec2#NetworkInsightsAnalysis$NetworkInsightsPathId */ => {
let var_1628 =
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_path_id(var_1628);
}
,
s if s.matches("filterInArnSet") /* FilterInArns com.amazonaws.ec2#NetworkInsightsAnalysis$FilterInArns */ => {
let var_1629 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_arn_list(&mut tag)
?
)
;
builder = builder.set_filter_in_arns(var_1629);
}
,
s if s.matches("startDate") /* StartDate com.amazonaws.ec2#NetworkInsightsAnalysis$StartDate */ => {
let var_1630 =
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_1630);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#NetworkInsightsAnalysis$Status */ => {
let var_1631 =
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_1631);
}
,
s if s.matches("statusMessage") /* StatusMessage com.amazonaws.ec2#NetworkInsightsAnalysis$StatusMessage */ => {
let var_1632 =
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_1632);
}
,
s if s.matches("warningMessage") /* WarningMessage com.amazonaws.ec2#NetworkInsightsAnalysis$WarningMessage */ => {
let var_1633 =
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_1633);
}
,
s if s.matches("networkPathFound") /* NetworkPathFound com.amazonaws.ec2#NetworkInsightsAnalysis$NetworkPathFound */ => {
let var_1634 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_network_path_found(var_1634);
}
,
s if s.matches("forwardPathComponentSet") /* ForwardPathComponents com.amazonaws.ec2#NetworkInsightsAnalysis$ForwardPathComponents */ => {
let var_1635 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_path_component_list(&mut tag)
?
)
;
builder = builder.set_forward_path_components(var_1635);
}
,
s if s.matches("returnPathComponentSet") /* ReturnPathComponents com.amazonaws.ec2#NetworkInsightsAnalysis$ReturnPathComponents */ => {
let var_1636 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_path_component_list(&mut tag)
?
)
;
builder = builder.set_return_path_components(var_1636);
}
,
s if s.matches("explanationSet") /* Explanations com.amazonaws.ec2#NetworkInsightsAnalysis$Explanations */ => {
let var_1637 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_explanation_list(&mut tag)
?
)
;
builder = builder.set_explanations(var_1637);
}
,
s if s.matches("alternatePathHintSet") /* AlternatePathHints com.amazonaws.ec2#NetworkInsightsAnalysis$AlternatePathHints */ => {
let var_1638 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_alternate_path_hint_list(&mut tag)
?
)
;
builder = builder.set_alternate_path_hints(var_1638);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#NetworkInsightsAnalysis$Tags */ => {
let var_1639 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1639);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for NetworkInsightsAnalysis
impl Clone for NetworkInsightsAnalysis
source§fn clone(&self) -> NetworkInsightsAnalysis
fn clone(&self) -> NetworkInsightsAnalysis
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more