#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteBackendInput {
pub app_id: ::std::option::Option<::std::string::String>,
pub backend_environment_name: ::std::option::Option<::std::string::String>,
}
impl DeleteBackendInput {
pub fn app_id(&self) -> ::std::option::Option<&str> {
self.app_id.as_deref()
}
pub fn backend_environment_name(&self) -> ::std::option::Option<&str> {
self.backend_environment_name.as_deref()
}
}
impl DeleteBackendInput {
pub fn builder() -> crate::operation::delete_backend::builders::DeleteBackendInputBuilder {
crate::operation::delete_backend::builders::DeleteBackendInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteBackendInputBuilder {
pub(crate) app_id: ::std::option::Option<::std::string::String>,
pub(crate) backend_environment_name: ::std::option::Option<::std::string::String>,
}
impl DeleteBackendInputBuilder {
pub fn app_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.app_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_app_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.app_id = input;
self
}
pub fn get_app_id(&self) -> &::std::option::Option<::std::string::String> {
&self.app_id
}
pub fn backend_environment_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.backend_environment_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_backend_environment_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.backend_environment_name = input;
self
}
pub fn get_backend_environment_name(&self) -> &::std::option::Option<::std::string::String> {
&self.backend_environment_name
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_backend::DeleteBackendInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_backend::DeleteBackendInput {
app_id: self.app_id,
backend_environment_name: self.backend_environment_name,
})
}
}