#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetDeploymentInput {
pub deployment_id: ::std::option::Option<::std::string::String>,
pub application_id: ::std::option::Option<::std::string::String>,
}
impl GetDeploymentInput {
pub fn deployment_id(&self) -> ::std::option::Option<&str> {
self.deployment_id.as_deref()
}
pub fn application_id(&self) -> ::std::option::Option<&str> {
self.application_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>,
pub(crate) application_id: ::std::option::Option<::std::string::String>,
}
impl GetDeploymentInputBuilder {
pub fn deployment_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.deployment_id = ::std::option::Option::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 get_deployment_id(&self) -> &::std::option::Option<::std::string::String> {
&self.deployment_id
}
pub fn application_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.application_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_application_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.application_id = input;
self
}
pub fn get_application_id(&self) -> &::std::option::Option<::std::string::String> {
&self.application_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_deployment::GetDeploymentInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_deployment::GetDeploymentInput {
deployment_id: self.deployment_id,
application_id: self.application_id,
})
}
}