pub use crate::operation::put_third_party_cost::_put_third_party_cost_input::PutThirdPartyCostInputBuilder;
pub use crate::operation::put_third_party_cost::_put_third_party_cost_output::PutThirdPartyCostOutputBuilder;
impl crate::operation::put_third_party_cost::builders::PutThirdPartyCostInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::put_third_party_cost::PutThirdPartyCostOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::put_third_party_cost::PutThirdPartyCostError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.put_third_party_cost();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct PutThirdPartyCostFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::put_third_party_cost::builders::PutThirdPartyCostInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::put_third_party_cost::PutThirdPartyCostOutput,
crate::operation::put_third_party_cost::PutThirdPartyCostError,
> for PutThirdPartyCostFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::put_third_party_cost::PutThirdPartyCostOutput,
crate::operation::put_third_party_cost::PutThirdPartyCostError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl PutThirdPartyCostFluentBuilder {
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
config_override: ::std::option::Option::None,
}
}
pub fn as_input(&self) -> &crate::operation::put_third_party_cost::builders::PutThirdPartyCostInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::put_third_party_cost::PutThirdPartyCostOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::put_third_party_cost::PutThirdPartyCostError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self
.inner
.build()
.map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::put_third_party_cost::PutThirdPartyCost::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::put_third_party_cost::PutThirdPartyCost::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::put_third_party_cost::PutThirdPartyCostOutput,
crate::operation::put_third_party_cost::PutThirdPartyCostError,
Self,
> {
crate::client::customize::CustomizableOperation::new(self)
}
pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
self.set_config_override(::std::option::Option::Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
pub fn app_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.app_id(input.into());
self
}
pub fn set_app_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_app_id(input);
self
}
pub fn get_app_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_app_id()
}
pub fn cost_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.cost_id(input.into());
self
}
pub fn set_cost_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_cost_id(input);
self
}
pub fn get_cost_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_cost_id()
}
pub fn label(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.label(input.into());
self
}
pub fn set_label(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_label(input);
self
}
pub fn get_label(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_label()
}
pub fn amount(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.amount(input.into());
self
}
pub fn set_amount(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_amount(input);
self
}
pub fn get_amount(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_amount()
}
pub fn frequency(mut self, input: crate::types::ThirdPartyCostFrequency) -> Self {
self.inner = self.inner.frequency(input);
self
}
pub fn set_frequency(mut self, input: ::std::option::Option<crate::types::ThirdPartyCostFrequency>) -> Self {
self.inner = self.inner.set_frequency(input);
self
}
pub fn get_frequency(&self) -> &::std::option::Option<crate::types::ThirdPartyCostFrequency> {
self.inner.get_frequency()
}
pub fn currency(mut self, input: crate::types::Currency) -> Self {
self.inner = self.inner.currency(input);
self
}
pub fn set_currency(mut self, input: ::std::option::Option<crate::types::Currency>) -> Self {
self.inner = self.inner.set_currency(input);
self
}
pub fn get_currency(&self) -> &::std::option::Option<crate::types::Currency> {
self.inner.get_currency()
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_description()
}
pub fn effective_from(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.effective_from(input.into());
self
}
pub fn set_effective_from(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_effective_from(input);
self
}
pub fn get_effective_from(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_effective_from()
}
pub fn effective_to(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.effective_to(input.into());
self
}
pub fn set_effective_to(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_effective_to(input);
self
}
pub fn get_effective_to(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_effective_to()
}
pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.client_token(input.into());
self
}
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_client_token(input);
self
}
pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_client_token()
}
}