#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteAppInput {
pub app_id: ::std::option::Option<::std::string::String>,
pub force_stop_app_replication: ::std::option::Option<bool>,
pub force_terminate_app: ::std::option::Option<bool>,
}
impl DeleteAppInput {
pub fn app_id(&self) -> ::std::option::Option<&str> {
self.app_id.as_deref()
}
pub fn force_stop_app_replication(&self) -> ::std::option::Option<bool> {
self.force_stop_app_replication
}
pub fn force_terminate_app(&self) -> ::std::option::Option<bool> {
self.force_terminate_app
}
}
impl DeleteAppInput {
pub fn builder() -> crate::operation::delete_app::builders::DeleteAppInputBuilder {
crate::operation::delete_app::builders::DeleteAppInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DeleteAppInputBuilder {
pub(crate) app_id: ::std::option::Option<::std::string::String>,
pub(crate) force_stop_app_replication: ::std::option::Option<bool>,
pub(crate) force_terminate_app: ::std::option::Option<bool>,
}
impl DeleteAppInputBuilder {
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 force_stop_app_replication(mut self, input: bool) -> Self {
self.force_stop_app_replication = ::std::option::Option::Some(input);
self
}
pub fn set_force_stop_app_replication(mut self, input: ::std::option::Option<bool>) -> Self {
self.force_stop_app_replication = input;
self
}
pub fn get_force_stop_app_replication(&self) -> &::std::option::Option<bool> {
&self.force_stop_app_replication
}
pub fn force_terminate_app(mut self, input: bool) -> Self {
self.force_terminate_app = ::std::option::Option::Some(input);
self
}
pub fn set_force_terminate_app(mut self, input: ::std::option::Option<bool>) -> Self {
self.force_terminate_app = input;
self
}
pub fn get_force_terminate_app(&self) -> &::std::option::Option<bool> {
&self.force_terminate_app
}
pub fn build(self) -> ::std::result::Result<crate::operation::delete_app::DeleteAppInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_app::DeleteAppInput {
app_id: self.app_id,
force_stop_app_replication: self.force_stop_app_replication,
force_terminate_app: self.force_terminate_app,
})
}
}