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 ListActsInput {
    /// <p>The name of the workflow definition containing the session.</p>
    pub workflow_definition_name: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the workflow run containing the session.</p>
    pub workflow_run_id: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the session to list acts for.</p>
    pub session_id: ::std::option::Option<::std::string::String>,
    /// <p>The maximum number of acts to return in a single response.</p>
    pub max_results: ::std::option::Option<i32>,
    /// <p>The token for retrieving the next page of results.</p>
    pub next_token: ::std::option::Option<::std::string::String>,
    /// <p>The sort order for the returned acts (ascending or descending).</p>
    pub sort_order: ::std::option::Option<crate::types::SortOrder>,
}
impl ListActsInput {
    /// <p>The name of the workflow definition containing the session.</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 session.</p>
    pub fn workflow_run_id(&self) -> ::std::option::Option<&str> {
        self.workflow_run_id.as_deref()
    }
    /// <p>The unique identifier of the session to list acts for.</p>
    pub fn session_id(&self) -> ::std::option::Option<&str> {
        self.session_id.as_deref()
    }
    /// <p>The maximum number of acts to return in a single response.</p>
    pub fn max_results(&self) -> ::std::option::Option<i32> {
        self.max_results
    }
    /// <p>The token for retrieving the next page of results.</p>
    pub fn next_token(&self) -> ::std::option::Option<&str> {
        self.next_token.as_deref()
    }
    /// <p>The sort order for the returned acts (ascending or descending).</p>
    pub fn sort_order(&self) -> ::std::option::Option<&crate::types::SortOrder> {
        self.sort_order.as_ref()
    }
}
impl ListActsInput {
    /// Creates a new builder-style object to manufacture [`ListActsInput`](crate::operation::list_acts::ListActsInput).
    pub fn builder() -> crate::operation::list_acts::builders::ListActsInputBuilder {
        crate::operation::list_acts::builders::ListActsInputBuilder::default()
    }
}

/// A builder for [`ListActsInput`](crate::operation::list_acts::ListActsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ListActsInputBuilder {
    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) max_results: ::std::option::Option<i32>,
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
    pub(crate) sort_order: ::std::option::Option<crate::types::SortOrder>,
}
impl ListActsInputBuilder {
    /// <p>The name of the workflow definition containing the session.</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 session.</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 session.</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 session.</p>
    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 session.</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 session.</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 to list acts for.</p>
    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 to list acts for.</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 to list acts for.</p>
    pub fn get_session_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.session_id
    }
    /// <p>The maximum number of acts to return in a single response.</p>
    pub fn max_results(mut self, input: i32) -> Self {
        self.max_results = ::std::option::Option::Some(input);
        self
    }
    /// <p>The maximum number of acts to return in a single response.</p>
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
        self.max_results = input;
        self
    }
    /// <p>The maximum number of acts to return in a single response.</p>
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
        &self.max_results
    }
    /// <p>The token for retrieving the next page of results.</p>
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.next_token = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The token for retrieving the next page of results.</p>
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.next_token = input;
        self
    }
    /// <p>The token for retrieving the next page of results.</p>
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.next_token
    }
    /// <p>The sort order for the returned acts (ascending or descending).</p>
    pub fn sort_order(mut self, input: crate::types::SortOrder) -> Self {
        self.sort_order = ::std::option::Option::Some(input);
        self
    }
    /// <p>The sort order for the returned acts (ascending or descending).</p>
    pub fn set_sort_order(mut self, input: ::std::option::Option<crate::types::SortOrder>) -> Self {
        self.sort_order = input;
        self
    }
    /// <p>The sort order for the returned acts (ascending or descending).</p>
    pub fn get_sort_order(&self) -> &::std::option::Option<crate::types::SortOrder> {
        &self.sort_order
    }
    /// Consumes the builder and constructs a [`ListActsInput`](crate::operation::list_acts::ListActsInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::list_acts::ListActsInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::list_acts::ListActsInput {
            workflow_definition_name: self.workflow_definition_name,
            workflow_run_id: self.workflow_run_id,
            session_id: self.session_id,
            max_results: self.max_results,
            next_token: self.next_token,
            sort_order: self.sort_order,
        })
    }
}