Struct aws_sdk_devicefarm::types::builders::OfferingStatusBuilder
source · #[non_exhaustive]pub struct OfferingStatusBuilder { /* private fields */ }Expand description
A builder for OfferingStatus.
Implementations§
source§impl OfferingStatusBuilder
impl OfferingStatusBuilder
sourcepub fn type(self, input: OfferingTransactionType) -> Self
pub fn type(self, input: OfferingTransactionType) -> Self
The type specified for the offering status.
sourcepub fn set_type(self, input: Option<OfferingTransactionType>) -> Self
pub fn set_type(self, input: Option<OfferingTransactionType>) -> Self
The type specified for the offering status.
sourcepub fn get_type(&self) -> &Option<OfferingTransactionType>
pub fn get_type(&self) -> &Option<OfferingTransactionType>
The type specified for the offering status.
sourcepub fn set_offering(self, input: Option<Offering>) -> Self
pub fn set_offering(self, input: Option<Offering>) -> Self
Represents the metadata of an offering status.
sourcepub fn get_offering(&self) -> &Option<Offering>
pub fn get_offering(&self) -> &Option<Offering>
Represents the metadata of an offering status.
sourcepub fn set_quantity(self, input: Option<i32>) -> Self
pub fn set_quantity(self, input: Option<i32>) -> Self
The number of available devices in the offering.
sourcepub fn get_quantity(&self) -> &Option<i32>
pub fn get_quantity(&self) -> &Option<i32>
The number of available devices in the offering.
sourcepub fn effective_on(self, input: DateTime) -> Self
pub fn effective_on(self, input: DateTime) -> Self
The date on which the offering is effective.
sourcepub fn set_effective_on(self, input: Option<DateTime>) -> Self
pub fn set_effective_on(self, input: Option<DateTime>) -> Self
The date on which the offering is effective.
sourcepub fn get_effective_on(&self) -> &Option<DateTime>
pub fn get_effective_on(&self) -> &Option<DateTime>
The date on which the offering is effective.
sourcepub fn build(self) -> OfferingStatus
pub fn build(self) -> OfferingStatus
Consumes the builder and constructs a OfferingStatus.
Trait Implementations§
source§impl Clone for OfferingStatusBuilder
impl Clone for OfferingStatusBuilder
source§fn clone(&self) -> OfferingStatusBuilder
fn clone(&self) -> OfferingStatusBuilder
Returns a copy 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 OfferingStatusBuilder
impl Debug for OfferingStatusBuilder
source§impl Default for OfferingStatusBuilder
impl Default for OfferingStatusBuilder
source§fn default() -> OfferingStatusBuilder
fn default() -> OfferingStatusBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for OfferingStatusBuilder
impl PartialEq for OfferingStatusBuilder
impl StructuralPartialEq for OfferingStatusBuilder
Auto Trait Implementations§
impl Freeze for OfferingStatusBuilder
impl RefUnwindSafe for OfferingStatusBuilder
impl Send for OfferingStatusBuilder
impl Sync for OfferingStatusBuilder
impl Unpin for OfferingStatusBuilder
impl UnwindSafe for OfferingStatusBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.