Struct aws_sdk_ec2::model::NetworkInsightsPath
source · #[non_exhaustive]pub struct NetworkInsightsPath { /* private fields */ }
Expand description
Describes a path.
Implementations§
source§impl NetworkInsightsPath
impl NetworkInsightsPath
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 network_insights_path_arn(&self) -> Option<&str>
pub fn network_insights_path_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the path.
sourcepub fn created_date(&self) -> Option<&DateTime>
pub fn created_date(&self) -> Option<&DateTime>
The time stamp when the path was created.
sourcepub fn source(&self) -> Option<&str>
pub fn source(&self) -> Option<&str>
The Amazon Web Services resource that is the source of the path.
sourcepub fn destination(&self) -> Option<&str>
pub fn destination(&self) -> Option<&str>
The Amazon Web Services resource that is the destination of the path.
sourcepub fn source_ip(&self) -> Option<&str>
pub fn source_ip(&self) -> Option<&str>
The IP address of the Amazon Web Services resource that is the source of the path.
sourcepub fn destination_ip(&self) -> Option<&str>
pub fn destination_ip(&self) -> Option<&str>
The IP address of the Amazon Web Services resource that is the destination of the path.
sourcepub fn destination_port(&self) -> Option<i32>
pub fn destination_port(&self) -> Option<i32>
The destination port.
The tags associated with the path.
source§impl NetworkInsightsPath
impl NetworkInsightsPath
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture NetworkInsightsPath
.
Examples found in repository?
src/xml_deser.rs (line 29028)
29024 29025 29026 29027 29028 29029 29030 29031 29032 29033 29034 29035 29036 29037 29038 29039 29040 29041 29042 29043 29044 29045 29046 29047 29048 29049 29050 29051 29052 29053 29054 29055 29056 29057 29058 29059 29060 29061 29062 29063 29064 29065 29066 29067 29068 29069 29070 29071 29072 29073 29074 29075 29076 29077 29078 29079 29080 29081 29082 29083 29084 29085 29086 29087 29088 29089 29090 29091 29092 29093 29094 29095 29096 29097 29098 29099 29100 29101 29102 29103 29104 29105 29106 29107 29108 29109 29110 29111 29112 29113 29114 29115 29116 29117 29118 29119 29120 29121 29122 29123 29124 29125 29126 29127 29128 29129 29130 29131 29132 29133 29134 29135 29136 29137 29138 29139 29140 29141 29142 29143 29144 29145 29146 29147 29148 29149 29150 29151 29152 29153 29154 29155 29156 29157 29158 29159 29160 29161 29162 29163 29164 29165 29166
pub fn deser_structure_crate_model_network_insights_path(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NetworkInsightsPath, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::NetworkInsightsPath::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("networkInsightsPathId") /* NetworkInsightsPathId com.amazonaws.ec2#NetworkInsightsPath$NetworkInsightsPathId */ => {
let var_1221 =
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_1221);
}
,
s if s.matches("networkInsightsPathArn") /* NetworkInsightsPathArn com.amazonaws.ec2#NetworkInsightsPath$NetworkInsightsPathArn */ => {
let var_1222 =
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_arn(var_1222);
}
,
s if s.matches("createdDate") /* CreatedDate com.amazonaws.ec2#NetworkInsightsPath$CreatedDate */ => {
let var_1223 =
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_created_date(var_1223);
}
,
s if s.matches("source") /* Source com.amazonaws.ec2#NetworkInsightsPath$Source */ => {
let var_1224 =
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_source(var_1224);
}
,
s if s.matches("destination") /* Destination com.amazonaws.ec2#NetworkInsightsPath$Destination */ => {
let var_1225 =
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_destination(var_1225);
}
,
s if s.matches("sourceIp") /* SourceIp com.amazonaws.ec2#NetworkInsightsPath$SourceIp */ => {
let var_1226 =
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_source_ip(var_1226);
}
,
s if s.matches("destinationIp") /* DestinationIp com.amazonaws.ec2#NetworkInsightsPath$DestinationIp */ => {
let var_1227 =
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_destination_ip(var_1227);
}
,
s if s.matches("protocol") /* Protocol com.amazonaws.ec2#NetworkInsightsPath$Protocol */ => {
let var_1228 =
Some(
Result::<crate::model::Protocol, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::Protocol::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_protocol(var_1228);
}
,
s if s.matches("destinationPort") /* DestinationPort com.amazonaws.ec2#NetworkInsightsPath$DestinationPort */ => {
let var_1229 =
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_destination_port(var_1229);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#NetworkInsightsPath$Tags */ => {
let var_1230 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1230);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for NetworkInsightsPath
impl Clone for NetworkInsightsPath
source§fn clone(&self) -> NetworkInsightsPath
fn clone(&self) -> NetworkInsightsPath
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