aws-sdk-imagebuilder 1.111.0

AWS SDK for EC2 Image Builder
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 GetWorkflowOutput {
    /// <p>The workflow resource specified in the request.</p>
    pub workflow: ::std::option::Option<crate::types::Workflow>,
    /// <p>The resource ARNs with different wildcard variations of semantic versioning.</p>
    pub latest_version_references: ::std::option::Option<crate::types::LatestVersionReferences>,
    _request_id: Option<String>,
}
impl GetWorkflowOutput {
    /// <p>The workflow resource specified in the request.</p>
    pub fn workflow(&self) -> ::std::option::Option<&crate::types::Workflow> {
        self.workflow.as_ref()
    }
    /// <p>The resource ARNs with different wildcard variations of semantic versioning.</p>
    pub fn latest_version_references(&self) -> ::std::option::Option<&crate::types::LatestVersionReferences> {
        self.latest_version_references.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetWorkflowOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetWorkflowOutput {
    /// Creates a new builder-style object to manufacture [`GetWorkflowOutput`](crate::operation::get_workflow::GetWorkflowOutput).
    pub fn builder() -> crate::operation::get_workflow::builders::GetWorkflowOutputBuilder {
        crate::operation::get_workflow::builders::GetWorkflowOutputBuilder::default()
    }
}

/// A builder for [`GetWorkflowOutput`](crate::operation::get_workflow::GetWorkflowOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetWorkflowOutputBuilder {
    pub(crate) workflow: ::std::option::Option<crate::types::Workflow>,
    pub(crate) latest_version_references: ::std::option::Option<crate::types::LatestVersionReferences>,
    _request_id: Option<String>,
}
impl GetWorkflowOutputBuilder {
    /// <p>The workflow resource specified in the request.</p>
    pub fn workflow(mut self, input: crate::types::Workflow) -> Self {
        self.workflow = ::std::option::Option::Some(input);
        self
    }
    /// <p>The workflow resource specified in the request.</p>
    pub fn set_workflow(mut self, input: ::std::option::Option<crate::types::Workflow>) -> Self {
        self.workflow = input;
        self
    }
    /// <p>The workflow resource specified in the request.</p>
    pub fn get_workflow(&self) -> &::std::option::Option<crate::types::Workflow> {
        &self.workflow
    }
    /// <p>The resource ARNs with different wildcard variations of semantic versioning.</p>
    pub fn latest_version_references(mut self, input: crate::types::LatestVersionReferences) -> Self {
        self.latest_version_references = ::std::option::Option::Some(input);
        self
    }
    /// <p>The resource ARNs with different wildcard variations of semantic versioning.</p>
    pub fn set_latest_version_references(mut self, input: ::std::option::Option<crate::types::LatestVersionReferences>) -> Self {
        self.latest_version_references = input;
        self
    }
    /// <p>The resource ARNs with different wildcard variations of semantic versioning.</p>
    pub fn get_latest_version_references(&self) -> &::std::option::Option<crate::types::LatestVersionReferences> {
        &self.latest_version_references
    }
    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
    }
    /// Consumes the builder and constructs a [`GetWorkflowOutput`](crate::operation::get_workflow::GetWorkflowOutput).
    pub fn build(self) -> crate::operation::get_workflow::GetWorkflowOutput {
        crate::operation::get_workflow::GetWorkflowOutput {
            workflow: self.workflow,
            latest_version_references: self.latest_version_references,
            _request_id: self._request_id,
        }
    }
}