#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateJobExecutionOutput {
#[doc(hidden)]
pub execution_state: std::option::Option<crate::model::JobExecutionState>,
#[doc(hidden)]
pub job_document: std::option::Option<std::string::String>,
}
impl UpdateJobExecutionOutput {
pub fn execution_state(&self) -> std::option::Option<&crate::model::JobExecutionState> {
self.execution_state.as_ref()
}
pub fn job_document(&self) -> std::option::Option<&str> {
self.job_document.as_deref()
}
}
pub mod update_job_execution_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) execution_state: std::option::Option<crate::model::JobExecutionState>,
pub(crate) job_document: std::option::Option<std::string::String>,
}
impl Builder {
pub fn execution_state(mut self, input: crate::model::JobExecutionState) -> Self {
self.execution_state = Some(input);
self
}
pub fn set_execution_state(
mut self,
input: std::option::Option<crate::model::JobExecutionState>,
) -> Self {
self.execution_state = input;
self
}
pub fn job_document(mut self, input: impl Into<std::string::String>) -> Self {
self.job_document = Some(input.into());
self
}
pub fn set_job_document(mut self, input: std::option::Option<std::string::String>) -> Self {
self.job_document = input;
self
}
pub fn build(self) -> crate::output::UpdateJobExecutionOutput {
crate::output::UpdateJobExecutionOutput {
execution_state: self.execution_state,
job_document: self.job_document,
}
}
}
}
impl UpdateJobExecutionOutput {
pub fn builder() -> crate::output::update_job_execution_output::Builder {
crate::output::update_job_execution_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StartNextPendingJobExecutionOutput {
#[doc(hidden)]
pub execution: std::option::Option<crate::model::JobExecution>,
}
impl StartNextPendingJobExecutionOutput {
pub fn execution(&self) -> std::option::Option<&crate::model::JobExecution> {
self.execution.as_ref()
}
}
pub mod start_next_pending_job_execution_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) execution: std::option::Option<crate::model::JobExecution>,
}
impl Builder {
pub fn execution(mut self, input: crate::model::JobExecution) -> Self {
self.execution = Some(input);
self
}
pub fn set_execution(
mut self,
input: std::option::Option<crate::model::JobExecution>,
) -> Self {
self.execution = input;
self
}
pub fn build(self) -> crate::output::StartNextPendingJobExecutionOutput {
crate::output::StartNextPendingJobExecutionOutput {
execution: self.execution,
}
}
}
}
impl StartNextPendingJobExecutionOutput {
pub fn builder() -> crate::output::start_next_pending_job_execution_output::Builder {
crate::output::start_next_pending_job_execution_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetPendingJobExecutionsOutput {
#[doc(hidden)]
pub in_progress_jobs: std::option::Option<std::vec::Vec<crate::model::JobExecutionSummary>>,
#[doc(hidden)]
pub queued_jobs: std::option::Option<std::vec::Vec<crate::model::JobExecutionSummary>>,
}
impl GetPendingJobExecutionsOutput {
pub fn in_progress_jobs(&self) -> std::option::Option<&[crate::model::JobExecutionSummary]> {
self.in_progress_jobs.as_deref()
}
pub fn queued_jobs(&self) -> std::option::Option<&[crate::model::JobExecutionSummary]> {
self.queued_jobs.as_deref()
}
}
pub mod get_pending_job_executions_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) in_progress_jobs:
std::option::Option<std::vec::Vec<crate::model::JobExecutionSummary>>,
pub(crate) queued_jobs:
std::option::Option<std::vec::Vec<crate::model::JobExecutionSummary>>,
}
impl Builder {
pub fn in_progress_jobs(mut self, input: crate::model::JobExecutionSummary) -> Self {
let mut v = self.in_progress_jobs.unwrap_or_default();
v.push(input);
self.in_progress_jobs = Some(v);
self
}
pub fn set_in_progress_jobs(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::JobExecutionSummary>>,
) -> Self {
self.in_progress_jobs = input;
self
}
pub fn queued_jobs(mut self, input: crate::model::JobExecutionSummary) -> Self {
let mut v = self.queued_jobs.unwrap_or_default();
v.push(input);
self.queued_jobs = Some(v);
self
}
pub fn set_queued_jobs(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::JobExecutionSummary>>,
) -> Self {
self.queued_jobs = input;
self
}
pub fn build(self) -> crate::output::GetPendingJobExecutionsOutput {
crate::output::GetPendingJobExecutionsOutput {
in_progress_jobs: self.in_progress_jobs,
queued_jobs: self.queued_jobs,
}
}
}
}
impl GetPendingJobExecutionsOutput {
pub fn builder() -> crate::output::get_pending_job_executions_output::Builder {
crate::output::get_pending_job_executions_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeJobExecutionOutput {
#[doc(hidden)]
pub execution: std::option::Option<crate::model::JobExecution>,
}
impl DescribeJobExecutionOutput {
pub fn execution(&self) -> std::option::Option<&crate::model::JobExecution> {
self.execution.as_ref()
}
}
pub mod describe_job_execution_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) execution: std::option::Option<crate::model::JobExecution>,
}
impl Builder {
pub fn execution(mut self, input: crate::model::JobExecution) -> Self {
self.execution = Some(input);
self
}
pub fn set_execution(
mut self,
input: std::option::Option<crate::model::JobExecution>,
) -> Self {
self.execution = input;
self
}
pub fn build(self) -> crate::output::DescribeJobExecutionOutput {
crate::output::DescribeJobExecutionOutput {
execution: self.execution,
}
}
}
}
impl DescribeJobExecutionOutput {
pub fn builder() -> crate::output::describe_job_execution_output::Builder {
crate::output::describe_job_execution_output::Builder::default()
}
}