Struct aws_sdk_ec2::model::VgwTelemetry
source · #[non_exhaustive]pub struct VgwTelemetry { /* private fields */ }
Expand description
Describes telemetry for a VPN tunnel.
Implementations§
source§impl VgwTelemetry
impl VgwTelemetry
sourcepub fn accepted_route_count(&self) -> Option<i32>
pub fn accepted_route_count(&self) -> Option<i32>
The number of accepted routes.
sourcepub fn last_status_change(&self) -> Option<&DateTime>
pub fn last_status_change(&self) -> Option<&DateTime>
The date and time of the last change in status.
sourcepub fn outside_ip_address(&self) -> Option<&str>
pub fn outside_ip_address(&self) -> Option<&str>
The Internet-routable IP address of the virtual private gateway's outside interface.
sourcepub fn status(&self) -> Option<&TelemetryStatus>
pub fn status(&self) -> Option<&TelemetryStatus>
The status of the VPN tunnel.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
If an error occurs, a description of the error.
sourcepub fn certificate_arn(&self) -> Option<&str>
pub fn certificate_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the VPN tunnel endpoint certificate.
source§impl VgwTelemetry
impl VgwTelemetry
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture VgwTelemetry
.
Examples found in repository?
src/xml_deser.rs (line 57927)
57923 57924 57925 57926 57927 57928 57929 57930 57931 57932 57933 57934 57935 57936 57937 57938 57939 57940 57941 57942 57943 57944 57945 57946 57947 57948 57949 57950 57951 57952 57953 57954 57955 57956 57957 57958 57959 57960 57961 57962 57963 57964 57965 57966 57967 57968 57969 57970 57971 57972 57973 57974 57975 57976 57977 57978 57979 57980 57981 57982 57983 57984 57985 57986 57987 57988 57989 57990 57991 57992 57993 57994 57995 57996 57997 57998 57999 58000 58001 58002 58003 58004 58005 58006 58007 58008 58009 58010 58011 58012 58013 58014 58015 58016
pub fn deser_structure_crate_model_vgw_telemetry(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VgwTelemetry, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VgwTelemetry::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("acceptedRouteCount") /* AcceptedRouteCount com.amazonaws.ec2#VgwTelemetry$AcceptedRouteCount */ => {
let var_2822 =
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_accepted_route_count(var_2822);
}
,
s if s.matches("lastStatusChange") /* LastStatusChange com.amazonaws.ec2#VgwTelemetry$LastStatusChange */ => {
let var_2823 =
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#DateTime`)"))
?
)
;
builder = builder.set_last_status_change(var_2823);
}
,
s if s.matches("outsideIpAddress") /* OutsideIpAddress com.amazonaws.ec2#VgwTelemetry$OutsideIpAddress */ => {
let var_2824 =
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_outside_ip_address(var_2824);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#VgwTelemetry$Status */ => {
let var_2825 =
Some(
Result::<crate::model::TelemetryStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::TelemetryStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_2825);
}
,
s if s.matches("statusMessage") /* StatusMessage com.amazonaws.ec2#VgwTelemetry$StatusMessage */ => {
let var_2826 =
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_2826);
}
,
s if s.matches("certificateArn") /* CertificateArn com.amazonaws.ec2#VgwTelemetry$CertificateArn */ => {
let var_2827 =
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_certificate_arn(var_2827);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for VgwTelemetry
impl Clone for VgwTelemetry
source§fn clone(&self) -> VgwTelemetry
fn clone(&self) -> VgwTelemetry
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