Struct aws_sdk_s3control::model::S3ObjectLockLegalHold
source · #[non_exhaustive]pub struct S3ObjectLockLegalHold { /* private fields */ }
Expand description
Whether S3 Object Lock legal hold will be applied to objects in an S3 Batch Operations job.
Implementations§
source§impl S3ObjectLockLegalHold
impl S3ObjectLockLegalHold
sourcepub fn status(&self) -> Option<&S3ObjectLockLegalHoldStatus>
pub fn status(&self) -> Option<&S3ObjectLockLegalHoldStatus>
The Object Lock legal hold status to be applied to all objects in the Batch Operations job.
source§impl S3ObjectLockLegalHold
impl S3ObjectLockLegalHold
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture S3ObjectLockLegalHold
.
Examples found in repository?
src/xml_deser.rs (line 5979)
5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000
pub fn deser_structure_crate_model_s3_object_lock_legal_hold(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::S3ObjectLockLegalHold, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::S3ObjectLockLegalHold::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Status") /* Status com.amazonaws.s3control#S3ObjectLockLegalHold$Status */ => {
let var_282 =
Some(
Result::<crate::model::S3ObjectLockLegalHoldStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::S3ObjectLockLegalHoldStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_282);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for S3ObjectLockLegalHold
impl Clone for S3ObjectLockLegalHold
source§fn clone(&self) -> S3ObjectLockLegalHold
fn clone(&self) -> S3ObjectLockLegalHold
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