aws-sdk-devopsguru 1.98.0

AWS SDK for Amazon DevOps Guru
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 GetCostEstimationInput {
    /// <p>The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.</p>
    pub next_token: ::std::option::Option<::std::string::String>,
}
impl GetCostEstimationInput {
    /// <p>The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.</p>
    pub fn next_token(&self) -> ::std::option::Option<&str> {
        self.next_token.as_deref()
    }
}
impl GetCostEstimationInput {
    /// Creates a new builder-style object to manufacture [`GetCostEstimationInput`](crate::operation::get_cost_estimation::GetCostEstimationInput).
    pub fn builder() -> crate::operation::get_cost_estimation::builders::GetCostEstimationInputBuilder {
        crate::operation::get_cost_estimation::builders::GetCostEstimationInputBuilder::default()
    }
}

/// A builder for [`GetCostEstimationInput`](crate::operation::get_cost_estimation::GetCostEstimationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetCostEstimationInputBuilder {
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
}
impl GetCostEstimationInputBuilder {
    /// <p>The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.</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 pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.</p>
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.next_token = input;
        self
    }
    /// <p>The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.</p>
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.next_token
    }
    /// Consumes the builder and constructs a [`GetCostEstimationInput`](crate::operation::get_cost_estimation::GetCostEstimationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_cost_estimation::GetCostEstimationInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_cost_estimation::GetCostEstimationInput { next_token: self.next_token })
    }
}