aws_sdk_waf/operation/list_logging_configurations/
_list_logging_configurations_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 ListLoggingConfigurationsInput {
6    /// <p>If you specify a value for <code>Limit</code> and you have more <code>LoggingConfigurations</code> than the value of <code>Limit</code>, AWS WAF returns a <code>NextMarker</code> value in the response that allows you to list another group of <code>LoggingConfigurations</code>. For the second and subsequent <code>ListLoggingConfigurations</code> requests, specify the value of <code>NextMarker</code> from the previous response to get information about another batch of <code>ListLoggingConfigurations</code>.</p>
7    pub next_marker: ::std::option::Option<::std::string::String>,
8    /// <p>Specifies the number of <code>LoggingConfigurations</code> that you want AWS WAF to return for this request. If you have more <code>LoggingConfigurations</code> than the number that you specify for <code>Limit</code>, the response includes a <code>NextMarker</code> value that you can use to get another batch of <code>LoggingConfigurations</code>.</p>
9    pub limit: ::std::option::Option<i32>,
10}
11impl ListLoggingConfigurationsInput {
12    /// <p>If you specify a value for <code>Limit</code> and you have more <code>LoggingConfigurations</code> than the value of <code>Limit</code>, AWS WAF returns a <code>NextMarker</code> value in the response that allows you to list another group of <code>LoggingConfigurations</code>. For the second and subsequent <code>ListLoggingConfigurations</code> requests, specify the value of <code>NextMarker</code> from the previous response to get information about another batch of <code>ListLoggingConfigurations</code>.</p>
13    pub fn next_marker(&self) -> ::std::option::Option<&str> {
14        self.next_marker.as_deref()
15    }
16    /// <p>Specifies the number of <code>LoggingConfigurations</code> that you want AWS WAF to return for this request. If you have more <code>LoggingConfigurations</code> than the number that you specify for <code>Limit</code>, the response includes a <code>NextMarker</code> value that you can use to get another batch of <code>LoggingConfigurations</code>.</p>
17    pub fn limit(&self) -> ::std::option::Option<i32> {
18        self.limit
19    }
20}
21impl ListLoggingConfigurationsInput {
22    /// Creates a new builder-style object to manufacture [`ListLoggingConfigurationsInput`](crate::operation::list_logging_configurations::ListLoggingConfigurationsInput).
23    pub fn builder() -> crate::operation::list_logging_configurations::builders::ListLoggingConfigurationsInputBuilder {
24        crate::operation::list_logging_configurations::builders::ListLoggingConfigurationsInputBuilder::default()
25    }
26}
27
28/// A builder for [`ListLoggingConfigurationsInput`](crate::operation::list_logging_configurations::ListLoggingConfigurationsInput).
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct ListLoggingConfigurationsInputBuilder {
32    pub(crate) next_marker: ::std::option::Option<::std::string::String>,
33    pub(crate) limit: ::std::option::Option<i32>,
34}
35impl ListLoggingConfigurationsInputBuilder {
36    /// <p>If you specify a value for <code>Limit</code> and you have more <code>LoggingConfigurations</code> than the value of <code>Limit</code>, AWS WAF returns a <code>NextMarker</code> value in the response that allows you to list another group of <code>LoggingConfigurations</code>. For the second and subsequent <code>ListLoggingConfigurations</code> requests, specify the value of <code>NextMarker</code> from the previous response to get information about another batch of <code>ListLoggingConfigurations</code>.</p>
37    pub fn next_marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
38        self.next_marker = ::std::option::Option::Some(input.into());
39        self
40    }
41    /// <p>If you specify a value for <code>Limit</code> and you have more <code>LoggingConfigurations</code> than the value of <code>Limit</code>, AWS WAF returns a <code>NextMarker</code> value in the response that allows you to list another group of <code>LoggingConfigurations</code>. For the second and subsequent <code>ListLoggingConfigurations</code> requests, specify the value of <code>NextMarker</code> from the previous response to get information about another batch of <code>ListLoggingConfigurations</code>.</p>
42    pub fn set_next_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
43        self.next_marker = input;
44        self
45    }
46    /// <p>If you specify a value for <code>Limit</code> and you have more <code>LoggingConfigurations</code> than the value of <code>Limit</code>, AWS WAF returns a <code>NextMarker</code> value in the response that allows you to list another group of <code>LoggingConfigurations</code>. For the second and subsequent <code>ListLoggingConfigurations</code> requests, specify the value of <code>NextMarker</code> from the previous response to get information about another batch of <code>ListLoggingConfigurations</code>.</p>
47    pub fn get_next_marker(&self) -> &::std::option::Option<::std::string::String> {
48        &self.next_marker
49    }
50    /// <p>Specifies the number of <code>LoggingConfigurations</code> that you want AWS WAF to return for this request. If you have more <code>LoggingConfigurations</code> than the number that you specify for <code>Limit</code>, the response includes a <code>NextMarker</code> value that you can use to get another batch of <code>LoggingConfigurations</code>.</p>
51    pub fn limit(mut self, input: i32) -> Self {
52        self.limit = ::std::option::Option::Some(input);
53        self
54    }
55    /// <p>Specifies the number of <code>LoggingConfigurations</code> that you want AWS WAF to return for this request. If you have more <code>LoggingConfigurations</code> than the number that you specify for <code>Limit</code>, the response includes a <code>NextMarker</code> value that you can use to get another batch of <code>LoggingConfigurations</code>.</p>
56    pub fn set_limit(mut self, input: ::std::option::Option<i32>) -> Self {
57        self.limit = input;
58        self
59    }
60    /// <p>Specifies the number of <code>LoggingConfigurations</code> that you want AWS WAF to return for this request. If you have more <code>LoggingConfigurations</code> than the number that you specify for <code>Limit</code>, the response includes a <code>NextMarker</code> value that you can use to get another batch of <code>LoggingConfigurations</code>.</p>
61    pub fn get_limit(&self) -> &::std::option::Option<i32> {
62        &self.limit
63    }
64    /// Consumes the builder and constructs a [`ListLoggingConfigurationsInput`](crate::operation::list_logging_configurations::ListLoggingConfigurationsInput).
65    pub fn build(
66        self,
67    ) -> ::std::result::Result<
68        crate::operation::list_logging_configurations::ListLoggingConfigurationsInput,
69        ::aws_smithy_types::error::operation::BuildError,
70    > {
71        ::std::result::Result::Ok(crate::operation::list_logging_configurations::ListLoggingConfigurationsInput {
72            next_marker: self.next_marker,
73            limit: self.limit,
74        })
75    }
76}