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