#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetWorkflowOutput {
pub workflow_id: ::std::option::Option<::std::string::String>,
pub workflow_type: ::std::option::Option<crate::types::WorkflowType>,
pub status: ::std::option::Option<crate::types::Status>,
pub error_description: ::std::option::Option<::std::string::String>,
pub start_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub last_updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub attributes: ::std::option::Option<crate::types::WorkflowAttributes>,
pub metrics: ::std::option::Option<crate::types::WorkflowMetrics>,
_request_id: Option<String>,
}
impl GetWorkflowOutput {
pub fn workflow_id(&self) -> ::std::option::Option<&str> {
self.workflow_id.as_deref()
}
pub fn workflow_type(&self) -> ::std::option::Option<&crate::types::WorkflowType> {
self.workflow_type.as_ref()
}
pub fn status(&self) -> ::std::option::Option<&crate::types::Status> {
self.status.as_ref()
}
pub fn error_description(&self) -> ::std::option::Option<&str> {
self.error_description.as_deref()
}
pub fn start_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.start_date.as_ref()
}
pub fn last_updated_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_updated_at.as_ref()
}
pub fn attributes(&self) -> ::std::option::Option<&crate::types::WorkflowAttributes> {
self.attributes.as_ref()
}
pub fn metrics(&self) -> ::std::option::Option<&crate::types::WorkflowMetrics> {
self.metrics.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetWorkflowOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetWorkflowOutput {
pub fn builder() -> crate::operation::get_workflow::builders::GetWorkflowOutputBuilder {
crate::operation::get_workflow::builders::GetWorkflowOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetWorkflowOutputBuilder {
pub(crate) workflow_id: ::std::option::Option<::std::string::String>,
pub(crate) workflow_type: ::std::option::Option<crate::types::WorkflowType>,
pub(crate) status: ::std::option::Option<crate::types::Status>,
pub(crate) error_description: ::std::option::Option<::std::string::String>,
pub(crate) start_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) last_updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) attributes: ::std::option::Option<crate::types::WorkflowAttributes>,
pub(crate) metrics: ::std::option::Option<crate::types::WorkflowMetrics>,
_request_id: Option<String>,
}
impl GetWorkflowOutputBuilder {
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 workflow_type(mut self, input: crate::types::WorkflowType) -> Self {
self.workflow_type = ::std::option::Option::Some(input);
self
}
pub fn set_workflow_type(mut self, input: ::std::option::Option<crate::types::WorkflowType>) -> Self {
self.workflow_type = input;
self
}
pub fn get_workflow_type(&self) -> &::std::option::Option<crate::types::WorkflowType> {
&self.workflow_type
}
pub fn status(mut self, input: crate::types::Status) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
pub fn set_status(mut self, input: ::std::option::Option<crate::types::Status>) -> Self {
self.status = input;
self
}
pub fn get_status(&self) -> &::std::option::Option<crate::types::Status> {
&self.status
}
pub fn error_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.error_description = ::std::option::Option::Some(input.into());
self
}
pub fn set_error_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.error_description = input;
self
}
pub fn get_error_description(&self) -> &::std::option::Option<::std::string::String> {
&self.error_description
}
pub fn start_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.start_date = ::std::option::Option::Some(input);
self
}
pub fn set_start_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.start_date = input;
self
}
pub fn get_start_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.start_date
}
pub fn last_updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_updated_at = ::std::option::Option::Some(input);
self
}
pub fn set_last_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_updated_at = input;
self
}
pub fn get_last_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_updated_at
}
pub fn attributes(mut self, input: crate::types::WorkflowAttributes) -> Self {
self.attributes = ::std::option::Option::Some(input);
self
}
pub fn set_attributes(mut self, input: ::std::option::Option<crate::types::WorkflowAttributes>) -> Self {
self.attributes = input;
self
}
pub fn get_attributes(&self) -> &::std::option::Option<crate::types::WorkflowAttributes> {
&self.attributes
}
pub fn metrics(mut self, input: crate::types::WorkflowMetrics) -> Self {
self.metrics = ::std::option::Option::Some(input);
self
}
pub fn set_metrics(mut self, input: ::std::option::Option<crate::types::WorkflowMetrics>) -> Self {
self.metrics = input;
self
}
pub fn get_metrics(&self) -> &::std::option::Option<crate::types::WorkflowMetrics> {
&self.metrics
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::get_workflow::GetWorkflowOutput {
crate::operation::get_workflow::GetWorkflowOutput {
workflow_id: self.workflow_id,
workflow_type: self.workflow_type,
status: self.status,
error_description: self.error_description,
start_date: self.start_date,
last_updated_at: self.last_updated_at,
attributes: self.attributes,
metrics: self.metrics,
_request_id: self._request_id,
}
}
}