aws-sdk-transfer 1.113.0

AWS SDK for AWS Transfer Family
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteWorkflowInput {
    /// <p>A unique identifier for the workflow.</p>
    pub workflow_id: ::std::option::Option<::std::string::String>,
}
impl DeleteWorkflowInput {
    /// <p>A unique identifier for the workflow.</p>
    pub fn workflow_id(&self) -> ::std::option::Option<&str> {
        self.workflow_id.as_deref()
    }
}
impl DeleteWorkflowInput {
    /// Creates a new builder-style object to manufacture [`DeleteWorkflowInput`](crate::operation::delete_workflow::DeleteWorkflowInput).
    pub fn builder() -> crate::operation::delete_workflow::builders::DeleteWorkflowInputBuilder {
        crate::operation::delete_workflow::builders::DeleteWorkflowInputBuilder::default()
    }
}

/// A builder for [`DeleteWorkflowInput`](crate::operation::delete_workflow::DeleteWorkflowInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteWorkflowInputBuilder {
    pub(crate) workflow_id: ::std::option::Option<::std::string::String>,
}
impl DeleteWorkflowInputBuilder {
    /// <p>A unique identifier for the workflow.</p>
    /// This field is required.
    pub fn workflow_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.workflow_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A unique identifier for the workflow.</p>
    pub fn set_workflow_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.workflow_id = input;
        self
    }
    /// <p>A unique identifier for the workflow.</p>
    pub fn get_workflow_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.workflow_id
    }
    /// Consumes the builder and constructs a [`DeleteWorkflowInput`](crate::operation::delete_workflow::DeleteWorkflowInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_workflow::DeleteWorkflowInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_workflow::DeleteWorkflowInput {
            workflow_id: self.workflow_id,
        })
    }
}