Struct aws_sdk_s3::types::builders::S3LocationBuilder
source · #[non_exhaustive]pub struct S3LocationBuilder { /* private fields */ }
Expand description
A builder for S3Location
.
Implementations§
source§impl S3LocationBuilder
impl S3LocationBuilder
sourcepub fn bucket_name(self, input: impl Into<String>) -> Self
pub fn bucket_name(self, input: impl Into<String>) -> Self
The name of the bucket where the restore results will be placed.
This field is required.sourcepub fn set_bucket_name(self, input: Option<String>) -> Self
pub fn set_bucket_name(self, input: Option<String>) -> Self
The name of the bucket where the restore results will be placed.
sourcepub fn get_bucket_name(&self) -> &Option<String>
pub fn get_bucket_name(&self) -> &Option<String>
The name of the bucket where the restore results will be placed.
sourcepub fn prefix(self, input: impl Into<String>) -> Self
pub fn prefix(self, input: impl Into<String>) -> Self
The prefix that is prepended to the restore results for this request.
This field is required.sourcepub fn set_prefix(self, input: Option<String>) -> Self
pub fn set_prefix(self, input: Option<String>) -> Self
The prefix that is prepended to the restore results for this request.
sourcepub fn get_prefix(&self) -> &Option<String>
pub fn get_prefix(&self) -> &Option<String>
The prefix that is prepended to the restore results for this request.
sourcepub fn encryption(self, input: Encryption) -> Self
pub fn encryption(self, input: Encryption) -> Self
Contains the type of server-side encryption used.
sourcepub fn set_encryption(self, input: Option<Encryption>) -> Self
pub fn set_encryption(self, input: Option<Encryption>) -> Self
Contains the type of server-side encryption used.
sourcepub fn get_encryption(&self) -> &Option<Encryption>
pub fn get_encryption(&self) -> &Option<Encryption>
Contains the type of server-side encryption used.
sourcepub fn canned_acl(self, input: ObjectCannedAcl) -> Self
pub fn canned_acl(self, input: ObjectCannedAcl) -> Self
The canned ACL to apply to the restore results.
sourcepub fn set_canned_acl(self, input: Option<ObjectCannedAcl>) -> Self
pub fn set_canned_acl(self, input: Option<ObjectCannedAcl>) -> Self
The canned ACL to apply to the restore results.
sourcepub fn get_canned_acl(&self) -> &Option<ObjectCannedAcl>
pub fn get_canned_acl(&self) -> &Option<ObjectCannedAcl>
The canned ACL to apply to the restore results.
sourcepub fn access_control_list(self, input: Grant) -> Self
pub fn access_control_list(self, input: Grant) -> Self
Appends an item to access_control_list
.
To override the contents of this collection use set_access_control_list
.
A list of grants that control access to the staged results.
sourcepub fn set_access_control_list(self, input: Option<Vec<Grant>>) -> Self
pub fn set_access_control_list(self, input: Option<Vec<Grant>>) -> Self
A list of grants that control access to the staged results.
sourcepub fn get_access_control_list(&self) -> &Option<Vec<Grant>>
pub fn get_access_control_list(&self) -> &Option<Vec<Grant>>
A list of grants that control access to the staged results.
sourcepub fn tagging(self, input: Tagging) -> Self
pub fn tagging(self, input: Tagging) -> Self
The tag-set that is applied to the restore results.
sourcepub fn set_tagging(self, input: Option<Tagging>) -> Self
pub fn set_tagging(self, input: Option<Tagging>) -> Self
The tag-set that is applied to the restore results.
sourcepub fn get_tagging(&self) -> &Option<Tagging>
pub fn get_tagging(&self) -> &Option<Tagging>
The tag-set that is applied to the restore results.
sourcepub fn user_metadata(self, input: MetadataEntry) -> Self
pub fn user_metadata(self, input: MetadataEntry) -> Self
Appends an item to user_metadata
.
To override the contents of this collection use set_user_metadata
.
A list of metadata to store with the restore results in S3.
sourcepub fn set_user_metadata(self, input: Option<Vec<MetadataEntry>>) -> Self
pub fn set_user_metadata(self, input: Option<Vec<MetadataEntry>>) -> Self
A list of metadata to store with the restore results in S3.
sourcepub fn get_user_metadata(&self) -> &Option<Vec<MetadataEntry>>
pub fn get_user_metadata(&self) -> &Option<Vec<MetadataEntry>>
A list of metadata to store with the restore results in S3.
sourcepub fn storage_class(self, input: StorageClass) -> Self
pub fn storage_class(self, input: StorageClass) -> Self
The class of storage used to store the restore results.
sourcepub fn set_storage_class(self, input: Option<StorageClass>) -> Self
pub fn set_storage_class(self, input: Option<StorageClass>) -> Self
The class of storage used to store the restore results.
sourcepub fn get_storage_class(&self) -> &Option<StorageClass>
pub fn get_storage_class(&self) -> &Option<StorageClass>
The class of storage used to store the restore results.
sourcepub fn build(self) -> Result<S3Location, BuildError>
pub fn build(self) -> Result<S3Location, BuildError>
Consumes the builder and constructs a S3Location
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for S3LocationBuilder
impl Clone for S3LocationBuilder
source§fn clone(&self) -> S3LocationBuilder
fn clone(&self) -> S3LocationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for S3LocationBuilder
impl Debug for S3LocationBuilder
source§impl Default for S3LocationBuilder
impl Default for S3LocationBuilder
source§fn default() -> S3LocationBuilder
fn default() -> S3LocationBuilder
source§impl PartialEq for S3LocationBuilder
impl PartialEq for S3LocationBuilder
impl StructuralPartialEq for S3LocationBuilder
Auto Trait Implementations§
impl Freeze for S3LocationBuilder
impl RefUnwindSafe for S3LocationBuilder
impl Send for S3LocationBuilder
impl Sync for S3LocationBuilder
impl Unpin for S3LocationBuilder
impl UnwindSafe for S3LocationBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)