#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CloneBackendInput {
#[doc(hidden)]
pub app_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub backend_environment_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub target_environment_name: std::option::Option<std::string::String>,
}
impl CloneBackendInput {
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()
}
pub fn target_environment_name(&self) -> std::option::Option<&str> {
self.target_environment_name.as_deref()
}
}
impl CloneBackendInput {
pub fn builder() -> crate::operation::clone_backend::builders::CloneBackendInputBuilder {
crate::operation::clone_backend::builders::CloneBackendInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct CloneBackendInputBuilder {
pub(crate) app_id: std::option::Option<std::string::String>,
pub(crate) backend_environment_name: std::option::Option<std::string::String>,
pub(crate) target_environment_name: std::option::Option<std::string::String>,
}
impl CloneBackendInputBuilder {
pub fn app_id(mut self, input: impl Into<std::string::String>) -> Self {
self.app_id = 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 backend_environment_name(mut self, input: impl Into<std::string::String>) -> Self {
self.backend_environment_name = 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 target_environment_name(mut self, input: impl Into<std::string::String>) -> Self {
self.target_environment_name = Some(input.into());
self
}
pub fn set_target_environment_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.target_environment_name = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::clone_backend::CloneBackendInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::clone_backend::CloneBackendInput {
app_id: self.app_id,
backend_environment_name: self.backend_environment_name,
target_environment_name: self.target_environment_name,
})
}
}