pub use crate::operation::create_workflow::_create_workflow_output::CreateWorkflowOutputBuilder;
pub use crate::operation::create_workflow::_create_workflow_input::CreateWorkflowInputBuilder;
impl CreateWorkflowInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::create_workflow::CreateWorkflowOutput,
::aws_smithy_http::result::SdkError<
crate::operation::create_workflow::CreateWorkflowError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.create_workflow();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct CreateWorkflowFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_workflow::builders::CreateWorkflowInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl CreateWorkflowFluentBuilder {
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_workflow::builders::CreateWorkflowInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::create_workflow::CreateWorkflowOutput,
::aws_smithy_http::result::SdkError<
crate::operation::create_workflow::CreateWorkflowError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self.inner.build().map_err(::aws_smithy_http::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::create_workflow::CreateWorkflow::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::create_workflow::CreateWorkflow::orchestrate(&runtime_plugins, input).await
}
pub async fn customize(
self,
) -> ::std::result::Result<
crate::client::customize::orchestrator::CustomizableOperation<
crate::operation::create_workflow::CreateWorkflowOutput,
crate::operation::create_workflow::CreateWorkflowError,
>,
::aws_smithy_http::result::SdkError<crate::operation::create_workflow::CreateWorkflowError>,
> {
::std::result::Result::Ok(crate::client::customize::orchestrator::CustomizableOperation {
customizable_send: ::std::boxed::Box::new(move |config_override| {
::std::boxed::Box::pin(async { self.config_override(config_override).send().await })
}),
config_override: None,
interceptors: vec![],
runtime_plugins: vec![],
})
}
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 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 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 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 get_engine(&self) -> &::std::option::Option<crate::types::WorkflowEngine> {
self.inner.get_engine()
}
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 get_definition_zip(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
self.inner.get_definition_zip()
}
pub fn definition_uri(mut self, input: impl ::std::convert::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 get_definition_uri(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_definition_uri()
}
pub fn main(mut self, input: impl ::std::convert::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 get_main(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_main()
}
pub fn parameter_template(mut self, k: impl ::std::convert::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 get_parameter_template(
&self,
) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::WorkflowParameter>> {
self.inner.get_parameter_template()
}
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 get_storage_capacity(&self) -> &::std::option::Option<i32> {
self.inner.get_storage_capacity()
}
pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::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 get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.inner.get_tags()
}
pub fn request_id(mut self, input: impl ::std::convert::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
}
pub fn get_request_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_request_id()
}
pub fn accelerators(mut self, input: crate::types::Accelerators) -> Self {
self.inner = self.inner.accelerators(input);
self
}
pub fn set_accelerators(mut self, input: ::std::option::Option<crate::types::Accelerators>) -> Self {
self.inner = self.inner.set_accelerators(input);
self
}
pub fn get_accelerators(&self) -> &::std::option::Option<crate::types::Accelerators> {
self.inner.get_accelerators()
}
}