aws-sdk-cloudwatchlogs 1.79.0

AWS SDK for Amazon CloudWatch Logs
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 DescribeDeliverySourcesInput {
    /// <p>The token for the next set of items to return. The token expires after 24 hours.</p>
    pub next_token: ::std::option::Option<::std::string::String>,
    /// <p>Optionally specify the maximum number of delivery sources to return in the response.</p>
    pub limit: ::std::option::Option<i32>,
}
impl DescribeDeliverySourcesInput {
    /// <p>The token for the next set of items to return. The token expires after 24 hours.</p>
    pub fn next_token(&self) -> ::std::option::Option<&str> {
        self.next_token.as_deref()
    }
    /// <p>Optionally specify the maximum number of delivery sources to return in the response.</p>
    pub fn limit(&self) -> ::std::option::Option<i32> {
        self.limit
    }
}
impl DescribeDeliverySourcesInput {
    /// Creates a new builder-style object to manufacture [`DescribeDeliverySourcesInput`](crate::operation::describe_delivery_sources::DescribeDeliverySourcesInput).
    pub fn builder() -> crate::operation::describe_delivery_sources::builders::DescribeDeliverySourcesInputBuilder {
        crate::operation::describe_delivery_sources::builders::DescribeDeliverySourcesInputBuilder::default()
    }
}

/// A builder for [`DescribeDeliverySourcesInput`](crate::operation::describe_delivery_sources::DescribeDeliverySourcesInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeDeliverySourcesInputBuilder {
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
    pub(crate) limit: ::std::option::Option<i32>,
}
impl DescribeDeliverySourcesInputBuilder {
    /// <p>The token for the next set of items to return. The token expires after 24 hours.</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 the next set of items to return. The token expires after 24 hours.</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 the next set of items to return. The token expires after 24 hours.</p>
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.next_token
    }
    /// <p>Optionally specify the maximum number of delivery sources to return in the response.</p>
    pub fn limit(mut self, input: i32) -> Self {
        self.limit = ::std::option::Option::Some(input);
        self
    }
    /// <p>Optionally specify the maximum number of delivery sources to return in the response.</p>
    pub fn set_limit(mut self, input: ::std::option::Option<i32>) -> Self {
        self.limit = input;
        self
    }
    /// <p>Optionally specify the maximum number of delivery sources to return in the response.</p>
    pub fn get_limit(&self) -> &::std::option::Option<i32> {
        &self.limit
    }
    /// Consumes the builder and constructs a [`DescribeDeliverySourcesInput`](crate::operation::describe_delivery_sources::DescribeDeliverySourcesInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::describe_delivery_sources::DescribeDeliverySourcesInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::describe_delivery_sources::DescribeDeliverySourcesInput {
            next_token: self.next_token,
            limit: self.limit,
        })
    }
}