pub struct ListBucketsBuilder { /* private fields */ }Expand description
A builder for a ListBuckets request.
Implementations§
Source§impl ListBucketsBuilder
impl ListBucketsBuilder
Sourcepub fn bucket_id(self, id: impl Into<String>) -> Self
pub fn bucket_id(self, id: impl Into<String>) -> Self
If provided, only list the bucket with the specified ID.
This is mutually exclusive with Self::bucket_name.
Sourcepub fn bucket_name(
self,
name: impl Into<String>,
) -> Result<Self, BucketValidationError>
pub fn bucket_name( self, name: impl Into<String>, ) -> Result<Self, BucketValidationError>
If provided, only list the bucket with the specified name.
This is mutually exclusive with Self::bucket_id.
Sourcepub fn bucket_types(self, types: &[BucketType]) -> Self
pub fn bucket_types(self, types: &[BucketType]) -> Self
If provided, only list buckets of the specified BucketTypes.
By default, all buckets are listed.
Sourcepub fn with_all_bucket_types(self) -> Self
pub fn with_all_bucket_types(self) -> Self
List all bucket types.
Sourcepub fn build<'a>(self) -> ListBuckets<'a>
pub fn build<'a>(self) -> ListBuckets<'a>
Create a ListBuckets.
Trait Implementations§
Source§impl Default for ListBucketsBuilder
impl Default for ListBucketsBuilder
Source§fn default() -> ListBucketsBuilder
fn default() -> ListBucketsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ListBucketsBuilder
impl RefUnwindSafe for ListBucketsBuilder
impl Send for ListBucketsBuilder
impl Sync for ListBucketsBuilder
impl Unpin for ListBucketsBuilder
impl UnwindSafe for ListBucketsBuilder
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
Mutably borrows from an owned value. Read more