Struct aws_sdk_snowball::operation::update_long_term_pricing::builders::UpdateLongTermPricingFluentBuilder
source · pub struct UpdateLongTermPricingFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateLongTermPricing
.
Updates the long-term pricing type.
Implementations§
source§impl UpdateLongTermPricingFluentBuilder
impl UpdateLongTermPricingFluentBuilder
sourcepub fn as_input(&self) -> &UpdateLongTermPricingInputBuilder
pub fn as_input(&self) -> &UpdateLongTermPricingInputBuilder
Access the UpdateLongTermPricing as a reference.
sourcepub async fn send(
self
) -> Result<UpdateLongTermPricingOutput, SdkError<UpdateLongTermPricingError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateLongTermPricingOutput, SdkError<UpdateLongTermPricingError, 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<UpdateLongTermPricingOutput, UpdateLongTermPricingError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateLongTermPricingOutput, UpdateLongTermPricingError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn long_term_pricing_id(self, input: impl Into<String>) -> Self
pub fn long_term_pricing_id(self, input: impl Into<String>) -> Self
The ID of the long-term pricing type for the device.
sourcepub fn set_long_term_pricing_id(self, input: Option<String>) -> Self
pub fn set_long_term_pricing_id(self, input: Option<String>) -> Self
The ID of the long-term pricing type for the device.
sourcepub fn get_long_term_pricing_id(&self) -> &Option<String>
pub fn get_long_term_pricing_id(&self) -> &Option<String>
The ID of the long-term pricing type for the device.
sourcepub fn replacement_job(self, input: impl Into<String>) -> Self
pub fn replacement_job(self, input: impl Into<String>) -> Self
Specifies that a device that is ordered with long-term pricing should be replaced with a new device.
sourcepub fn set_replacement_job(self, input: Option<String>) -> Self
pub fn set_replacement_job(self, input: Option<String>) -> Self
Specifies that a device that is ordered with long-term pricing should be replaced with a new device.
sourcepub fn get_replacement_job(&self) -> &Option<String>
pub fn get_replacement_job(&self) -> &Option<String>
Specifies that a device that is ordered with long-term pricing should be replaced with a new device.
sourcepub fn is_long_term_pricing_auto_renew(self, input: bool) -> Self
pub fn is_long_term_pricing_auto_renew(self, input: bool) -> Self
If set to true
, specifies that the current long-term pricing type for the device should be automatically renewed before the long-term pricing contract expires.
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
If set to true
, specifies that the current long-term pricing type for the device should be automatically renewed before the long-term pricing contract expires.
sourcepub fn get_is_long_term_pricing_auto_renew(&self) -> &Option<bool>
pub fn get_is_long_term_pricing_auto_renew(&self) -> &Option<bool>
If set to true
, specifies that the current long-term pricing type for the device should be automatically renewed before the long-term pricing contract expires.
Trait Implementations§
source§impl Clone for UpdateLongTermPricingFluentBuilder
impl Clone for UpdateLongTermPricingFluentBuilder
source§fn clone(&self) -> UpdateLongTermPricingFluentBuilder
fn clone(&self) -> UpdateLongTermPricingFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more