#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListHsmsInput {
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListHsmsInput {
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl ListHsmsInput {
pub fn builder() -> crate::operation::list_hsms::builders::ListHsmsInputBuilder {
crate::operation::list_hsms::builders::ListHsmsInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct ListHsmsInputBuilder {
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl ListHsmsInputBuilder {
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::list_hsms::ListHsmsInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::list_hsms::ListHsmsInput {
next_token: self.next_token,
})
}
}