Struct aws_sdk_ec2::model::NetworkInsightsAccessScope
source · #[non_exhaustive]pub struct NetworkInsightsAccessScope { /* private fields */ }
Expand description
Describes a Network Access Scope.
Implementations§
source§impl NetworkInsightsAccessScope
impl NetworkInsightsAccessScope
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 network_insights_access_scope_arn(&self) -> Option<&str>
pub fn network_insights_access_scope_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the Network Access Scope.
sourcepub fn created_date(&self) -> Option<&DateTime>
pub fn created_date(&self) -> Option<&DateTime>
The creation date.
sourcepub fn updated_date(&self) -> Option<&DateTime>
pub fn updated_date(&self) -> Option<&DateTime>
The last updated date.
The tags.
source§impl NetworkInsightsAccessScope
impl NetworkInsightsAccessScope
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture NetworkInsightsAccessScope
.
Examples found in repository?
src/xml_deser.rs (line 28904)
28900 28901 28902 28903 28904 28905 28906 28907 28908 28909 28910 28911 28912 28913 28914 28915 28916 28917 28918 28919 28920 28921 28922 28923 28924 28925 28926 28927 28928 28929 28930 28931 28932 28933 28934 28935 28936 28937 28938 28939 28940 28941 28942 28943 28944 28945 28946 28947 28948 28949 28950 28951 28952 28953 28954 28955 28956 28957 28958 28959 28960 28961 28962 28963 28964 28965 28966 28967 28968 28969 28970 28971 28972 28973 28974 28975
pub fn deser_structure_crate_model_network_insights_access_scope(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NetworkInsightsAccessScope, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::NetworkInsightsAccessScope::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("networkInsightsAccessScopeId") /* NetworkInsightsAccessScopeId com.amazonaws.ec2#NetworkInsightsAccessScope$NetworkInsightsAccessScopeId */ => {
let var_1213 =
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_1213);
}
,
s if s.matches("networkInsightsAccessScopeArn") /* NetworkInsightsAccessScopeArn com.amazonaws.ec2#NetworkInsightsAccessScope$NetworkInsightsAccessScopeArn */ => {
let var_1214 =
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_arn(var_1214);
}
,
s if s.matches("createdDate") /* CreatedDate com.amazonaws.ec2#NetworkInsightsAccessScope$CreatedDate */ => {
let var_1215 =
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_1215);
}
,
s if s.matches("updatedDate") /* UpdatedDate com.amazonaws.ec2#NetworkInsightsAccessScope$UpdatedDate */ => {
let var_1216 =
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_updated_date(var_1216);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#NetworkInsightsAccessScope$Tags */ => {
let var_1217 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1217);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for NetworkInsightsAccessScope
impl Clone for NetworkInsightsAccessScope
source§fn clone(&self) -> NetworkInsightsAccessScope
fn clone(&self) -> NetworkInsightsAccessScope
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