#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetBackendJobInput {
pub app_id: ::std::option::Option<::std::string::String>,
pub backend_environment_name: ::std::option::Option<::std::string::String>,
pub job_id: ::std::option::Option<::std::string::String>,
}
impl GetBackendJobInput {
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 job_id(&self) -> ::std::option::Option<&str> {
self.job_id.as_deref()
}
}
impl GetBackendJobInput {
pub fn builder() -> crate::operation::get_backend_job::builders::GetBackendJobInputBuilder {
crate::operation::get_backend_job::builders::GetBackendJobInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetBackendJobInputBuilder {
pub(crate) app_id: ::std::option::Option<::std::string::String>,
pub(crate) backend_environment_name: ::std::option::Option<::std::string::String>,
pub(crate) job_id: ::std::option::Option<::std::string::String>,
}
impl GetBackendJobInputBuilder {
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 job_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.job_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_job_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.job_id = input;
self
}
pub fn get_job_id(&self) -> &::std::option::Option<::std::string::String> {
&self.job_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_backend_job::GetBackendJobInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_backend_job::GetBackendJobInput {
app_id: self.app_id,
backend_environment_name: self.backend_environment_name,
job_id: self.job_id,
})
}
}