pub use crate::operation::update_framework::_update_framework_output::UpdateFrameworkOutputBuilder;
pub use crate::operation::update_framework::_update_framework_input::UpdateFrameworkInputBuilder;
impl UpdateFrameworkInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::update_framework::UpdateFrameworkOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_framework::UpdateFrameworkError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.update_framework();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateFrameworkFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::update_framework::builders::UpdateFrameworkInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::update_framework::UpdateFrameworkOutput,
crate::operation::update_framework::UpdateFrameworkError,
> for UpdateFrameworkFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::update_framework::UpdateFrameworkOutput,
crate::operation::update_framework::UpdateFrameworkError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl UpdateFrameworkFluentBuilder {
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::update_framework::builders::UpdateFrameworkInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::update_framework::UpdateFrameworkOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_framework::UpdateFrameworkError,
::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::update_framework::UpdateFramework::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::update_framework::UpdateFramework::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::update_framework::UpdateFrameworkOutput,
crate::operation::update_framework::UpdateFrameworkError,
Self,
> {
crate::client::customize::CustomizableOperation::new(self)
}
pub(crate) fn config_override(mut self, config_override: impl Into<crate::config::Builder>) -> Self {
self.set_config_override(Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
pub fn framework_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.framework_name(input.into());
self
}
pub fn set_framework_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_framework_name(input);
self
}
pub fn get_framework_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_framework_name()
}
pub fn framework_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.framework_description(input.into());
self
}
pub fn set_framework_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_framework_description(input);
self
}
pub fn get_framework_description(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_framework_description()
}
pub fn framework_controls(mut self, input: crate::types::FrameworkControl) -> Self {
self.inner = self.inner.framework_controls(input);
self
}
pub fn set_framework_controls(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FrameworkControl>>) -> Self {
self.inner = self.inner.set_framework_controls(input);
self
}
pub fn get_framework_controls(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FrameworkControl>> {
self.inner.get_framework_controls()
}
pub fn idempotency_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.idempotency_token(input.into());
self
}
pub fn set_idempotency_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_idempotency_token(input);
self
}
pub fn get_idempotency_token(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_idempotency_token()
}
}