#[non_exhaustive]pub struct CacheSecurityGroupMembership { /* private fields */ }
Expand description
Represents a cluster's status within a particular cache security group.
Implementations§
source§impl CacheSecurityGroupMembership
impl CacheSecurityGroupMembership
sourcepub fn cache_security_group_name(&self) -> Option<&str>
pub fn cache_security_group_name(&self) -> Option<&str>
The name of the cache security group.
source§impl CacheSecurityGroupMembership
impl CacheSecurityGroupMembership
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CacheSecurityGroupMembership
.
Examples found in repository?
src/xml_deser.rs (line 11003)
10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036
pub fn deser_structure_crate_model_cache_security_group_membership(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CacheSecurityGroupMembership, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CacheSecurityGroupMembership::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CacheSecurityGroupName") /* CacheSecurityGroupName com.amazonaws.elasticache#CacheSecurityGroupMembership$CacheSecurityGroupName */ => {
let var_467 =
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_cache_security_group_name(var_467);
}
,
s if s.matches("Status") /* Status com.amazonaws.elasticache#CacheSecurityGroupMembership$Status */ => {
let var_468 =
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(var_468);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for CacheSecurityGroupMembership
impl Clone for CacheSecurityGroupMembership
source§fn clone(&self) -> CacheSecurityGroupMembership
fn clone(&self) -> CacheSecurityGroupMembership
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