Struct aws_sdk_batch::input::terminate_job_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for TerminateJobInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn job_id(self, input: impl Into<String>) -> Self
pub fn job_id(self, input: impl Into<String>) -> Self
The Batch job ID of the job to terminate.
sourcepub fn set_job_id(self, input: Option<String>) -> Self
pub fn set_job_id(self, input: Option<String>) -> Self
The Batch job ID of the job to terminate.
sourcepub fn reason(self, input: impl Into<String>) -> Self
pub fn reason(self, input: impl Into<String>) -> Self
A message to attach to the job that explains the reason for canceling it. This message is returned by future DescribeJobs
operations on the job. This message is also recorded in the Batch activity logs.
sourcepub fn set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
A message to attach to the job that explains the reason for canceling it. This message is returned by future DescribeJobs
operations on the job. This message is also recorded in the Batch activity logs.
sourcepub fn build(self) -> Result<TerminateJobInput, BuildError>
pub fn build(self) -> Result<TerminateJobInput, BuildError>
Consumes the builder and constructs a TerminateJobInput
.