pub struct Builder { /* private fields */ }
Expand description
A builder for NetworkInsightsAccessScopeContent
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn network_insights_access_scope_id(self, input: impl Into<String>) -> Self
pub fn network_insights_access_scope_id(self, input: impl Into<String>) -> Self
The ID of the Network Access Scope.
sourcepub fn set_network_insights_access_scope_id(self, input: Option<String>) -> Self
pub fn set_network_insights_access_scope_id(self, input: Option<String>) -> Self
The ID of the Network Access Scope.
Examples found in repository?
src/xml_deser.rs (line 28995)
28977 28978 28979 28980 28981 28982 28983 28984 28985 28986 28987 28988 28989 28990 28991 28992 28993 28994 28995 28996 28997 28998 28999 29000 29001 29002 29003 29004 29005 29006 29007 29008 29009 29010 29011 29012 29013 29014 29015 29016 29017 29018 29019 29020 29021 29022
pub fn deser_structure_crate_model_network_insights_access_scope_content(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NetworkInsightsAccessScopeContent, aws_smithy_xml::decode::XmlDecodeError>
{
#[allow(unused_mut)]
let mut builder = crate::model::NetworkInsightsAccessScopeContent::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("networkInsightsAccessScopeId") /* NetworkInsightsAccessScopeId com.amazonaws.ec2#NetworkInsightsAccessScopeContent$NetworkInsightsAccessScopeId */ => {
let var_1218 =
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_1218);
}
,
s if s.matches("matchPathSet") /* MatchPaths com.amazonaws.ec2#NetworkInsightsAccessScopeContent$MatchPaths */ => {
let var_1219 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_access_scope_path_list(&mut tag)
?
)
;
builder = builder.set_match_paths(var_1219);
}
,
s if s.matches("excludePathSet") /* ExcludePaths com.amazonaws.ec2#NetworkInsightsAccessScopeContent$ExcludePaths */ => {
let var_1220 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_access_scope_path_list(&mut tag)
?
)
;
builder = builder.set_exclude_paths(var_1220);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn match_paths(self, input: AccessScopePath) -> Self
pub fn match_paths(self, input: AccessScopePath) -> Self
Appends an item to match_paths
.
To override the contents of this collection use set_match_paths
.
The paths to match.
sourcepub fn set_match_paths(self, input: Option<Vec<AccessScopePath>>) -> Self
pub fn set_match_paths(self, input: Option<Vec<AccessScopePath>>) -> Self
The paths to match.
Examples found in repository?
src/xml_deser.rs (line 29005)
28977 28978 28979 28980 28981 28982 28983 28984 28985 28986 28987 28988 28989 28990 28991 28992 28993 28994 28995 28996 28997 28998 28999 29000 29001 29002 29003 29004 29005 29006 29007 29008 29009 29010 29011 29012 29013 29014 29015 29016 29017 29018 29019 29020 29021 29022
pub fn deser_structure_crate_model_network_insights_access_scope_content(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NetworkInsightsAccessScopeContent, aws_smithy_xml::decode::XmlDecodeError>
{
#[allow(unused_mut)]
let mut builder = crate::model::NetworkInsightsAccessScopeContent::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("networkInsightsAccessScopeId") /* NetworkInsightsAccessScopeId com.amazonaws.ec2#NetworkInsightsAccessScopeContent$NetworkInsightsAccessScopeId */ => {
let var_1218 =
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_1218);
}
,
s if s.matches("matchPathSet") /* MatchPaths com.amazonaws.ec2#NetworkInsightsAccessScopeContent$MatchPaths */ => {
let var_1219 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_access_scope_path_list(&mut tag)
?
)
;
builder = builder.set_match_paths(var_1219);
}
,
s if s.matches("excludePathSet") /* ExcludePaths com.amazonaws.ec2#NetworkInsightsAccessScopeContent$ExcludePaths */ => {
let var_1220 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_access_scope_path_list(&mut tag)
?
)
;
builder = builder.set_exclude_paths(var_1220);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn exclude_paths(self, input: AccessScopePath) -> Self
pub fn exclude_paths(self, input: AccessScopePath) -> Self
Appends an item to exclude_paths
.
To override the contents of this collection use set_exclude_paths
.
The paths to exclude.
sourcepub fn set_exclude_paths(self, input: Option<Vec<AccessScopePath>>) -> Self
pub fn set_exclude_paths(self, input: Option<Vec<AccessScopePath>>) -> Self
The paths to exclude.
Examples found in repository?
src/xml_deser.rs (line 29015)
28977 28978 28979 28980 28981 28982 28983 28984 28985 28986 28987 28988 28989 28990 28991 28992 28993 28994 28995 28996 28997 28998 28999 29000 29001 29002 29003 29004 29005 29006 29007 29008 29009 29010 29011 29012 29013 29014 29015 29016 29017 29018 29019 29020 29021 29022
pub fn deser_structure_crate_model_network_insights_access_scope_content(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NetworkInsightsAccessScopeContent, aws_smithy_xml::decode::XmlDecodeError>
{
#[allow(unused_mut)]
let mut builder = crate::model::NetworkInsightsAccessScopeContent::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("networkInsightsAccessScopeId") /* NetworkInsightsAccessScopeId com.amazonaws.ec2#NetworkInsightsAccessScopeContent$NetworkInsightsAccessScopeId */ => {
let var_1218 =
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_1218);
}
,
s if s.matches("matchPathSet") /* MatchPaths com.amazonaws.ec2#NetworkInsightsAccessScopeContent$MatchPaths */ => {
let var_1219 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_access_scope_path_list(&mut tag)
?
)
;
builder = builder.set_match_paths(var_1219);
}
,
s if s.matches("excludePathSet") /* ExcludePaths com.amazonaws.ec2#NetworkInsightsAccessScopeContent$ExcludePaths */ => {
let var_1220 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_access_scope_path_list(&mut tag)
?
)
;
builder = builder.set_exclude_paths(var_1220);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> NetworkInsightsAccessScopeContent
pub fn build(self) -> NetworkInsightsAccessScopeContent
Consumes the builder and constructs a NetworkInsightsAccessScopeContent
.
Examples found in repository?
src/xml_deser.rs (line 29021)
28977 28978 28979 28980 28981 28982 28983 28984 28985 28986 28987 28988 28989 28990 28991 28992 28993 28994 28995 28996 28997 28998 28999 29000 29001 29002 29003 29004 29005 29006 29007 29008 29009 29010 29011 29012 29013 29014 29015 29016 29017 29018 29019 29020 29021 29022
pub fn deser_structure_crate_model_network_insights_access_scope_content(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NetworkInsightsAccessScopeContent, aws_smithy_xml::decode::XmlDecodeError>
{
#[allow(unused_mut)]
let mut builder = crate::model::NetworkInsightsAccessScopeContent::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("networkInsightsAccessScopeId") /* NetworkInsightsAccessScopeId com.amazonaws.ec2#NetworkInsightsAccessScopeContent$NetworkInsightsAccessScopeId */ => {
let var_1218 =
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_1218);
}
,
s if s.matches("matchPathSet") /* MatchPaths com.amazonaws.ec2#NetworkInsightsAccessScopeContent$MatchPaths */ => {
let var_1219 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_access_scope_path_list(&mut tag)
?
)
;
builder = builder.set_match_paths(var_1219);
}
,
s if s.matches("excludePathSet") /* ExcludePaths com.amazonaws.ec2#NetworkInsightsAccessScopeContent$ExcludePaths */ => {
let var_1220 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_access_scope_path_list(&mut tag)
?
)
;
builder = builder.set_exclude_paths(var_1220);
}
,
_ => {}
}
}
Ok(builder.build())
}