Struct aws_sdk_elasticache::model::NodeSnapshot
source · #[non_exhaustive]pub struct NodeSnapshot { /* private fields */ }
Expand description
Represents an individual cache node in a snapshot of a cluster.
Implementations§
source§impl NodeSnapshot
impl NodeSnapshot
sourcepub fn cache_cluster_id(&self) -> Option<&str>
pub fn cache_cluster_id(&self) -> Option<&str>
A unique identifier for the source cluster.
sourcepub fn node_group_id(&self) -> Option<&str>
pub fn node_group_id(&self) -> Option<&str>
A unique identifier for the source node group (shard).
sourcepub fn cache_node_id(&self) -> Option<&str>
pub fn cache_node_id(&self) -> Option<&str>
The cache node identifier for the node in the source cluster.
sourcepub fn node_group_configuration(&self) -> Option<&NodeGroupConfiguration>
pub fn node_group_configuration(&self) -> Option<&NodeGroupConfiguration>
The configuration for the source node group (shard).
sourcepub fn cache_size(&self) -> Option<&str>
pub fn cache_size(&self) -> Option<&str>
The size of the cache on the source cache node.
sourcepub fn cache_node_create_time(&self) -> Option<&DateTime>
pub fn cache_node_create_time(&self) -> Option<&DateTime>
The date and time when the cache node was created in the source cluster.
sourcepub fn snapshot_create_time(&self) -> Option<&DateTime>
pub fn snapshot_create_time(&self) -> Option<&DateTime>
The date and time when the source node's metadata and cache data set was obtained for the snapshot.
source§impl NodeSnapshot
impl NodeSnapshot
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture NodeSnapshot
.
Examples found in repository?
src/xml_deser.rs (line 10878)
10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975
pub fn deser_structure_crate_model_node_snapshot(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NodeSnapshot, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::NodeSnapshot::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CacheClusterId") /* CacheClusterId com.amazonaws.elasticache#NodeSnapshot$CacheClusterId */ => {
let var_460 =
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_cluster_id(var_460);
}
,
s if s.matches("NodeGroupId") /* NodeGroupId com.amazonaws.elasticache#NodeSnapshot$NodeGroupId */ => {
let var_461 =
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_node_group_id(var_461);
}
,
s if s.matches("CacheNodeId") /* CacheNodeId com.amazonaws.elasticache#NodeSnapshot$CacheNodeId */ => {
let var_462 =
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_node_id(var_462);
}
,
s if s.matches("NodeGroupConfiguration") /* NodeGroupConfiguration com.amazonaws.elasticache#NodeSnapshot$NodeGroupConfiguration */ => {
let var_463 =
Some(
crate::xml_deser::deser_structure_crate_model_node_group_configuration(&mut tag)
?
)
;
builder = builder.set_node_group_configuration(var_463);
}
,
s if s.matches("CacheSize") /* CacheSize com.amazonaws.elasticache#NodeSnapshot$CacheSize */ => {
let var_464 =
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_size(var_464);
}
,
s if s.matches("CacheNodeCreateTime") /* CacheNodeCreateTime com.amazonaws.elasticache#NodeSnapshot$CacheNodeCreateTime */ => {
let var_465 =
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.elasticache#TStamp`)"))
?
)
;
builder = builder.set_cache_node_create_time(var_465);
}
,
s if s.matches("SnapshotCreateTime") /* SnapshotCreateTime com.amazonaws.elasticache#NodeSnapshot$SnapshotCreateTime */ => {
let var_466 =
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.elasticache#TStamp`)"))
?
)
;
builder = builder.set_snapshot_create_time(var_466);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for NodeSnapshot
impl Clone for NodeSnapshot
source§fn clone(&self) -> NodeSnapshot
fn clone(&self) -> NodeSnapshot
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