aws_sdk_applicationinsights/operation/list_log_pattern_sets/
_list_log_pattern_sets_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 ListLogPatternSetsInput {
6    /// <p>The name of the resource group.</p>
7    pub resource_group_name: ::std::option::Option<::std::string::String>,
8    /// <p>The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned <code>NextToken</code> value.</p>
9    pub max_results: ::std::option::Option<i32>,
10    /// <p>The token to request the next page of results.</p>
11    pub next_token: ::std::option::Option<::std::string::String>,
12    /// <p>The Amazon Web Services account ID for the resource group owner.</p>
13    pub account_id: ::std::option::Option<::std::string::String>,
14}
15impl ListLogPatternSetsInput {
16    /// <p>The name of the resource group.</p>
17    pub fn resource_group_name(&self) -> ::std::option::Option<&str> {
18        self.resource_group_name.as_deref()
19    }
20    /// <p>The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned <code>NextToken</code> value.</p>
21    pub fn max_results(&self) -> ::std::option::Option<i32> {
22        self.max_results
23    }
24    /// <p>The token to request the next page of results.</p>
25    pub fn next_token(&self) -> ::std::option::Option<&str> {
26        self.next_token.as_deref()
27    }
28    /// <p>The Amazon Web Services account ID for the resource group owner.</p>
29    pub fn account_id(&self) -> ::std::option::Option<&str> {
30        self.account_id.as_deref()
31    }
32}
33impl ListLogPatternSetsInput {
34    /// Creates a new builder-style object to manufacture [`ListLogPatternSetsInput`](crate::operation::list_log_pattern_sets::ListLogPatternSetsInput).
35    pub fn builder() -> crate::operation::list_log_pattern_sets::builders::ListLogPatternSetsInputBuilder {
36        crate::operation::list_log_pattern_sets::builders::ListLogPatternSetsInputBuilder::default()
37    }
38}
39
40/// A builder for [`ListLogPatternSetsInput`](crate::operation::list_log_pattern_sets::ListLogPatternSetsInput).
41#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct ListLogPatternSetsInputBuilder {
44    pub(crate) resource_group_name: ::std::option::Option<::std::string::String>,
45    pub(crate) max_results: ::std::option::Option<i32>,
46    pub(crate) next_token: ::std::option::Option<::std::string::String>,
47    pub(crate) account_id: ::std::option::Option<::std::string::String>,
48}
49impl ListLogPatternSetsInputBuilder {
50    /// <p>The name of the resource group.</p>
51    /// This field is required.
52    pub fn resource_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53        self.resource_group_name = ::std::option::Option::Some(input.into());
54        self
55    }
56    /// <p>The name of the resource group.</p>
57    pub fn set_resource_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58        self.resource_group_name = input;
59        self
60    }
61    /// <p>The name of the resource group.</p>
62    pub fn get_resource_group_name(&self) -> &::std::option::Option<::std::string::String> {
63        &self.resource_group_name
64    }
65    /// <p>The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned <code>NextToken</code> value.</p>
66    pub fn max_results(mut self, input: i32) -> Self {
67        self.max_results = ::std::option::Option::Some(input);
68        self
69    }
70    /// <p>The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned <code>NextToken</code> value.</p>
71    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
72        self.max_results = input;
73        self
74    }
75    /// <p>The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned <code>NextToken</code> value.</p>
76    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
77        &self.max_results
78    }
79    /// <p>The token to request the next page of results.</p>
80    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
81        self.next_token = ::std::option::Option::Some(input.into());
82        self
83    }
84    /// <p>The token to request the next page of results.</p>
85    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
86        self.next_token = input;
87        self
88    }
89    /// <p>The token to request the next page of results.</p>
90    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
91        &self.next_token
92    }
93    /// <p>The Amazon Web Services account ID for the resource group owner.</p>
94    pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
95        self.account_id = ::std::option::Option::Some(input.into());
96        self
97    }
98    /// <p>The Amazon Web Services account ID for the resource group owner.</p>
99    pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
100        self.account_id = input;
101        self
102    }
103    /// <p>The Amazon Web Services account ID for the resource group owner.</p>
104    pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
105        &self.account_id
106    }
107    /// Consumes the builder and constructs a [`ListLogPatternSetsInput`](crate::operation::list_log_pattern_sets::ListLogPatternSetsInput).
108    pub fn build(
109        self,
110    ) -> ::std::result::Result<crate::operation::list_log_pattern_sets::ListLogPatternSetsInput, ::aws_smithy_types::error::operation::BuildError>
111    {
112        ::std::result::Result::Ok(crate::operation::list_log_pattern_sets::ListLogPatternSetsInput {
113            resource_group_name: self.resource_group_name,
114            max_results: self.max_results,
115            next_token: self.next_token,
116            account_id: self.account_id,
117        })
118    }
119}