#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeLayersInput {
#[doc(hidden)]
pub stack_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub layer_ids: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl DescribeLayersInput {
pub fn stack_id(&self) -> std::option::Option<&str> {
self.stack_id.as_deref()
}
pub fn layer_ids(&self) -> std::option::Option<&[std::string::String]> {
self.layer_ids.as_deref()
}
}
impl DescribeLayersInput {
pub fn builder() -> crate::operation::describe_layers::builders::DescribeLayersInputBuilder {
crate::operation::describe_layers::builders::DescribeLayersInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DescribeLayersInputBuilder {
pub(crate) stack_id: std::option::Option<std::string::String>,
pub(crate) layer_ids: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl DescribeLayersInputBuilder {
pub fn stack_id(mut self, input: impl Into<std::string::String>) -> Self {
self.stack_id = Some(input.into());
self
}
pub fn set_stack_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.stack_id = input;
self
}
pub fn layer_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.layer_ids.unwrap_or_default();
v.push(input.into());
self.layer_ids = Some(v);
self
}
pub fn set_layer_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.layer_ids = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::describe_layers::DescribeLayersInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::describe_layers::DescribeLayersInput {
stack_id: self.stack_id,
layer_ids: self.layer_ids,
})
}
}