aws-sdk-novaact 1.8.0

AWS SDK for Nova Act Service
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 UpdateActInput {
    /// <p>The name of the workflow definition containing the act.</p>
    pub workflow_definition_name: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the workflow run containing the act.</p>
    pub workflow_run_id: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the session containing the act.</p>
    pub session_id: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the act to update.</p>
    pub act_id: ::std::option::Option<::std::string::String>,
    /// <p>The new status to set for the act.</p>
    pub status: ::std::option::Option<crate::types::ActStatus>,
    /// <p>Error information to associate with the act, if applicable.</p>
    pub error: ::std::option::Option<crate::types::ActError>,
}
impl UpdateActInput {
    /// <p>The name of the workflow definition containing the act.</p>
    pub fn workflow_definition_name(&self) -> ::std::option::Option<&str> {
        self.workflow_definition_name.as_deref()
    }
    /// <p>The unique identifier of the workflow run containing the act.</p>
    pub fn workflow_run_id(&self) -> ::std::option::Option<&str> {
        self.workflow_run_id.as_deref()
    }
    /// <p>The unique identifier of the session containing the act.</p>
    pub fn session_id(&self) -> ::std::option::Option<&str> {
        self.session_id.as_deref()
    }
    /// <p>The unique identifier of the act to update.</p>
    pub fn act_id(&self) -> ::std::option::Option<&str> {
        self.act_id.as_deref()
    }
    /// <p>The new status to set for the act.</p>
    pub fn status(&self) -> ::std::option::Option<&crate::types::ActStatus> {
        self.status.as_ref()
    }
    /// <p>Error information to associate with the act, if applicable.</p>
    pub fn error(&self) -> ::std::option::Option<&crate::types::ActError> {
        self.error.as_ref()
    }
}
impl UpdateActInput {
    /// Creates a new builder-style object to manufacture [`UpdateActInput`](crate::operation::update_act::UpdateActInput).
    pub fn builder() -> crate::operation::update_act::builders::UpdateActInputBuilder {
        crate::operation::update_act::builders::UpdateActInputBuilder::default()
    }
}

/// A builder for [`UpdateActInput`](crate::operation::update_act::UpdateActInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateActInputBuilder {
    pub(crate) workflow_definition_name: ::std::option::Option<::std::string::String>,
    pub(crate) workflow_run_id: ::std::option::Option<::std::string::String>,
    pub(crate) session_id: ::std::option::Option<::std::string::String>,
    pub(crate) act_id: ::std::option::Option<::std::string::String>,
    pub(crate) status: ::std::option::Option<crate::types::ActStatus>,
    pub(crate) error: ::std::option::Option<crate::types::ActError>,
}
impl UpdateActInputBuilder {
    /// <p>The name of the workflow definition containing the act.</p>
    /// This field is required.
    pub fn workflow_definition_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.workflow_definition_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the workflow definition containing the act.</p>
    pub fn set_workflow_definition_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.workflow_definition_name = input;
        self
    }
    /// <p>The name of the workflow definition containing the act.</p>
    pub fn get_workflow_definition_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.workflow_definition_name
    }
    /// <p>The unique identifier of the workflow run containing the act.</p>
    /// This field is required.
    pub fn workflow_run_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.workflow_run_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the workflow run containing the act.</p>
    pub fn set_workflow_run_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.workflow_run_id = input;
        self
    }
    /// <p>The unique identifier of the workflow run containing the act.</p>
    pub fn get_workflow_run_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.workflow_run_id
    }
    /// <p>The unique identifier of the session containing the act.</p>
    /// This field is required.
    pub fn session_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.session_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the session containing the act.</p>
    pub fn set_session_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.session_id = input;
        self
    }
    /// <p>The unique identifier of the session containing the act.</p>
    pub fn get_session_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.session_id
    }
    /// <p>The unique identifier of the act to update.</p>
    /// This field is required.
    pub fn act_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.act_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the act to update.</p>
    pub fn set_act_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.act_id = input;
        self
    }
    /// <p>The unique identifier of the act to update.</p>
    pub fn get_act_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.act_id
    }
    /// <p>The new status to set for the act.</p>
    /// This field is required.
    pub fn status(mut self, input: crate::types::ActStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The new status to set for the act.</p>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::ActStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The new status to set for the act.</p>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::ActStatus> {
        &self.status
    }
    /// <p>Error information to associate with the act, if applicable.</p>
    pub fn error(mut self, input: crate::types::ActError) -> Self {
        self.error = ::std::option::Option::Some(input);
        self
    }
    /// <p>Error information to associate with the act, if applicable.</p>
    pub fn set_error(mut self, input: ::std::option::Option<crate::types::ActError>) -> Self {
        self.error = input;
        self
    }
    /// <p>Error information to associate with the act, if applicable.</p>
    pub fn get_error(&self) -> &::std::option::Option<crate::types::ActError> {
        &self.error
    }
    /// Consumes the builder and constructs a [`UpdateActInput`](crate::operation::update_act::UpdateActInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::update_act::UpdateActInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::update_act::UpdateActInput {
            workflow_definition_name: self.workflow_definition_name,
            workflow_run_id: self.workflow_run_id,
            session_id: self.session_id,
            act_id: self.act_id,
            status: self.status,
            error: self.error,
        })
    }
}