Struct aws_sdk_snowball::operation::create_long_term_pricing::builders::CreateLongTermPricingFluentBuilder
source · pub struct CreateLongTermPricingFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateLongTermPricing
.
Creates a job with the long-term usage option for a device. The long-term usage is a 1-year or 3-year long-term pricing type for the device. You are billed upfront, and Amazon Web Services provides discounts for long-term pricing.
Implementations§
source§impl CreateLongTermPricingFluentBuilder
impl CreateLongTermPricingFluentBuilder
sourcepub fn as_input(&self) -> &CreateLongTermPricingInputBuilder
pub fn as_input(&self) -> &CreateLongTermPricingInputBuilder
Access the CreateLongTermPricing as a reference.
sourcepub async fn send(
self
) -> Result<CreateLongTermPricingOutput, SdkError<CreateLongTermPricingError, HttpResponse>>
pub async fn send( self ) -> Result<CreateLongTermPricingOutput, SdkError<CreateLongTermPricingError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<CreateLongTermPricingOutput, CreateLongTermPricingError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateLongTermPricingOutput, CreateLongTermPricingError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn long_term_pricing_type(self, input: LongTermPricingType) -> Self
pub fn long_term_pricing_type(self, input: LongTermPricingType) -> Self
The type of long-term pricing option you want for the device, either 1-year or 3-year long-term pricing.
sourcepub fn set_long_term_pricing_type(
self,
input: Option<LongTermPricingType>
) -> Self
pub fn set_long_term_pricing_type( self, input: Option<LongTermPricingType> ) -> Self
The type of long-term pricing option you want for the device, either 1-year or 3-year long-term pricing.
sourcepub fn get_long_term_pricing_type(&self) -> &Option<LongTermPricingType>
pub fn get_long_term_pricing_type(&self) -> &Option<LongTermPricingType>
The type of long-term pricing option you want for the device, either 1-year or 3-year long-term pricing.
sourcepub fn is_long_term_pricing_auto_renew(self, input: bool) -> Self
pub fn is_long_term_pricing_auto_renew(self, input: bool) -> Self
Specifies whether the current long-term pricing type for the device should be renewed.
sourcepub fn set_is_long_term_pricing_auto_renew(self, input: Option<bool>) -> Self
pub fn set_is_long_term_pricing_auto_renew(self, input: Option<bool>) -> Self
Specifies whether the current long-term pricing type for the device should be renewed.
sourcepub fn get_is_long_term_pricing_auto_renew(&self) -> &Option<bool>
pub fn get_is_long_term_pricing_auto_renew(&self) -> &Option<bool>
Specifies whether the current long-term pricing type for the device should be renewed.
sourcepub fn snowball_type(self, input: SnowballType) -> Self
pub fn snowball_type(self, input: SnowballType) -> Self
The type of Snow Family devices to use for the long-term pricing job.
sourcepub fn set_snowball_type(self, input: Option<SnowballType>) -> Self
pub fn set_snowball_type(self, input: Option<SnowballType>) -> Self
The type of Snow Family devices to use for the long-term pricing job.
sourcepub fn get_snowball_type(&self) -> &Option<SnowballType>
pub fn get_snowball_type(&self) -> &Option<SnowballType>
The type of Snow Family devices to use for the long-term pricing job.
Trait Implementations§
source§impl Clone for CreateLongTermPricingFluentBuilder
impl Clone for CreateLongTermPricingFluentBuilder
source§fn clone(&self) -> CreateLongTermPricingFluentBuilder
fn clone(&self) -> CreateLongTermPricingFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more