#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeStacksInput {
pub names: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub next_token: ::std::option::Option<::std::string::String>,
}
impl DescribeStacksInput {
pub fn names(&self) -> ::std::option::Option<&[::std::string::String]> {
self.names.as_deref()
}
pub fn next_token(&self) -> ::std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl DescribeStacksInput {
pub fn builder() -> crate::operation::describe_stacks::builders::DescribeStacksInputBuilder {
crate::operation::describe_stacks::builders::DescribeStacksInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DescribeStacksInputBuilder {
pub(crate) names: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) next_token: ::std::option::Option<::std::string::String>,
}
impl DescribeStacksInputBuilder {
pub fn names(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.names.unwrap_or_default();
v.push(input.into());
self.names = ::std::option::Option::Some(v);
self
}
pub fn set_names(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.names = input;
self
}
pub fn get_names(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.names
}
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
}
pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
&self.next_token
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_stacks::DescribeStacksInput, ::aws_smithy_http::operation::error::BuildError> {
::std::result::Result::Ok(crate::operation::describe_stacks::DescribeStacksInput {
names: self.names,
next_token: self.next_token,
})
}
}