aws_sdk_databrew/operation/send_project_session_action/
builders.rspub use crate::operation::send_project_session_action::_send_project_session_action_output::SendProjectSessionActionOutputBuilder;
pub use crate::operation::send_project_session_action::_send_project_session_action_input::SendProjectSessionActionInputBuilder;
impl crate::operation::send_project_session_action::builders::SendProjectSessionActionInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::send_project_session_action::SendProjectSessionActionOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::send_project_session_action::SendProjectSessionActionError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.send_project_session_action();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct SendProjectSessionActionFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::send_project_session_action::builders::SendProjectSessionActionInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::send_project_session_action::SendProjectSessionActionOutput,
crate::operation::send_project_session_action::SendProjectSessionActionError,
> for SendProjectSessionActionFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::send_project_session_action::SendProjectSessionActionOutput,
crate::operation::send_project_session_action::SendProjectSessionActionError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl SendProjectSessionActionFluentBuilder {
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::send_project_session_action::builders::SendProjectSessionActionInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::send_project_session_action::SendProjectSessionActionOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::send_project_session_action::SendProjectSessionActionError,
::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::send_project_session_action::SendProjectSessionAction::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::send_project_session_action::SendProjectSessionAction::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::send_project_session_action::SendProjectSessionActionOutput,
crate::operation::send_project_session_action::SendProjectSessionActionError,
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 preview(mut self, input: bool) -> Self {
self.inner = self.inner.preview(input);
self
}
pub fn set_preview(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_preview(input);
self
}
pub fn get_preview(&self) -> &::std::option::Option<bool> {
self.inner.get_preview()
}
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_name()
}
pub fn recipe_step(mut self, input: crate::types::RecipeStep) -> Self {
self.inner = self.inner.recipe_step(input);
self
}
pub fn set_recipe_step(mut self, input: ::std::option::Option<crate::types::RecipeStep>) -> Self {
self.inner = self.inner.set_recipe_step(input);
self
}
pub fn get_recipe_step(&self) -> &::std::option::Option<crate::types::RecipeStep> {
self.inner.get_recipe_step()
}
pub fn step_index(mut self, input: i32) -> Self {
self.inner = self.inner.step_index(input);
self
}
pub fn set_step_index(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_step_index(input);
self
}
pub fn get_step_index(&self) -> &::std::option::Option<i32> {
self.inner.get_step_index()
}
pub fn client_session_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.client_session_id(input.into());
self
}
pub fn set_client_session_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_client_session_id(input);
self
}
pub fn get_client_session_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_client_session_id()
}
pub fn view_frame(mut self, input: crate::types::ViewFrame) -> Self {
self.inner = self.inner.view_frame(input);
self
}
pub fn set_view_frame(mut self, input: ::std::option::Option<crate::types::ViewFrame>) -> Self {
self.inner = self.inner.set_view_frame(input);
self
}
pub fn get_view_frame(&self) -> &::std::option::Option<crate::types::ViewFrame> {
self.inner.get_view_frame()
}
}