aws_sdk_swf/operation/count_pending_activity_tasks/
_count_pending_activity_tasks_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct CountPendingActivityTasksInput {
6    /// <p>The name of the domain that contains the task list.</p>
7    pub domain: ::std::option::Option<::std::string::String>,
8    /// <p>The name of the task list.</p>
9    pub task_list: ::std::option::Option<crate::types::TaskList>,
10}
11impl CountPendingActivityTasksInput {
12    /// <p>The name of the domain that contains the task list.</p>
13    pub fn domain(&self) -> ::std::option::Option<&str> {
14        self.domain.as_deref()
15    }
16    /// <p>The name of the task list.</p>
17    pub fn task_list(&self) -> ::std::option::Option<&crate::types::TaskList> {
18        self.task_list.as_ref()
19    }
20}
21impl CountPendingActivityTasksInput {
22    /// Creates a new builder-style object to manufacture [`CountPendingActivityTasksInput`](crate::operation::count_pending_activity_tasks::CountPendingActivityTasksInput).
23    pub fn builder() -> crate::operation::count_pending_activity_tasks::builders::CountPendingActivityTasksInputBuilder {
24        crate::operation::count_pending_activity_tasks::builders::CountPendingActivityTasksInputBuilder::default()
25    }
26}
27
28/// A builder for [`CountPendingActivityTasksInput`](crate::operation::count_pending_activity_tasks::CountPendingActivityTasksInput).
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct CountPendingActivityTasksInputBuilder {
32    pub(crate) domain: ::std::option::Option<::std::string::String>,
33    pub(crate) task_list: ::std::option::Option<crate::types::TaskList>,
34}
35impl CountPendingActivityTasksInputBuilder {
36    /// <p>The name of the domain that contains the task list.</p>
37    /// This field is required.
38    pub fn domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39        self.domain = ::std::option::Option::Some(input.into());
40        self
41    }
42    /// <p>The name of the domain that contains the task list.</p>
43    pub fn set_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44        self.domain = input;
45        self
46    }
47    /// <p>The name of the domain that contains the task list.</p>
48    pub fn get_domain(&self) -> &::std::option::Option<::std::string::String> {
49        &self.domain
50    }
51    /// <p>The name of the task list.</p>
52    /// This field is required.
53    pub fn task_list(mut self, input: crate::types::TaskList) -> Self {
54        self.task_list = ::std::option::Option::Some(input);
55        self
56    }
57    /// <p>The name of the task list.</p>
58    pub fn set_task_list(mut self, input: ::std::option::Option<crate::types::TaskList>) -> Self {
59        self.task_list = input;
60        self
61    }
62    /// <p>The name of the task list.</p>
63    pub fn get_task_list(&self) -> &::std::option::Option<crate::types::TaskList> {
64        &self.task_list
65    }
66    /// Consumes the builder and constructs a [`CountPendingActivityTasksInput`](crate::operation::count_pending_activity_tasks::CountPendingActivityTasksInput).
67    pub fn build(
68        self,
69    ) -> ::std::result::Result<
70        crate::operation::count_pending_activity_tasks::CountPendingActivityTasksInput,
71        ::aws_smithy_types::error::operation::BuildError,
72    > {
73        ::std::result::Result::Ok(crate::operation::count_pending_activity_tasks::CountPendingActivityTasksInput {
74            domain: self.domain,
75            task_list: self.task_list,
76        })
77    }
78}