pub use crate::operation::update_workflow_step::_update_workflow_step_output::UpdateWorkflowStepOutputBuilder;
pub use crate::operation::update_workflow_step::_update_workflow_step_input::UpdateWorkflowStepInputBuilder;
impl crate::operation::update_workflow_step::builders::UpdateWorkflowStepInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::update_workflow_step::UpdateWorkflowStepOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_workflow_step::UpdateWorkflowStepError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.update_workflow_step();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateWorkflowStepFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::update_workflow_step::builders::UpdateWorkflowStepInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::update_workflow_step::UpdateWorkflowStepOutput,
crate::operation::update_workflow_step::UpdateWorkflowStepError,
> for UpdateWorkflowStepFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::update_workflow_step::UpdateWorkflowStepOutput,
crate::operation::update_workflow_step::UpdateWorkflowStepError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl UpdateWorkflowStepFluentBuilder {
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_workflow_step::builders::UpdateWorkflowStepInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::update_workflow_step::UpdateWorkflowStepOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_workflow_step::UpdateWorkflowStepError,
::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_workflow_step::UpdateWorkflowStep::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::update_workflow_step::UpdateWorkflowStep::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::update_workflow_step::UpdateWorkflowStepOutput,
crate::operation::update_workflow_step::UpdateWorkflowStepError,
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 id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.id(input.into());
self
}
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_id(input);
self
}
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_id()
}
pub fn step_group_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.step_group_id(input.into());
self
}
pub fn set_step_group_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_step_group_id(input);
self
}
pub fn get_step_group_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_step_group_id()
}
pub fn workflow_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.workflow_id(input.into());
self
}
pub fn set_workflow_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_workflow_id(input);
self
}
pub fn get_workflow_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_workflow_id()
}
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 step_action_type(mut self, input: crate::types::StepActionType) -> Self {
self.inner = self.inner.step_action_type(input);
self
}
pub fn set_step_action_type(mut self, input: ::std::option::Option<crate::types::StepActionType>) -> Self {
self.inner = self.inner.set_step_action_type(input);
self
}
pub fn get_step_action_type(&self) -> &::std::option::Option<crate::types::StepActionType> {
self.inner.get_step_action_type()
}
pub fn workflow_step_automation_configuration(mut self, input: crate::types::WorkflowStepAutomationConfiguration) -> Self {
self.inner = self.inner.workflow_step_automation_configuration(input);
self
}
pub fn set_workflow_step_automation_configuration(
mut self,
input: ::std::option::Option<crate::types::WorkflowStepAutomationConfiguration>,
) -> Self {
self.inner = self.inner.set_workflow_step_automation_configuration(input);
self
}
pub fn get_workflow_step_automation_configuration(&self) -> &::std::option::Option<crate::types::WorkflowStepAutomationConfiguration> {
self.inner.get_workflow_step_automation_configuration()
}
pub fn step_target(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.step_target(input.into());
self
}
pub fn set_step_target(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.inner = self.inner.set_step_target(input);
self
}
pub fn get_step_target(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
self.inner.get_step_target()
}
pub fn outputs(mut self, input: crate::types::WorkflowStepOutput) -> Self {
self.inner = self.inner.outputs(input);
self
}
pub fn set_outputs(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::WorkflowStepOutput>>) -> Self {
self.inner = self.inner.set_outputs(input);
self
}
pub fn get_outputs(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::WorkflowStepOutput>> {
self.inner.get_outputs()
}
pub fn previous(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.previous(input.into());
self
}
pub fn set_previous(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.inner = self.inner.set_previous(input);
self
}
pub fn get_previous(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
self.inner.get_previous()
}
pub fn next(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.next(input.into());
self
}
pub fn set_next(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.inner = self.inner.set_next(input);
self
}
pub fn get_next(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
self.inner.get_next()
}
pub fn status(mut self, input: crate::types::StepStatus) -> Self {
self.inner = self.inner.status(input);
self
}
pub fn set_status(mut self, input: ::std::option::Option<crate::types::StepStatus>) -> Self {
self.inner = self.inner.set_status(input);
self
}
pub fn get_status(&self) -> &::std::option::Option<crate::types::StepStatus> {
self.inner.get_status()
}
}