pub struct Builder { /* private fields */ }
Expand description
A builder for CacheParameterGroupStatus
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn cache_parameter_group_name(self, input: impl Into<String>) -> Self
pub fn cache_parameter_group_name(self, input: impl Into<String>) -> Self
The name of the cache parameter group.
sourcepub fn set_cache_parameter_group_name(self, input: Option<String>) -> Self
pub fn set_cache_parameter_group_name(self, input: Option<String>) -> Self
The name of the cache parameter group.
Examples found in repository?
src/xml_deser.rs (line 9244)
9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274
pub fn deser_structure_crate_model_cache_parameter_group_status(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CacheParameterGroupStatus, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CacheParameterGroupStatus::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CacheParameterGroupName") /* CacheParameterGroupName com.amazonaws.elasticache#CacheParameterGroupStatus$CacheParameterGroupName */ => {
let var_358 =
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_parameter_group_name(var_358);
}
,
s if s.matches("ParameterApplyStatus") /* ParameterApplyStatus com.amazonaws.elasticache#CacheParameterGroupStatus$ParameterApplyStatus */ => {
let var_359 =
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_parameter_apply_status(var_359);
}
,
s if s.matches("CacheNodeIdsToReboot") /* CacheNodeIdsToReboot com.amazonaws.elasticache#CacheParameterGroupStatus$CacheNodeIdsToReboot */ => {
let var_360 =
Some(
crate::xml_deser::deser_list_com_amazonaws_elasticache_cache_node_ids_list(&mut tag)
?
)
;
builder = builder.set_cache_node_ids_to_reboot(var_360);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn parameter_apply_status(self, input: impl Into<String>) -> Self
pub fn parameter_apply_status(self, input: impl Into<String>) -> Self
The status of parameter updates.
sourcepub fn set_parameter_apply_status(self, input: Option<String>) -> Self
pub fn set_parameter_apply_status(self, input: Option<String>) -> Self
The status of parameter updates.
Examples found in repository?
src/xml_deser.rs (line 9257)
9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274
pub fn deser_structure_crate_model_cache_parameter_group_status(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CacheParameterGroupStatus, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CacheParameterGroupStatus::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CacheParameterGroupName") /* CacheParameterGroupName com.amazonaws.elasticache#CacheParameterGroupStatus$CacheParameterGroupName */ => {
let var_358 =
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_parameter_group_name(var_358);
}
,
s if s.matches("ParameterApplyStatus") /* ParameterApplyStatus com.amazonaws.elasticache#CacheParameterGroupStatus$ParameterApplyStatus */ => {
let var_359 =
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_parameter_apply_status(var_359);
}
,
s if s.matches("CacheNodeIdsToReboot") /* CacheNodeIdsToReboot com.amazonaws.elasticache#CacheParameterGroupStatus$CacheNodeIdsToReboot */ => {
let var_360 =
Some(
crate::xml_deser::deser_list_com_amazonaws_elasticache_cache_node_ids_list(&mut tag)
?
)
;
builder = builder.set_cache_node_ids_to_reboot(var_360);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn cache_node_ids_to_reboot(self, input: impl Into<String>) -> Self
pub fn cache_node_ids_to_reboot(self, input: impl Into<String>) -> Self
Appends an item to cache_node_ids_to_reboot
.
To override the contents of this collection use set_cache_node_ids_to_reboot
.
A list of the cache node IDs which need to be rebooted for parameter changes to be applied. A node ID is a numeric identifier (0001, 0002, etc.).
sourcepub fn set_cache_node_ids_to_reboot(self, input: Option<Vec<String>>) -> Self
pub fn set_cache_node_ids_to_reboot(self, input: Option<Vec<String>>) -> Self
A list of the cache node IDs which need to be rebooted for parameter changes to be applied. A node ID is a numeric identifier (0001, 0002, etc.).
Examples found in repository?
src/xml_deser.rs (line 9267)
9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274
pub fn deser_structure_crate_model_cache_parameter_group_status(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CacheParameterGroupStatus, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CacheParameterGroupStatus::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CacheParameterGroupName") /* CacheParameterGroupName com.amazonaws.elasticache#CacheParameterGroupStatus$CacheParameterGroupName */ => {
let var_358 =
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_parameter_group_name(var_358);
}
,
s if s.matches("ParameterApplyStatus") /* ParameterApplyStatus com.amazonaws.elasticache#CacheParameterGroupStatus$ParameterApplyStatus */ => {
let var_359 =
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_parameter_apply_status(var_359);
}
,
s if s.matches("CacheNodeIdsToReboot") /* CacheNodeIdsToReboot com.amazonaws.elasticache#CacheParameterGroupStatus$CacheNodeIdsToReboot */ => {
let var_360 =
Some(
crate::xml_deser::deser_list_com_amazonaws_elasticache_cache_node_ids_list(&mut tag)
?
)
;
builder = builder.set_cache_node_ids_to_reboot(var_360);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> CacheParameterGroupStatus
pub fn build(self) -> CacheParameterGroupStatus
Consumes the builder and constructs a CacheParameterGroupStatus
.
Examples found in repository?
src/xml_deser.rs (line 9273)
9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274
pub fn deser_structure_crate_model_cache_parameter_group_status(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CacheParameterGroupStatus, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CacheParameterGroupStatus::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CacheParameterGroupName") /* CacheParameterGroupName com.amazonaws.elasticache#CacheParameterGroupStatus$CacheParameterGroupName */ => {
let var_358 =
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_parameter_group_name(var_358);
}
,
s if s.matches("ParameterApplyStatus") /* ParameterApplyStatus com.amazonaws.elasticache#CacheParameterGroupStatus$ParameterApplyStatus */ => {
let var_359 =
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_parameter_apply_status(var_359);
}
,
s if s.matches("CacheNodeIdsToReboot") /* CacheNodeIdsToReboot com.amazonaws.elasticache#CacheParameterGroupStatus$CacheNodeIdsToReboot */ => {
let var_360 =
Some(
crate::xml_deser::deser_list_com_amazonaws_elasticache_cache_node_ids_list(&mut tag)
?
)
;
builder = builder.set_cache_node_ids_to_reboot(var_360);
}
,
_ => {}
}
}
Ok(builder.build())
}