#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeJobInput {
pub job_name: ::std::option::Option<::std::string::String>,
pub job_category: ::std::option::Option<crate::types::JobCategory>,
}
impl DescribeJobInput {
pub fn job_name(&self) -> ::std::option::Option<&str> {
self.job_name.as_deref()
}
pub fn job_category(&self) -> ::std::option::Option<&crate::types::JobCategory> {
self.job_category.as_ref()
}
}
impl DescribeJobInput {
pub fn builder() -> crate::operation::describe_job::builders::DescribeJobInputBuilder {
crate::operation::describe_job::builders::DescribeJobInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeJobInputBuilder {
pub(crate) job_name: ::std::option::Option<::std::string::String>,
pub(crate) job_category: ::std::option::Option<crate::types::JobCategory>,
}
impl DescribeJobInputBuilder {
pub fn job_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.job_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_job_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.job_name = input;
self
}
pub fn get_job_name(&self) -> &::std::option::Option<::std::string::String> {
&self.job_name
}
pub fn job_category(mut self, input: crate::types::JobCategory) -> Self {
self.job_category = ::std::option::Option::Some(input);
self
}
pub fn set_job_category(mut self, input: ::std::option::Option<crate::types::JobCategory>) -> Self {
self.job_category = input;
self
}
pub fn get_job_category(&self) -> &::std::option::Option<crate::types::JobCategory> {
&self.job_category
}
pub fn build(self) -> ::std::result::Result<crate::operation::describe_job::DescribeJobInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::describe_job::DescribeJobInput {
job_name: self.job_name,
job_category: self.job_category,
})
}
}