pub 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;
#[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
}
impl SendProjectSessionActionFluentBuilder {
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::send_project_session_action::SendProjectSessionAction,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::operation::send_project_session_action::SendProjectSessionActionError,
>,
> {
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::send_project_session_action::SendProjectSessionActionOutput,
aws_smithy_http::result::SdkError<
crate::operation::send_project_session_action::SendProjectSessionActionError,
>,
> {
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 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 name(mut self, input: impl 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 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 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 client_session_id(mut self, input: impl 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 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
}
}