#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetJobDocumentInput {
pub job_id: ::std::option::Option<::std::string::String>,
pub before_substitution: ::std::option::Option<bool>,
}
impl GetJobDocumentInput {
pub fn job_id(&self) -> ::std::option::Option<&str> {
self.job_id.as_deref()
}
pub fn before_substitution(&self) -> ::std::option::Option<bool> {
self.before_substitution
}
}
impl GetJobDocumentInput {
pub fn builder() -> crate::operation::get_job_document::builders::GetJobDocumentInputBuilder {
crate::operation::get_job_document::builders::GetJobDocumentInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetJobDocumentInputBuilder {
pub(crate) job_id: ::std::option::Option<::std::string::String>,
pub(crate) before_substitution: ::std::option::Option<bool>,
}
impl GetJobDocumentInputBuilder {
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 before_substitution(mut self, input: bool) -> Self {
self.before_substitution = ::std::option::Option::Some(input);
self
}
pub fn set_before_substitution(mut self, input: ::std::option::Option<bool>) -> Self {
self.before_substitution = input;
self
}
pub fn get_before_substitution(&self) -> &::std::option::Option<bool> {
&self.before_substitution
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_job_document::GetJobDocumentInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_job_document::GetJobDocumentInput {
job_id: self.job_id,
before_substitution: self.before_substitution,
})
}
}