aws_sdk_dataexchange/operation/create_job/
_create_job_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateJobInput {
pub details: ::std::option::Option<crate::types::RequestDetails>,
pub r#type: ::std::option::Option<crate::types::Type>,
}
impl CreateJobInput {
pub fn details(&self) -> ::std::option::Option<&crate::types::RequestDetails> {
self.details.as_ref()
}
pub fn r#type(&self) -> ::std::option::Option<&crate::types::Type> {
self.r#type.as_ref()
}
}
impl CreateJobInput {
pub fn builder() -> crate::operation::create_job::builders::CreateJobInputBuilder {
crate::operation::create_job::builders::CreateJobInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateJobInputBuilder {
pub(crate) details: ::std::option::Option<crate::types::RequestDetails>,
pub(crate) r#type: ::std::option::Option<crate::types::Type>,
}
impl CreateJobInputBuilder {
pub fn details(mut self, input: crate::types::RequestDetails) -> Self {
self.details = ::std::option::Option::Some(input);
self
}
pub fn set_details(mut self, input: ::std::option::Option<crate::types::RequestDetails>) -> Self {
self.details = input;
self
}
pub fn get_details(&self) -> &::std::option::Option<crate::types::RequestDetails> {
&self.details
}
pub fn r#type(mut self, input: crate::types::Type) -> Self {
self.r#type = ::std::option::Option::Some(input);
self
}
pub fn set_type(mut self, input: ::std::option::Option<crate::types::Type>) -> Self {
self.r#type = input;
self
}
pub fn get_type(&self) -> &::std::option::Option<crate::types::Type> {
&self.r#type
}
pub fn build(self) -> ::std::result::Result<crate::operation::create_job::CreateJobInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::create_job::CreateJobInput {
details: self.details,
r#type: self.r#type,
})
}
}