aws_sdk_workdocs/operation/describe_notification_subscriptions/
_describe_notification_subscriptions_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 DescribeNotificationSubscriptionsInput {
6    /// <p>The ID of the organization.</p>
7    pub organization_id: ::std::option::Option<::std::string::String>,
8    /// <p>The marker for the next set of results. (You received this marker from a previous call.)</p>
9    pub marker: ::std::option::Option<::std::string::String>,
10    /// <p>The maximum number of items to return with this call.</p>
11    pub limit: ::std::option::Option<i32>,
12}
13impl DescribeNotificationSubscriptionsInput {
14    /// <p>The ID of the organization.</p>
15    pub fn organization_id(&self) -> ::std::option::Option<&str> {
16        self.organization_id.as_deref()
17    }
18    /// <p>The marker for the next set of results. (You received this marker from a previous call.)</p>
19    pub fn marker(&self) -> ::std::option::Option<&str> {
20        self.marker.as_deref()
21    }
22    /// <p>The maximum number of items to return with this call.</p>
23    pub fn limit(&self) -> ::std::option::Option<i32> {
24        self.limit
25    }
26}
27impl DescribeNotificationSubscriptionsInput {
28    /// Creates a new builder-style object to manufacture [`DescribeNotificationSubscriptionsInput`](crate::operation::describe_notification_subscriptions::DescribeNotificationSubscriptionsInput).
29    pub fn builder() -> crate::operation::describe_notification_subscriptions::builders::DescribeNotificationSubscriptionsInputBuilder {
30        crate::operation::describe_notification_subscriptions::builders::DescribeNotificationSubscriptionsInputBuilder::default()
31    }
32}
33
34/// A builder for [`DescribeNotificationSubscriptionsInput`](crate::operation::describe_notification_subscriptions::DescribeNotificationSubscriptionsInput).
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct DescribeNotificationSubscriptionsInputBuilder {
38    pub(crate) organization_id: ::std::option::Option<::std::string::String>,
39    pub(crate) marker: ::std::option::Option<::std::string::String>,
40    pub(crate) limit: ::std::option::Option<i32>,
41}
42impl DescribeNotificationSubscriptionsInputBuilder {
43    /// <p>The ID of the organization.</p>
44    /// This field is required.
45    pub fn organization_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46        self.organization_id = ::std::option::Option::Some(input.into());
47        self
48    }
49    /// <p>The ID of the organization.</p>
50    pub fn set_organization_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51        self.organization_id = input;
52        self
53    }
54    /// <p>The ID of the organization.</p>
55    pub fn get_organization_id(&self) -> &::std::option::Option<::std::string::String> {
56        &self.organization_id
57    }
58    /// <p>The marker for the next set of results. (You received this marker from a previous call.)</p>
59    pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
60        self.marker = ::std::option::Option::Some(input.into());
61        self
62    }
63    /// <p>The marker for the next set of results. (You received this marker from a previous call.)</p>
64    pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
65        self.marker = input;
66        self
67    }
68    /// <p>The marker for the next set of results. (You received this marker from a previous call.)</p>
69    pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
70        &self.marker
71    }
72    /// <p>The maximum number of items to return with this call.</p>
73    pub fn limit(mut self, input: i32) -> Self {
74        self.limit = ::std::option::Option::Some(input);
75        self
76    }
77    /// <p>The maximum number of items to return with this call.</p>
78    pub fn set_limit(mut self, input: ::std::option::Option<i32>) -> Self {
79        self.limit = input;
80        self
81    }
82    /// <p>The maximum number of items to return with this call.</p>
83    pub fn get_limit(&self) -> &::std::option::Option<i32> {
84        &self.limit
85    }
86    /// Consumes the builder and constructs a [`DescribeNotificationSubscriptionsInput`](crate::operation::describe_notification_subscriptions::DescribeNotificationSubscriptionsInput).
87    pub fn build(
88        self,
89    ) -> ::std::result::Result<
90        crate::operation::describe_notification_subscriptions::DescribeNotificationSubscriptionsInput,
91        ::aws_smithy_types::error::operation::BuildError,
92    > {
93        ::std::result::Result::Ok(
94            crate::operation::describe_notification_subscriptions::DescribeNotificationSubscriptionsInput {
95                organization_id: self.organization_id,
96                marker: self.marker,
97                limit: self.limit,
98            },
99        )
100    }
101}