Struct aws_sdk_elasticache::model::CacheNodeUpdateStatus
source · #[non_exhaustive]pub struct CacheNodeUpdateStatus { /* private fields */ }
Expand description
The status of the service update on the cache node
Implementations§
source§impl CacheNodeUpdateStatus
impl CacheNodeUpdateStatus
sourcepub fn cache_node_id(&self) -> Option<&str>
pub fn cache_node_id(&self) -> Option<&str>
The node ID of the cache cluster
sourcepub fn node_update_status(&self) -> Option<&NodeUpdateStatus>
pub fn node_update_status(&self) -> Option<&NodeUpdateStatus>
The update status of the node
sourcepub fn node_deletion_date(&self) -> Option<&DateTime>
pub fn node_deletion_date(&self) -> Option<&DateTime>
The deletion date of the node
sourcepub fn node_update_start_date(&self) -> Option<&DateTime>
pub fn node_update_start_date(&self) -> Option<&DateTime>
The start date of the update for a node
sourcepub fn node_update_end_date(&self) -> Option<&DateTime>
pub fn node_update_end_date(&self) -> Option<&DateTime>
The end date of the update for a node
sourcepub fn node_update_initiated_by(&self) -> Option<&NodeUpdateInitiatedBy>
pub fn node_update_initiated_by(&self) -> Option<&NodeUpdateInitiatedBy>
Reflects whether the update was initiated by the customer or automatically applied
sourcepub fn node_update_initiated_date(&self) -> Option<&DateTime>
pub fn node_update_initiated_date(&self) -> Option<&DateTime>
The date when the update is triggered
sourcepub fn node_update_status_modified_date(&self) -> Option<&DateTime>
pub fn node_update_status_modified_date(&self) -> Option<&DateTime>
The date when the NodeUpdateStatus was last modified>
source§impl CacheNodeUpdateStatus
impl CacheNodeUpdateStatus
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CacheNodeUpdateStatus
.
Examples found in repository?
src/xml_deser.rs (line 11839)
11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957
pub fn deser_structure_crate_model_cache_node_update_status(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CacheNodeUpdateStatus, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CacheNodeUpdateStatus::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CacheNodeId") /* CacheNodeId com.amazonaws.elasticache#CacheNodeUpdateStatus$CacheNodeId */ => {
let var_511 =
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_511);
}
,
s if s.matches("NodeUpdateStatus") /* NodeUpdateStatus com.amazonaws.elasticache#CacheNodeUpdateStatus$NodeUpdateStatus */ => {
let var_512 =
Some(
Result::<crate::model::NodeUpdateStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::NodeUpdateStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_node_update_status(var_512);
}
,
s if s.matches("NodeDeletionDate") /* NodeDeletionDate com.amazonaws.elasticache#CacheNodeUpdateStatus$NodeDeletionDate */ => {
let var_513 =
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_node_deletion_date(var_513);
}
,
s if s.matches("NodeUpdateStartDate") /* NodeUpdateStartDate com.amazonaws.elasticache#CacheNodeUpdateStatus$NodeUpdateStartDate */ => {
let var_514 =
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_node_update_start_date(var_514);
}
,
s if s.matches("NodeUpdateEndDate") /* NodeUpdateEndDate com.amazonaws.elasticache#CacheNodeUpdateStatus$NodeUpdateEndDate */ => {
let var_515 =
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_node_update_end_date(var_515);
}
,
s if s.matches("NodeUpdateInitiatedBy") /* NodeUpdateInitiatedBy com.amazonaws.elasticache#CacheNodeUpdateStatus$NodeUpdateInitiatedBy */ => {
let var_516 =
Some(
Result::<crate::model::NodeUpdateInitiatedBy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::NodeUpdateInitiatedBy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_node_update_initiated_by(var_516);
}
,
s if s.matches("NodeUpdateInitiatedDate") /* NodeUpdateInitiatedDate com.amazonaws.elasticache#CacheNodeUpdateStatus$NodeUpdateInitiatedDate */ => {
let var_517 =
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_node_update_initiated_date(var_517);
}
,
s if s.matches("NodeUpdateStatusModifiedDate") /* NodeUpdateStatusModifiedDate com.amazonaws.elasticache#CacheNodeUpdateStatus$NodeUpdateStatusModifiedDate */ => {
let var_518 =
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_node_update_status_modified_date(var_518);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for CacheNodeUpdateStatus
impl Clone for CacheNodeUpdateStatus
source§fn clone(&self) -> CacheNodeUpdateStatus
fn clone(&self) -> CacheNodeUpdateStatus
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