Struct aws_sdk_lightsail::types::builders::BucketStateBuilder
source · #[non_exhaustive]pub struct BucketStateBuilder { /* private fields */ }
Expand description
A builder for BucketState
.
Implementations§
source§impl BucketStateBuilder
impl BucketStateBuilder
sourcepub fn code(self, input: impl Into<String>) -> Self
pub fn code(self, input: impl Into<String>) -> Self
The state code of the bucket.
The following codes are possible:
-
OK
- The bucket is in a running state. -
Unknown
- Creation of the bucket might have timed-out. You might want to delete the bucket and create a new one.
sourcepub fn set_code(self, input: Option<String>) -> Self
pub fn set_code(self, input: Option<String>) -> Self
The state code of the bucket.
The following codes are possible:
-
OK
- The bucket is in a running state. -
Unknown
- Creation of the bucket might have timed-out. You might want to delete the bucket and create a new one.
sourcepub fn get_code(&self) -> &Option<String>
pub fn get_code(&self) -> &Option<String>
The state code of the bucket.
The following codes are possible:
-
OK
- The bucket is in a running state. -
Unknown
- Creation of the bucket might have timed-out. You might want to delete the bucket and create a new one.
sourcepub fn message(self, input: impl Into<String>) -> Self
pub fn message(self, input: impl Into<String>) -> Self
A message that describes the state of the bucket.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
A message that describes the state of the bucket.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
A message that describes the state of the bucket.
sourcepub fn build(self) -> BucketState
pub fn build(self) -> BucketState
Consumes the builder and constructs a BucketState
.
Trait Implementations§
source§impl Clone for BucketStateBuilder
impl Clone for BucketStateBuilder
source§fn clone(&self) -> BucketStateBuilder
fn clone(&self) -> BucketStateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BucketStateBuilder
impl Debug for BucketStateBuilder
source§impl Default for BucketStateBuilder
impl Default for BucketStateBuilder
source§fn default() -> BucketStateBuilder
fn default() -> BucketStateBuilder
source§impl PartialEq for BucketStateBuilder
impl PartialEq for BucketStateBuilder
source§fn eq(&self, other: &BucketStateBuilder) -> bool
fn eq(&self, other: &BucketStateBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BucketStateBuilder
Auto Trait Implementations§
impl Freeze for BucketStateBuilder
impl RefUnwindSafe for BucketStateBuilder
impl Send for BucketStateBuilder
impl Sync for BucketStateBuilder
impl Unpin for BucketStateBuilder
impl UnwindSafe for BucketStateBuilder
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