Struct bonsaidb::keystorage::s3::aws_sdk_s3::types::builders::ObjectBuilder
pub struct ObjectBuilder { /* private fields */ }
Expand description
A builder for Object
.
Implementations§
§impl ObjectBuilder
impl ObjectBuilder
pub fn key(self, input: impl Into<String>) -> ObjectBuilder
pub fn key(self, input: impl Into<String>) -> ObjectBuilder
The name that you assign to an object. You use the object key to retrieve the object.
pub fn set_key(self, input: Option<String>) -> ObjectBuilder
pub fn set_key(self, input: Option<String>) -> ObjectBuilder
The name that you assign to an object. You use the object key to retrieve the object.
pub fn get_key(&self) -> &Option<String>
pub fn get_key(&self) -> &Option<String>
The name that you assign to an object. You use the object key to retrieve the object.
pub fn last_modified(self, input: DateTime) -> ObjectBuilder
pub fn last_modified(self, input: DateTime) -> ObjectBuilder
Creation date of the object.
pub fn set_last_modified(self, input: Option<DateTime>) -> ObjectBuilder
pub fn set_last_modified(self, input: Option<DateTime>) -> ObjectBuilder
Creation date of the object.
pub fn get_last_modified(&self) -> &Option<DateTime>
pub fn get_last_modified(&self) -> &Option<DateTime>
Creation date of the object.
pub fn e_tag(self, input: impl Into<String>) -> ObjectBuilder
pub fn e_tag(self, input: impl Into<String>) -> ObjectBuilder
The entity tag is a hash of the object. The ETag reflects changes only to the contents of an object, not its metadata. The ETag may or may not be an MD5 digest of the object data. Whether or not it is depends on how the object was created and how it is encrypted as described below:
-
Objects created by the PUT Object, POST Object, or Copy operation, or through the Amazon Web Services Management Console, and are encrypted by SSE-S3 or plaintext, have ETags that are an MD5 digest of their object data.
-
Objects created by the PUT Object, POST Object, or Copy operation, or through the Amazon Web Services Management Console, and are encrypted by SSE-C or SSE-KMS, have ETags that are not an MD5 digest of their object data.
-
If an object is created by either the Multipart Upload or Part Copy operation, the ETag is not an MD5 digest, regardless of the method of encryption. If an object is larger than 16 MB, the Amazon Web Services Management Console will upload or copy that object as a Multipart Upload, and therefore the ETag will not be an MD5 digest.
pub fn set_e_tag(self, input: Option<String>) -> ObjectBuilder
pub fn set_e_tag(self, input: Option<String>) -> ObjectBuilder
The entity tag is a hash of the object. The ETag reflects changes only to the contents of an object, not its metadata. The ETag may or may not be an MD5 digest of the object data. Whether or not it is depends on how the object was created and how it is encrypted as described below:
-
Objects created by the PUT Object, POST Object, or Copy operation, or through the Amazon Web Services Management Console, and are encrypted by SSE-S3 or plaintext, have ETags that are an MD5 digest of their object data.
-
Objects created by the PUT Object, POST Object, or Copy operation, or through the Amazon Web Services Management Console, and are encrypted by SSE-C or SSE-KMS, have ETags that are not an MD5 digest of their object data.
-
If an object is created by either the Multipart Upload or Part Copy operation, the ETag is not an MD5 digest, regardless of the method of encryption. If an object is larger than 16 MB, the Amazon Web Services Management Console will upload or copy that object as a Multipart Upload, and therefore the ETag will not be an MD5 digest.
pub fn get_e_tag(&self) -> &Option<String>
pub fn get_e_tag(&self) -> &Option<String>
The entity tag is a hash of the object. The ETag reflects changes only to the contents of an object, not its metadata. The ETag may or may not be an MD5 digest of the object data. Whether or not it is depends on how the object was created and how it is encrypted as described below:
-
Objects created by the PUT Object, POST Object, or Copy operation, or through the Amazon Web Services Management Console, and are encrypted by SSE-S3 or plaintext, have ETags that are an MD5 digest of their object data.
-
Objects created by the PUT Object, POST Object, or Copy operation, or through the Amazon Web Services Management Console, and are encrypted by SSE-C or SSE-KMS, have ETags that are not an MD5 digest of their object data.
-
If an object is created by either the Multipart Upload or Part Copy operation, the ETag is not an MD5 digest, regardless of the method of encryption. If an object is larger than 16 MB, the Amazon Web Services Management Console will upload or copy that object as a Multipart Upload, and therefore the ETag will not be an MD5 digest.
pub fn checksum_algorithm(self, input: ChecksumAlgorithm) -> ObjectBuilder
pub fn checksum_algorithm(self, input: ChecksumAlgorithm) -> ObjectBuilder
Appends an item to checksum_algorithm
.
To override the contents of this collection use set_checksum_algorithm
.
The algorithm that was used to create a checksum of the object.
pub fn set_checksum_algorithm(
self,
input: Option<Vec<ChecksumAlgorithm, Global>>
) -> ObjectBuilder
pub fn set_checksum_algorithm( self, input: Option<Vec<ChecksumAlgorithm, Global>> ) -> ObjectBuilder
The algorithm that was used to create a checksum of the object.
pub fn get_checksum_algorithm(&self) -> &Option<Vec<ChecksumAlgorithm, Global>>
pub fn get_checksum_algorithm(&self) -> &Option<Vec<ChecksumAlgorithm, Global>>
The algorithm that was used to create a checksum of the object.
pub fn size(self, input: i64) -> ObjectBuilder
pub fn size(self, input: i64) -> ObjectBuilder
Size in bytes of the object
pub fn set_size(self, input: Option<i64>) -> ObjectBuilder
pub fn set_size(self, input: Option<i64>) -> ObjectBuilder
Size in bytes of the object
pub fn storage_class(self, input: ObjectStorageClass) -> ObjectBuilder
pub fn storage_class(self, input: ObjectStorageClass) -> ObjectBuilder
The class of storage used to store the object.
pub fn set_storage_class(
self,
input: Option<ObjectStorageClass>
) -> ObjectBuilder
pub fn set_storage_class( self, input: Option<ObjectStorageClass> ) -> ObjectBuilder
The class of storage used to store the object.
pub fn get_storage_class(&self) -> &Option<ObjectStorageClass>
pub fn get_storage_class(&self) -> &Option<ObjectStorageClass>
The class of storage used to store the object.
pub fn owner(self, input: Owner) -> ObjectBuilder
pub fn owner(self, input: Owner) -> ObjectBuilder
The owner of the object
pub fn set_owner(self, input: Option<Owner>) -> ObjectBuilder
pub fn set_owner(self, input: Option<Owner>) -> ObjectBuilder
The owner of the object
pub fn restore_status(self, input: RestoreStatus) -> ObjectBuilder
pub fn restore_status(self, input: RestoreStatus) -> ObjectBuilder
Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see Working with archived objects in the Amazon S3 User Guide.
pub fn set_restore_status(self, input: Option<RestoreStatus>) -> ObjectBuilder
pub fn set_restore_status(self, input: Option<RestoreStatus>) -> ObjectBuilder
Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see Working with archived objects in the Amazon S3 User Guide.
pub fn get_restore_status(&self) -> &Option<RestoreStatus>
pub fn get_restore_status(&self) -> &Option<RestoreStatus>
Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see Working with archived objects in the Amazon S3 User Guide.
Trait Implementations§
§impl Clone for ObjectBuilder
impl Clone for ObjectBuilder
§fn clone(&self) -> ObjectBuilder
fn clone(&self) -> ObjectBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for ObjectBuilder
impl Debug for ObjectBuilder
§impl Default for ObjectBuilder
impl Default for ObjectBuilder
§fn default() -> ObjectBuilder
fn default() -> ObjectBuilder
§impl PartialEq<ObjectBuilder> for ObjectBuilder
impl PartialEq<ObjectBuilder> for ObjectBuilder
§fn eq(&self, other: &ObjectBuilder) -> bool
fn eq(&self, other: &ObjectBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.