Struct aws_sdk_elasticache::model::pending_modified_values::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for PendingModifiedValues
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn num_cache_nodes(self, input: i32) -> Self
pub fn num_cache_nodes(self, input: i32) -> Self
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 set_num_cache_nodes(self, input: Option<i32>) -> Self
pub fn set_num_cache_nodes(self, input: Option<i32>) -> Self
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.
Examples found in repository?
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())
}
sourcepub fn cache_node_ids_to_remove(self, input: impl Into<String>) -> Self
pub fn cache_node_ids_to_remove(self, input: impl Into<String>) -> Self
Appends an item to cache_node_ids_to_remove
.
To override the contents of this collection use set_cache_node_ids_to_remove
.
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 set_cache_node_ids_to_remove(self, input: Option<Vec<String>>) -> Self
pub fn set_cache_node_ids_to_remove(self, input: Option<Vec<String>>) -> Self
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.).
Examples found in repository?
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())
}
sourcepub fn engine_version(self, input: impl Into<String>) -> Self
pub fn engine_version(self, input: impl Into<String>) -> Self
The new cache engine version that the cluster runs.
sourcepub fn set_engine_version(self, input: Option<String>) -> Self
pub fn set_engine_version(self, input: Option<String>) -> Self
The new cache engine version that the cluster runs.
Examples found in repository?
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())
}
sourcepub fn cache_node_type(self, input: impl Into<String>) -> Self
pub fn cache_node_type(self, input: impl Into<String>) -> Self
The cache node type that this cluster or replication group is scaled to.
sourcepub fn set_cache_node_type(self, input: Option<String>) -> Self
pub fn set_cache_node_type(self, input: Option<String>) -> Self
The cache node type that this cluster or replication group is scaled to.
Examples found in repository?
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())
}
sourcepub fn auth_token_status(self, input: AuthTokenUpdateStatus) -> Self
pub fn auth_token_status(self, input: AuthTokenUpdateStatus) -> Self
The auth token status
sourcepub fn set_auth_token_status(self, input: Option<AuthTokenUpdateStatus>) -> Self
pub fn set_auth_token_status(self, input: Option<AuthTokenUpdateStatus>) -> Self
The auth token status
Examples found in repository?
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())
}
sourcepub fn log_delivery_configurations(
self,
input: PendingLogDeliveryConfiguration
) -> Self
pub fn log_delivery_configurations(
self,
input: PendingLogDeliveryConfiguration
) -> Self
Appends an item to log_delivery_configurations
.
To override the contents of this collection use set_log_delivery_configurations
.
The log delivery configurations being modified
sourcepub fn set_log_delivery_configurations(
self,
input: Option<Vec<PendingLogDeliveryConfiguration>>
) -> Self
pub fn set_log_delivery_configurations(
self,
input: Option<Vec<PendingLogDeliveryConfiguration>>
) -> Self
The log delivery configurations being modified
Examples found in repository?
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())
}
sourcepub fn build(self) -> PendingModifiedValues
pub fn build(self) -> PendingModifiedValues
Consumes the builder and constructs a PendingModifiedValues
.
Examples found in repository?
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())
}