aws_sdk_transfer/operation/describe_execution/
_describe_execution_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeExecutionInput {
pub execution_id: ::std::option::Option<::std::string::String>,
pub workflow_id: ::std::option::Option<::std::string::String>,
}
impl DescribeExecutionInput {
pub fn execution_id(&self) -> ::std::option::Option<&str> {
self.execution_id.as_deref()
}
pub fn workflow_id(&self) -> ::std::option::Option<&str> {
self.workflow_id.as_deref()
}
}
impl DescribeExecutionInput {
pub fn builder() -> crate::operation::describe_execution::builders::DescribeExecutionInputBuilder {
crate::operation::describe_execution::builders::DescribeExecutionInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeExecutionInputBuilder {
pub(crate) execution_id: ::std::option::Option<::std::string::String>,
pub(crate) workflow_id: ::std::option::Option<::std::string::String>,
}
impl DescribeExecutionInputBuilder {
pub fn execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.execution_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.execution_id = input;
self
}
pub fn get_execution_id(&self) -> &::std::option::Option<::std::string::String> {
&self.execution_id
}
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
}
pub fn set_workflow_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.workflow_id = input;
self
}
pub fn get_workflow_id(&self) -> &::std::option::Option<::std::string::String> {
&self.workflow_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_execution::DescribeExecutionInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::describe_execution::DescribeExecutionInput {
execution_id: self.execution_id,
workflow_id: self.workflow_id,
})
}
}