Struct aws_sdk_s3::model::ReplicationTime
source · #[non_exhaustive]pub struct ReplicationTime { /* private fields */ }
Expand description
A container specifying S3 Replication Time Control (S3 RTC) related information, including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. Must be specified together with a Metrics
block.
Implementations§
source§impl ReplicationTime
impl ReplicationTime
sourcepub fn status(&self) -> Option<&ReplicationTimeStatus>
pub fn status(&self) -> Option<&ReplicationTimeStatus>
Specifies whether the replication time is enabled.
sourcepub fn time(&self) -> Option<&ReplicationTimeValue>
pub fn time(&self) -> Option<&ReplicationTimeValue>
A container specifying the time by which replication should be complete for all objects and operations on objects.
source§impl ReplicationTime
impl ReplicationTime
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ReplicationTime
.
Examples found in repository?
src/xml_deser.rs (line 7699)
7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730
pub fn deser_structure_crate_model_replication_time(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ReplicationTime, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ReplicationTime::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Status") /* Status com.amazonaws.s3#ReplicationTime$Status */ => {
let var_422 =
Some(
Result::<crate::model::ReplicationTimeStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ReplicationTimeStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_422);
}
,
s if s.matches("Time") /* Time com.amazonaws.s3#ReplicationTime$Time */ => {
let var_423 =
Some(
crate::xml_deser::deser_structure_crate_model_replication_time_value(&mut tag)
?
)
;
builder = builder.set_time(var_423);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ReplicationTime
impl Clone for ReplicationTime
source§fn clone(&self) -> ReplicationTime
fn clone(&self) -> ReplicationTime
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