#[non_exhaustive]pub struct CapacityAllocationBuilder { /* private fields */ }Expand description
A builder for CapacityAllocation.
Implementations§
Source§impl CapacityAllocationBuilder
impl CapacityAllocationBuilder
Sourcepub fn status(self, input: CapacityAllocationStatus) -> Self
pub fn status(self, input: CapacityAllocationStatus) -> Self
The status of the capacity allocation.
This field is required.Sourcepub fn set_status(self, input: Option<CapacityAllocationStatus>) -> Self
pub fn set_status(self, input: Option<CapacityAllocationStatus>) -> Self
The status of the capacity allocation.
Sourcepub fn get_status(&self) -> &Option<CapacityAllocationStatus>
pub fn get_status(&self) -> &Option<CapacityAllocationStatus>
The status of the capacity allocation.
Sourcepub fn status_message(self, input: impl Into<String>) -> Self
pub fn status_message(self, input: impl Into<String>) -> Self
The status message of the capacity allocation.
Sourcepub fn set_status_message(self, input: Option<String>) -> Self
pub fn set_status_message(self, input: Option<String>) -> Self
The status message of the capacity allocation.
Sourcepub fn get_status_message(&self) -> &Option<String>
pub fn get_status_message(&self) -> &Option<String>
The status message of the capacity allocation.
Sourcepub fn request_time(self, input: DateTime) -> Self
pub fn request_time(self, input: DateTime) -> Self
The time when the capacity allocation was requested.
This field is required.Sourcepub fn set_request_time(self, input: Option<DateTime>) -> Self
pub fn set_request_time(self, input: Option<DateTime>) -> Self
The time when the capacity allocation was requested.
Sourcepub fn get_request_time(&self) -> &Option<DateTime>
pub fn get_request_time(&self) -> &Option<DateTime>
The time when the capacity allocation was requested.
Sourcepub fn request_completion_time(self, input: DateTime) -> Self
pub fn request_completion_time(self, input: DateTime) -> Self
The time when the capacity allocation request was completed.
Sourcepub fn set_request_completion_time(self, input: Option<DateTime>) -> Self
pub fn set_request_completion_time(self, input: Option<DateTime>) -> Self
The time when the capacity allocation request was completed.
Sourcepub fn get_request_completion_time(&self) -> &Option<DateTime>
pub fn get_request_completion_time(&self) -> &Option<DateTime>
The time when the capacity allocation request was completed.
Sourcepub fn build(self) -> Result<CapacityAllocation, BuildError>
pub fn build(self) -> Result<CapacityAllocation, BuildError>
Consumes the builder and constructs a CapacityAllocation.
This method will fail if any of the following fields are not set:
Trait Implementations§
Source§impl Clone for CapacityAllocationBuilder
impl Clone for CapacityAllocationBuilder
Source§fn clone(&self) -> CapacityAllocationBuilder
fn clone(&self) -> CapacityAllocationBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CapacityAllocationBuilder
impl Debug for CapacityAllocationBuilder
Source§impl Default for CapacityAllocationBuilder
impl Default for CapacityAllocationBuilder
Source§fn default() -> CapacityAllocationBuilder
fn default() -> CapacityAllocationBuilder
Returns the “default value” for a type. Read more
impl StructuralPartialEq for CapacityAllocationBuilder
Auto Trait Implementations§
impl Freeze for CapacityAllocationBuilder
impl RefUnwindSafe for CapacityAllocationBuilder
impl Send for CapacityAllocationBuilder
impl Sync for CapacityAllocationBuilder
impl Unpin for CapacityAllocationBuilder
impl UnsafeUnpin for CapacityAllocationBuilder
impl UnwindSafe for CapacityAllocationBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.