aws-sdk-cloudhsm 0.25.1

AWS SDK for Amazon CloudHSM
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 ListHapgsInput {
    /// <p>The <code>NextToken</code> value from a previous call to <code>ListHapgs</code>. Pass null if this is the first call.</p>
    #[doc(hidden)]
    pub next_token: std::option::Option<std::string::String>,
}
impl ListHapgsInput {
    /// <p>The <code>NextToken</code> value from a previous call to <code>ListHapgs</code>. Pass null if this is the first call.</p>
    pub fn next_token(&self) -> std::option::Option<&str> {
        self.next_token.as_deref()
    }
}
impl ListHapgsInput {
    /// Creates a new builder-style object to manufacture [`ListHapgsInput`](crate::operation::list_hapgs::ListHapgsInput).
    pub fn builder() -> crate::operation::list_hapgs::builders::ListHapgsInputBuilder {
        crate::operation::list_hapgs::builders::ListHapgsInputBuilder::default()
    }
}

/// A builder for [`ListHapgsInput`](crate::operation::list_hapgs::ListHapgsInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct ListHapgsInputBuilder {
    pub(crate) next_token: std::option::Option<std::string::String>,
}
impl ListHapgsInputBuilder {
    /// <p>The <code>NextToken</code> value from a previous call to <code>ListHapgs</code>. Pass null if this is the first call.</p>
    pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
        self.next_token = Some(input.into());
        self
    }
    /// <p>The <code>NextToken</code> value from a previous call to <code>ListHapgs</code>. Pass null if this is the first call.</p>
    pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.next_token = input;
        self
    }
    /// Consumes the builder and constructs a [`ListHapgsInput`](crate::operation::list_hapgs::ListHapgsInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::list_hapgs::ListHapgsInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::list_hapgs::ListHapgsInput {
            next_token: self.next_token,
        })
    }
}