pub use crate::operation::create_workflow::_create_workflow_output::CreateWorkflowOutputBuilder;
pub use crate::operation::create_workflow::_create_workflow_input::CreateWorkflowInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateWorkflowFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_workflow::builders::CreateWorkflowInputBuilder,
}
impl CreateWorkflowFluentBuilder {
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::create_workflow::CreateWorkflow,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::operation::create_workflow::CreateWorkflowError>,
> {
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::create_workflow::CreateWorkflowOutput,
aws_smithy_http::result::SdkError<crate::operation::create_workflow::CreateWorkflowError>,
> {
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 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 description(mut self, input: impl 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 engine(mut self, input: crate::types::WorkflowEngine) -> Self {
self.inner = self.inner.engine(input);
self
}
pub fn set_engine(mut self, input: std::option::Option<crate::types::WorkflowEngine>) -> Self {
self.inner = self.inner.set_engine(input);
self
}
pub fn definition_zip(mut self, input: aws_smithy_types::Blob) -> Self {
self.inner = self.inner.definition_zip(input);
self
}
pub fn set_definition_zip(
mut self,
input: std::option::Option<aws_smithy_types::Blob>,
) -> Self {
self.inner = self.inner.set_definition_zip(input);
self
}
pub fn definition_uri(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.definition_uri(input.into());
self
}
pub fn set_definition_uri(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_definition_uri(input);
self
}
pub fn main(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.main(input.into());
self
}
pub fn set_main(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_main(input);
self
}
pub fn parameter_template(
mut self,
k: impl Into<std::string::String>,
v: crate::types::WorkflowParameter,
) -> Self {
self.inner = self.inner.parameter_template(k.into(), v);
self
}
pub fn set_parameter_template(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, crate::types::WorkflowParameter>,
>,
) -> Self {
self.inner = self.inner.set_parameter_template(input);
self
}
pub fn storage_capacity(mut self, input: i32) -> Self {
self.inner = self.inner.storage_capacity(input);
self
}
pub fn set_storage_capacity(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_storage_capacity(input);
self
}
pub fn tags(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.tags(k.into(), v.into());
self
}
pub fn set_tags(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
pub fn request_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.request_id(input.into());
self
}
pub fn set_request_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_request_id(input);
self
}
}