pub use crate::operation::create_long_term_pricing::_create_long_term_pricing_output::CreateLongTermPricingOutputBuilder;
pub use crate::operation::create_long_term_pricing::_create_long_term_pricing_input::CreateLongTermPricingInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateLongTermPricingFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_long_term_pricing::builders::CreateLongTermPricingInputBuilder,
}
impl CreateLongTermPricingFluentBuilder {
pub(crate) fn new(handle: std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
pub async fn customize(
self,
) -> std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::create_long_term_pricing::CreateLongTermPricing,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::operation::create_long_term_pricing::CreateLongTermPricingError,
>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::client::customize::CustomizableOperation { handle, operation })
}
pub async fn send(
self,
) -> std::result::Result<
crate::operation::create_long_term_pricing::CreateLongTermPricingOutput,
aws_smithy_http::result::SdkError<
crate::operation::create_long_term_pricing::CreateLongTermPricingError,
>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
pub fn long_term_pricing_type(mut self, input: crate::types::LongTermPricingType) -> Self {
self.inner = self.inner.long_term_pricing_type(input);
self
}
pub fn set_long_term_pricing_type(
mut self,
input: std::option::Option<crate::types::LongTermPricingType>,
) -> Self {
self.inner = self.inner.set_long_term_pricing_type(input);
self
}
pub fn is_long_term_pricing_auto_renew(mut self, input: bool) -> Self {
self.inner = self.inner.is_long_term_pricing_auto_renew(input);
self
}
pub fn set_is_long_term_pricing_auto_renew(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_is_long_term_pricing_auto_renew(input);
self
}
pub fn snowball_type(mut self, input: crate::types::SnowballType) -> Self {
self.inner = self.inner.snowball_type(input);
self
}
pub fn set_snowball_type(
mut self,
input: std::option::Option<crate::types::SnowballType>,
) -> Self {
self.inner = self.inner.set_snowball_type(input);
self
}
}