#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetJobRunOutput {
pub job_run: ::std::option::Option<crate::types::JobRun>,
_request_id: Option<String>,
}
impl GetJobRunOutput {
pub fn job_run(&self) -> ::std::option::Option<&crate::types::JobRun> {
self.job_run.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetJobRunOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetJobRunOutput {
pub fn builder() -> crate::operation::get_job_run::builders::GetJobRunOutputBuilder {
crate::operation::get_job_run::builders::GetJobRunOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetJobRunOutputBuilder {
pub(crate) job_run: ::std::option::Option<crate::types::JobRun>,
_request_id: Option<String>,
}
impl GetJobRunOutputBuilder {
pub fn job_run(mut self, input: crate::types::JobRun) -> Self {
self.job_run = ::std::option::Option::Some(input);
self
}
pub fn set_job_run(mut self, input: ::std::option::Option<crate::types::JobRun>) -> Self {
self.job_run = input;
self
}
pub fn get_job_run(&self) -> &::std::option::Option<crate::types::JobRun> {
&self.job_run
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::get_job_run::GetJobRunOutput {
crate::operation::get_job_run::GetJobRunOutput {
job_run: self.job_run,
_request_id: self._request_id,
}
}
}