Struct aws_sdk_elasticache::model::PendingModifiedValues
source · #[non_exhaustive]pub struct PendingModifiedValues { /* private fields */ }
Expand description
A group of settings that are applied to the cluster in the future, or that are currently being applied.
Implementations§
source§impl PendingModifiedValues
impl PendingModifiedValues
sourcepub fn num_cache_nodes(&self) -> Option<i32>
pub fn num_cache_nodes(&self) -> Option<i32>
The new number of cache nodes for the cluster.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 40.
sourcepub fn cache_node_ids_to_remove(&self) -> Option<&[String]>
pub fn cache_node_ids_to_remove(&self) -> Option<&[String]>
A list of cache node IDs that are being removed (or will be removed) from the cluster. A node ID is a 4-digit numeric identifier (0001, 0002, etc.).
sourcepub fn engine_version(&self) -> Option<&str>
pub fn engine_version(&self) -> Option<&str>
The new cache engine version that the cluster runs.
sourcepub fn cache_node_type(&self) -> Option<&str>
pub fn cache_node_type(&self) -> Option<&str>
The cache node type that this cluster or replication group is scaled to.
sourcepub fn auth_token_status(&self) -> Option<&AuthTokenUpdateStatus>
pub fn auth_token_status(&self) -> Option<&AuthTokenUpdateStatus>
The auth token status
sourcepub fn log_delivery_configurations(
&self
) -> Option<&[PendingLogDeliveryConfiguration]>
pub fn log_delivery_configurations(
&self
) -> Option<&[PendingLogDeliveryConfiguration]>
The log delivery configurations being modified
source§impl PendingModifiedValues
impl PendingModifiedValues
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PendingModifiedValues
.
Examples found in repository?
src/xml_deser.rs (line 9082)
9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164
pub fn deser_structure_crate_model_pending_modified_values(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::PendingModifiedValues, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::PendingModifiedValues::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("NumCacheNodes") /* NumCacheNodes com.amazonaws.elasticache#PendingModifiedValues$NumCacheNodes */ => {
let var_350 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.elasticache#IntegerOptional`)"))
}
?
)
;
builder = builder.set_num_cache_nodes(var_350);
}
,
s if s.matches("CacheNodeIdsToRemove") /* CacheNodeIdsToRemove com.amazonaws.elasticache#PendingModifiedValues$CacheNodeIdsToRemove */ => {
let var_351 =
Some(
crate::xml_deser::deser_list_com_amazonaws_elasticache_cache_node_ids_list(&mut tag)
?
)
;
builder = builder.set_cache_node_ids_to_remove(var_351);
}
,
s if s.matches("EngineVersion") /* EngineVersion com.amazonaws.elasticache#PendingModifiedValues$EngineVersion */ => {
let var_352 =
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_engine_version(var_352);
}
,
s if s.matches("CacheNodeType") /* CacheNodeType com.amazonaws.elasticache#PendingModifiedValues$CacheNodeType */ => {
let var_353 =
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_type(var_353);
}
,
s if s.matches("AuthTokenStatus") /* AuthTokenStatus com.amazonaws.elasticache#PendingModifiedValues$AuthTokenStatus */ => {
let var_354 =
Some(
Result::<crate::model::AuthTokenUpdateStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AuthTokenUpdateStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_auth_token_status(var_354);
}
,
s if s.matches("LogDeliveryConfigurations") /* LogDeliveryConfigurations com.amazonaws.elasticache#PendingModifiedValues$LogDeliveryConfigurations */ => {
let var_355 =
Some(
crate::xml_deser::deser_list_com_amazonaws_elasticache_pending_log_delivery_configuration_list(&mut tag)
?
)
;
builder = builder.set_log_delivery_configurations(var_355);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for PendingModifiedValues
impl Clone for PendingModifiedValues
source§fn clone(&self) -> PendingModifiedValues
fn clone(&self) -> PendingModifiedValues
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