#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetDeploymentConfigInput {
pub deployment_config_name: ::std::option::Option<::std::string::String>,
}
impl GetDeploymentConfigInput {
pub fn deployment_config_name(&self) -> ::std::option::Option<&str> {
self.deployment_config_name.as_deref()
}
}
impl GetDeploymentConfigInput {
pub fn builder() -> crate::operation::get_deployment_config::builders::GetDeploymentConfigInputBuilder {
crate::operation::get_deployment_config::builders::GetDeploymentConfigInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDeploymentConfigInputBuilder {
pub(crate) deployment_config_name: ::std::option::Option<::std::string::String>,
}
impl GetDeploymentConfigInputBuilder {
pub fn deployment_config_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.deployment_config_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_deployment_config_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.deployment_config_name = input;
self
}
pub fn get_deployment_config_name(&self) -> &::std::option::Option<::std::string::String> {
&self.deployment_config_name
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_deployment_config::GetDeploymentConfigInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::get_deployment_config::GetDeploymentConfigInput {
deployment_config_name: self.deployment_config_name,
})
}
}