Struct aws_sdk_devicefarm::client::fluent_builders::PurchaseOffering
source · [−]pub struct PurchaseOffering { /* private fields */ }Expand description
Fluent builder constructing a request to PurchaseOffering.
Immediately purchases offerings for an AWS account. Offerings renew with the latest total purchased quantity for an offering, unless the renewal was overridden. The API returns a NotEligible error if the user is not permitted to invoke the operation. If you must be able to invoke this operation, contact aws-devicefarm-support@amazon.com.
Implementations
sourceimpl PurchaseOffering
impl PurchaseOffering
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<PurchaseOffering, AwsResponseRetryClassifier>, SdkError<PurchaseOfferingError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<PurchaseOffering, AwsResponseRetryClassifier>, SdkError<PurchaseOfferingError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<PurchaseOfferingOutput, SdkError<PurchaseOfferingError>>
pub async fn send(
self
) -> Result<PurchaseOfferingOutput, SdkError<PurchaseOfferingError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
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.
Trait Implementations
sourceimpl Clone for PurchaseOffering
impl Clone for PurchaseOffering
sourcefn clone(&self) -> PurchaseOffering
fn clone(&self) -> PurchaseOffering
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more