Struct aws_sdk_ec2::model::ClientVpnRoute
source · #[non_exhaustive]pub struct ClientVpnRoute { /* private fields */ }
Expand description
Information about a Client VPN endpoint route.
Implementations§
source§impl ClientVpnRoute
impl ClientVpnRoute
sourcepub fn client_vpn_endpoint_id(&self) -> Option<&str>
pub fn client_vpn_endpoint_id(&self) -> Option<&str>
The ID of the Client VPN endpoint with which the route is associated.
sourcepub fn destination_cidr(&self) -> Option<&str>
pub fn destination_cidr(&self) -> Option<&str>
The IPv4 address range, in CIDR notation, of the route destination.
sourcepub fn target_subnet(&self) -> Option<&str>
pub fn target_subnet(&self) -> Option<&str>
The ID of the subnet through which traffic is routed.
sourcepub fn origin(&self) -> Option<&str>
pub fn origin(&self) -> Option<&str>
Indicates how the route was associated with the Client VPN endpoint. associate
indicates that the route was automatically added when the target network was associated with the Client VPN endpoint. add-route
indicates that the route was manually added using the CreateClientVpnRoute action.
sourcepub fn status(&self) -> Option<&ClientVpnRouteStatus>
pub fn status(&self) -> Option<&ClientVpnRouteStatus>
The current state of the route.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A brief description of the route.
source§impl ClientVpnRoute
impl ClientVpnRoute
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ClientVpnRoute
.
Examples found in repository?
src/xml_deser.rs (line 44017)
44013 44014 44015 44016 44017 44018 44019 44020 44021 44022 44023 44024 44025 44026 44027 44028 44029 44030 44031 44032 44033 44034 44035 44036 44037 44038 44039 44040 44041 44042 44043 44044 44045 44046 44047 44048 44049 44050 44051 44052 44053 44054 44055 44056 44057 44058 44059 44060 44061 44062 44063 44064 44065 44066 44067 44068 44069 44070 44071 44072 44073 44074 44075 44076 44077 44078 44079 44080 44081 44082 44083 44084 44085 44086 44087 44088 44089 44090 44091 44092 44093 44094 44095 44096 44097 44098 44099 44100 44101 44102 44103 44104 44105 44106 44107 44108 44109 44110 44111 44112
pub fn deser_structure_crate_model_client_vpn_route(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ClientVpnRoute, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ClientVpnRoute::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("clientVpnEndpointId") /* ClientVpnEndpointId com.amazonaws.ec2#ClientVpnRoute$ClientVpnEndpointId */ => {
let var_1923 =
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_client_vpn_endpoint_id(var_1923);
}
,
s if s.matches("destinationCidr") /* DestinationCidr com.amazonaws.ec2#ClientVpnRoute$DestinationCidr */ => {
let var_1924 =
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_cidr(var_1924);
}
,
s if s.matches("targetSubnet") /* TargetSubnet com.amazonaws.ec2#ClientVpnRoute$TargetSubnet */ => {
let var_1925 =
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_target_subnet(var_1925);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#ClientVpnRoute$Type */ => {
let var_1926 =
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_type(var_1926);
}
,
s if s.matches("origin") /* Origin com.amazonaws.ec2#ClientVpnRoute$Origin */ => {
let var_1927 =
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_origin(var_1927);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#ClientVpnRoute$Status */ => {
let var_1928 =
Some(
crate::xml_deser::deser_structure_crate_model_client_vpn_route_status(&mut tag)
?
)
;
builder = builder.set_status(var_1928);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#ClientVpnRoute$Description */ => {
let var_1929 =
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_description(var_1929);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ClientVpnRoute
impl Clone for ClientVpnRoute
source§fn clone(&self) -> ClientVpnRoute
fn clone(&self) -> ClientVpnRoute
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