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