#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeJobExecution {
_private: (),
}
impl DescribeJobExecution {
pub fn builder() -> crate::input::describe_job_execution_input::Builder {
crate::input::describe_job_execution_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeJobExecution {
type Output = std::result::Result<
crate::output::DescribeJobExecutionOutput,
crate::error::DescribeJobExecutionError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_job_execution_error(response)
} else {
crate::operation_deser::parse_describe_job_execution_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetPendingJobExecutions {
_private: (),
}
impl GetPendingJobExecutions {
pub fn builder() -> crate::input::get_pending_job_executions_input::Builder {
crate::input::get_pending_job_executions_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetPendingJobExecutions {
type Output = std::result::Result<
crate::output::GetPendingJobExecutionsOutput,
crate::error::GetPendingJobExecutionsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_get_pending_job_executions_error(response)
} else {
crate::operation_deser::parse_get_pending_job_executions_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StartNextPendingJobExecution {
_private: (),
}
impl StartNextPendingJobExecution {
pub fn builder() -> crate::input::start_next_pending_job_execution_input::Builder {
crate::input::start_next_pending_job_execution_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StartNextPendingJobExecution {
type Output = std::result::Result<
crate::output::StartNextPendingJobExecutionOutput,
crate::error::StartNextPendingJobExecutionError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_start_next_pending_job_execution_error(response)
} else {
crate::operation_deser::parse_start_next_pending_job_execution_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateJobExecution {
_private: (),
}
impl UpdateJobExecution {
pub fn builder() -> crate::input::update_job_execution_input::Builder {
crate::input::update_job_execution_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateJobExecution {
type Output = std::result::Result<
crate::output::UpdateJobExecutionOutput,
crate::error::UpdateJobExecutionError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_update_job_execution_error(response)
} else {
crate::operation_deser::parse_update_job_execution_response(response)
}
}
}
pub mod customize;