#[non_exhaustive]pub struct ObjectIdentifierBuilder { /* private fields */ }
Expand description
A builder for ObjectIdentifier
.
Implementations§
source§impl ObjectIdentifierBuilder
impl ObjectIdentifierBuilder
sourcepub fn key(self, input: impl Into<String>) -> Self
pub fn key(self, input: impl Into<String>) -> Self
Key name of the object.
Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.
sourcepub fn set_key(self, input: Option<String>) -> Self
pub fn set_key(self, input: Option<String>) -> Self
Key name of the object.
Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.
sourcepub fn get_key(&self) -> &Option<String>
pub fn get_key(&self) -> &Option<String>
Key name of the object.
Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.
sourcepub fn version_id(self, input: impl Into<String>) -> Self
pub fn version_id(self, input: impl Into<String>) -> Self
Version ID for the specific version of the object to delete.
This functionality is not supported for directory buckets.
sourcepub fn set_version_id(self, input: Option<String>) -> Self
pub fn set_version_id(self, input: Option<String>) -> Self
Version ID for the specific version of the object to delete.
This functionality is not supported for directory buckets.
sourcepub fn get_version_id(&self) -> &Option<String>
pub fn get_version_id(&self) -> &Option<String>
Version ID for the specific version of the object to delete.
This functionality is not supported for directory buckets.
sourcepub fn e_tag(self, input: impl Into<String>) -> Self
pub fn e_tag(self, input: impl Into<String>) -> Self
An entity tag (ETag) is an identifier assigned by a web server to a specific version of a resource found at a URL. This header field makes the request method conditional on ETags
.
Entity tags (ETags) for S3 Express One Zone are random alphanumeric strings unique to the object.
sourcepub fn set_e_tag(self, input: Option<String>) -> Self
pub fn set_e_tag(self, input: Option<String>) -> Self
An entity tag (ETag) is an identifier assigned by a web server to a specific version of a resource found at a URL. This header field makes the request method conditional on ETags
.
Entity tags (ETags) for S3 Express One Zone are random alphanumeric strings unique to the object.
sourcepub fn get_e_tag(&self) -> &Option<String>
pub fn get_e_tag(&self) -> &Option<String>
An entity tag (ETag) is an identifier assigned by a web server to a specific version of a resource found at a URL. This header field makes the request method conditional on ETags
.
Entity tags (ETags) for S3 Express One Zone are random alphanumeric strings unique to the object.
sourcepub fn last_modified_time(self, input: DateTime) -> Self
pub fn last_modified_time(self, input: DateTime) -> Self
If present, the objects are deleted only if its modification times matches the provided Timestamp
.
This functionality is only supported for directory buckets.
sourcepub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
pub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
If present, the objects are deleted only if its modification times matches the provided Timestamp
.
This functionality is only supported for directory buckets.
sourcepub fn get_last_modified_time(&self) -> &Option<DateTime>
pub fn get_last_modified_time(&self) -> &Option<DateTime>
If present, the objects are deleted only if its modification times matches the provided Timestamp
.
This functionality is only supported for directory buckets.
sourcepub fn size(self, input: i64) -> Self
pub fn size(self, input: i64) -> Self
If present, the objects are deleted only if its size matches the provided size in bytes.
This functionality is only supported for directory buckets.
sourcepub fn set_size(self, input: Option<i64>) -> Self
pub fn set_size(self, input: Option<i64>) -> Self
If present, the objects are deleted only if its size matches the provided size in bytes.
This functionality is only supported for directory buckets.
sourcepub fn get_size(&self) -> &Option<i64>
pub fn get_size(&self) -> &Option<i64>
If present, the objects are deleted only if its size matches the provided size in bytes.
This functionality is only supported for directory buckets.
sourcepub fn build(self) -> Result<ObjectIdentifier, BuildError>
pub fn build(self) -> Result<ObjectIdentifier, BuildError>
Consumes the builder and constructs a ObjectIdentifier
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ObjectIdentifierBuilder
impl Clone for ObjectIdentifierBuilder
source§fn clone(&self) -> ObjectIdentifierBuilder
fn clone(&self) -> ObjectIdentifierBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ObjectIdentifierBuilder
impl Debug for ObjectIdentifierBuilder
source§impl Default for ObjectIdentifierBuilder
impl Default for ObjectIdentifierBuilder
source§fn default() -> ObjectIdentifierBuilder
fn default() -> ObjectIdentifierBuilder
source§impl PartialEq for ObjectIdentifierBuilder
impl PartialEq for ObjectIdentifierBuilder
impl StructuralPartialEq for ObjectIdentifierBuilder
Auto Trait Implementations§
impl Freeze for ObjectIdentifierBuilder
impl RefUnwindSafe for ObjectIdentifierBuilder
impl Send for ObjectIdentifierBuilder
impl Sync for ObjectIdentifierBuilder
impl Unpin for ObjectIdentifierBuilder
impl UnwindSafe for ObjectIdentifierBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more