aws_sdk_deadline/operation/create_budget/
builders.rspub use crate::operation::create_budget::_create_budget_output::CreateBudgetOutputBuilder;
pub use crate::operation::create_budget::_create_budget_input::CreateBudgetInputBuilder;
impl crate::operation::create_budget::builders::CreateBudgetInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::create_budget::CreateBudgetOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_budget::CreateBudgetError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.create_budget();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct CreateBudgetFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_budget::builders::CreateBudgetInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::create_budget::CreateBudgetOutput,
crate::operation::create_budget::CreateBudgetError,
> for CreateBudgetFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::create_budget::CreateBudgetOutput,
crate::operation::create_budget::CreateBudgetError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl CreateBudgetFluentBuilder {
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::create_budget::builders::CreateBudgetInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::create_budget::CreateBudgetOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_budget::CreateBudgetError,
::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::create_budget::CreateBudget::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::create_budget::CreateBudget::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::create_budget::CreateBudgetOutput,
crate::operation::create_budget::CreateBudgetError,
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 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()
}
pub fn farm_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.farm_id(input.into());
self
}
pub fn set_farm_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_farm_id(input);
self
}
pub fn get_farm_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_farm_id()
}
pub fn usage_tracking_resource(mut self, input: crate::types::UsageTrackingResource) -> Self {
self.inner = self.inner.usage_tracking_resource(input);
self
}
pub fn set_usage_tracking_resource(mut self, input: ::std::option::Option<crate::types::UsageTrackingResource>) -> Self {
self.inner = self.inner.set_usage_tracking_resource(input);
self
}
pub fn get_usage_tracking_resource(&self) -> &::std::option::Option<crate::types::UsageTrackingResource> {
self.inner.get_usage_tracking_resource()
}
pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.display_name(input.into());
self
}
pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_display_name(input);
self
}
pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_display_name()
}
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 approximate_dollar_limit(mut self, input: f32) -> Self {
self.inner = self.inner.approximate_dollar_limit(input);
self
}
pub fn set_approximate_dollar_limit(mut self, input: ::std::option::Option<f32>) -> Self {
self.inner = self.inner.set_approximate_dollar_limit(input);
self
}
pub fn get_approximate_dollar_limit(&self) -> &::std::option::Option<f32> {
self.inner.get_approximate_dollar_limit()
}
pub fn actions(mut self, input: crate::types::BudgetActionToAdd) -> Self {
self.inner = self.inner.actions(input);
self
}
pub fn set_actions(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::BudgetActionToAdd>>) -> Self {
self.inner = self.inner.set_actions(input);
self
}
pub fn get_actions(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::BudgetActionToAdd>> {
self.inner.get_actions()
}
pub fn schedule(mut self, input: crate::types::BudgetSchedule) -> Self {
self.inner = self.inner.schedule(input);
self
}
pub fn set_schedule(mut self, input: ::std::option::Option<crate::types::BudgetSchedule>) -> Self {
self.inner = self.inner.set_schedule(input);
self
}
pub fn get_schedule(&self) -> &::std::option::Option<crate::types::BudgetSchedule> {
self.inner.get_schedule()
}
}