Struct aws_sdk_s3control::types::builders::S3ObjectMetadataBuilder
source · #[non_exhaustive]pub struct S3ObjectMetadataBuilder { /* private fields */ }
Expand description
A builder for S3ObjectMetadata
.
Implementations§
source§impl S3ObjectMetadataBuilder
impl S3ObjectMetadataBuilder
sourcepub fn cache_control(self, input: impl Into<String>) -> Self
pub fn cache_control(self, input: impl Into<String>) -> Self
sourcepub fn set_cache_control(self, input: Option<String>) -> Self
pub fn set_cache_control(self, input: Option<String>) -> Self
sourcepub fn get_cache_control(&self) -> &Option<String>
pub fn get_cache_control(&self) -> &Option<String>
sourcepub fn content_disposition(self, input: impl Into<String>) -> Self
pub fn content_disposition(self, input: impl Into<String>) -> Self
sourcepub fn set_content_disposition(self, input: Option<String>) -> Self
pub fn set_content_disposition(self, input: Option<String>) -> Self
sourcepub fn get_content_disposition(&self) -> &Option<String>
pub fn get_content_disposition(&self) -> &Option<String>
sourcepub fn content_encoding(self, input: impl Into<String>) -> Self
pub fn content_encoding(self, input: impl Into<String>) -> Self
sourcepub fn set_content_encoding(self, input: Option<String>) -> Self
pub fn set_content_encoding(self, input: Option<String>) -> Self
sourcepub fn get_content_encoding(&self) -> &Option<String>
pub fn get_content_encoding(&self) -> &Option<String>
sourcepub fn content_language(self, input: impl Into<String>) -> Self
pub fn content_language(self, input: impl Into<String>) -> Self
sourcepub fn set_content_language(self, input: Option<String>) -> Self
pub fn set_content_language(self, input: Option<String>) -> Self
sourcepub fn get_content_language(&self) -> &Option<String>
pub fn get_content_language(&self) -> &Option<String>
sourcepub fn user_metadata(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn user_metadata(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to user_metadata
.
To override the contents of this collection use set_user_metadata
.
sourcepub fn content_length(self, input: i64) -> Self
pub fn content_length(self, input: i64) -> Self
This member has been deprecated.
sourcepub fn set_content_length(self, input: Option<i64>) -> Self
pub fn set_content_length(self, input: Option<i64>) -> Self
This member has been deprecated.
sourcepub fn get_content_length(&self) -> &Option<i64>
pub fn get_content_length(&self) -> &Option<i64>
This member has been deprecated.
sourcepub fn content_md5(self, input: impl Into<String>) -> Self
pub fn content_md5(self, input: impl Into<String>) -> Self
This member has been deprecated.
sourcepub fn set_content_md5(self, input: Option<String>) -> Self
pub fn set_content_md5(self, input: Option<String>) -> Self
This member has been deprecated.
sourcepub fn get_content_md5(&self) -> &Option<String>
pub fn get_content_md5(&self) -> &Option<String>
This member has been deprecated.
sourcepub fn content_type(self, input: impl Into<String>) -> Self
pub fn content_type(self, input: impl Into<String>) -> Self
sourcepub fn set_content_type(self, input: Option<String>) -> Self
pub fn set_content_type(self, input: Option<String>) -> Self
sourcepub fn get_content_type(&self) -> &Option<String>
pub fn get_content_type(&self) -> &Option<String>
sourcepub fn http_expires_date(self, input: DateTime) -> Self
pub fn http_expires_date(self, input: DateTime) -> Self
sourcepub fn set_http_expires_date(self, input: Option<DateTime>) -> Self
pub fn set_http_expires_date(self, input: Option<DateTime>) -> Self
sourcepub fn get_http_expires_date(&self) -> &Option<DateTime>
pub fn get_http_expires_date(&self) -> &Option<DateTime>
sourcepub fn requester_charged(self, input: bool) -> Self
pub fn requester_charged(self, input: bool) -> Self
This member has been deprecated.
sourcepub fn set_requester_charged(self, input: Option<bool>) -> Self
pub fn set_requester_charged(self, input: Option<bool>) -> Self
This member has been deprecated.
sourcepub fn get_requester_charged(&self) -> &Option<bool>
pub fn get_requester_charged(&self) -> &Option<bool>
This member has been deprecated.
sourcepub fn sse_algorithm(self, input: S3SseAlgorithm) -> Self
pub fn sse_algorithm(self, input: S3SseAlgorithm) -> Self
For directory buckets, only the server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256
) is supported.
sourcepub fn set_sse_algorithm(self, input: Option<S3SseAlgorithm>) -> Self
pub fn set_sse_algorithm(self, input: Option<S3SseAlgorithm>) -> Self
For directory buckets, only the server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256
) is supported.
sourcepub fn get_sse_algorithm(&self) -> &Option<S3SseAlgorithm>
pub fn get_sse_algorithm(&self) -> &Option<S3SseAlgorithm>
For directory buckets, only the server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256
) is supported.
sourcepub fn build(self) -> S3ObjectMetadata
pub fn build(self) -> S3ObjectMetadata
Consumes the builder and constructs a S3ObjectMetadata
.
Trait Implementations§
source§impl Clone for S3ObjectMetadataBuilder
impl Clone for S3ObjectMetadataBuilder
source§fn clone(&self) -> S3ObjectMetadataBuilder
fn clone(&self) -> S3ObjectMetadataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for S3ObjectMetadataBuilder
impl Debug for S3ObjectMetadataBuilder
source§impl Default for S3ObjectMetadataBuilder
impl Default for S3ObjectMetadataBuilder
source§fn default() -> S3ObjectMetadataBuilder
fn default() -> S3ObjectMetadataBuilder
source§impl PartialEq for S3ObjectMetadataBuilder
impl PartialEq for S3ObjectMetadataBuilder
source§fn eq(&self, other: &S3ObjectMetadataBuilder) -> bool
fn eq(&self, other: &S3ObjectMetadataBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for S3ObjectMetadataBuilder
Auto Trait Implementations§
impl Freeze for S3ObjectMetadataBuilder
impl RefUnwindSafe for S3ObjectMetadataBuilder
impl Send for S3ObjectMetadataBuilder
impl Sync for S3ObjectMetadataBuilder
impl Unpin for S3ObjectMetadataBuilder
impl UnwindSafe for S3ObjectMetadataBuilder
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> 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