Struct aws_sdk_elasticache::model::resharding_status::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ReshardingStatus
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn slot_migration(self, input: SlotMigration) -> Self
pub fn slot_migration(self, input: SlotMigration) -> Self
Represents the progress of an online resharding operation.
sourcepub fn set_slot_migration(self, input: Option<SlotMigration>) -> Self
pub fn set_slot_migration(self, input: Option<SlotMigration>) -> Self
Represents the progress of an online resharding operation.
Examples found in repository?
src/xml_deser.rs (line 10636)
10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643
pub fn deser_structure_crate_model_resharding_status(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ReshardingStatus, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ReshardingStatus::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("SlotMigration") /* SlotMigration com.amazonaws.elasticache#ReshardingStatus$SlotMigration */ => {
let var_445 =
Some(
crate::xml_deser::deser_structure_crate_model_slot_migration(&mut tag)
?
)
;
builder = builder.set_slot_migration(var_445);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> ReshardingStatus
pub fn build(self) -> ReshardingStatus
Consumes the builder and constructs a ReshardingStatus
.
Examples found in repository?
src/xml_deser.rs (line 10642)
10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643
pub fn deser_structure_crate_model_resharding_status(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ReshardingStatus, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ReshardingStatus::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("SlotMigration") /* SlotMigration com.amazonaws.elasticache#ReshardingStatus$SlotMigration */ => {
let var_445 =
Some(
crate::xml_deser::deser_structure_crate_model_slot_migration(&mut tag)
?
)
;
builder = builder.set_slot_migration(var_445);
}
,
_ => {}
}
}
Ok(builder.build())
}