Struct aws_sdk_devicefarm::operation::purchase_offering::builders::PurchaseOfferingInputBuilder
source · #[non_exhaustive]pub struct PurchaseOfferingInputBuilder { /* private fields */ }Expand description
A builder for PurchaseOfferingInput.
Implementations§
source§impl PurchaseOfferingInputBuilder
impl PurchaseOfferingInputBuilder
sourcepub fn offering_id(self, input: impl Into<String>) -> Self
pub fn offering_id(self, input: impl Into<String>) -> Self
The ID of the offering.
sourcepub fn set_offering_id(self, input: Option<String>) -> Self
pub fn set_offering_id(self, input: Option<String>) -> Self
The ID of the offering.
sourcepub fn quantity(self, input: i32) -> Self
pub fn quantity(self, input: i32) -> Self
The number of device slots to purchase in an offering request.
sourcepub fn set_quantity(self, input: Option<i32>) -> Self
pub fn set_quantity(self, input: Option<i32>) -> Self
The number of device slots to purchase in an offering request.
sourcepub fn offering_promotion_id(self, input: impl Into<String>) -> Self
pub fn offering_promotion_id(self, input: impl Into<String>) -> Self
The ID of the offering promotion to be applied to the purchase.
sourcepub fn set_offering_promotion_id(self, input: Option<String>) -> Self
pub fn set_offering_promotion_id(self, input: Option<String>) -> Self
The ID of the offering promotion to be applied to the purchase.
sourcepub fn build(self) -> Result<PurchaseOfferingInput, BuildError>
pub fn build(self) -> Result<PurchaseOfferingInput, BuildError>
Consumes the builder and constructs a PurchaseOfferingInput.
Trait Implementations§
source§impl Clone for PurchaseOfferingInputBuilder
impl Clone for PurchaseOfferingInputBuilder
source§fn clone(&self) -> PurchaseOfferingInputBuilder
fn clone(&self) -> PurchaseOfferingInputBuilder
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 PurchaseOfferingInputBuilder
impl Debug for PurchaseOfferingInputBuilder
source§impl Default for PurchaseOfferingInputBuilder
impl Default for PurchaseOfferingInputBuilder
source§fn default() -> PurchaseOfferingInputBuilder
fn default() -> PurchaseOfferingInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<PurchaseOfferingInputBuilder> for PurchaseOfferingInputBuilder
impl PartialEq<PurchaseOfferingInputBuilder> for PurchaseOfferingInputBuilder
source§fn eq(&self, other: &PurchaseOfferingInputBuilder) -> bool
fn eq(&self, other: &PurchaseOfferingInputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.