#[non_exhaustive]pub struct JobStateTimeLimitActionBuilder { /* private fields */ }
Expand description
A builder for JobStateTimeLimitAction
.
Implementations§
source§impl JobStateTimeLimitActionBuilder
impl JobStateTimeLimitActionBuilder
sourcepub fn reason(self, input: impl Into<String>) -> Self
pub fn reason(self, input: impl Into<String>) -> Self
The reason to log for the action being taken.
This field is required.sourcepub fn set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
The reason to log for the action being taken.
sourcepub fn get_reason(&self) -> &Option<String>
pub fn get_reason(&self) -> &Option<String>
The reason to log for the action being taken.
sourcepub fn state(self, input: JobStateTimeLimitActionsState) -> Self
pub fn state(self, input: JobStateTimeLimitActionsState) -> Self
The state of the job needed to trigger the action. The only supported value is "RUNNABLE
".
sourcepub fn set_state(self, input: Option<JobStateTimeLimitActionsState>) -> Self
pub fn set_state(self, input: Option<JobStateTimeLimitActionsState>) -> Self
The state of the job needed to trigger the action. The only supported value is "RUNNABLE
".
sourcepub fn get_state(&self) -> &Option<JobStateTimeLimitActionsState>
pub fn get_state(&self) -> &Option<JobStateTimeLimitActionsState>
The state of the job needed to trigger the action. The only supported value is "RUNNABLE
".
sourcepub fn max_time_seconds(self, input: i32) -> Self
pub fn max_time_seconds(self, input: i32) -> Self
The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).
This field is required.sourcepub fn set_max_time_seconds(self, input: Option<i32>) -> Self
pub fn set_max_time_seconds(self, input: Option<i32>) -> Self
The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).
sourcepub fn get_max_time_seconds(&self) -> &Option<i32>
pub fn get_max_time_seconds(&self) -> &Option<i32>
The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).
sourcepub fn action(self, input: JobStateTimeLimitActionsAction) -> Self
pub fn action(self, input: JobStateTimeLimitActionsAction) -> Self
The action to take when a job is at the head of the job queue in the specified state for the specified period of time. The only supported value is "CANCEL
", which will cancel the job.
sourcepub fn set_action(self, input: Option<JobStateTimeLimitActionsAction>) -> Self
pub fn set_action(self, input: Option<JobStateTimeLimitActionsAction>) -> Self
The action to take when a job is at the head of the job queue in the specified state for the specified period of time. The only supported value is "CANCEL
", which will cancel the job.
sourcepub fn get_action(&self) -> &Option<JobStateTimeLimitActionsAction>
pub fn get_action(&self) -> &Option<JobStateTimeLimitActionsAction>
The action to take when a job is at the head of the job queue in the specified state for the specified period of time. The only supported value is "CANCEL
", which will cancel the job.
sourcepub fn build(self) -> JobStateTimeLimitAction
pub fn build(self) -> JobStateTimeLimitAction
Consumes the builder and constructs a JobStateTimeLimitAction
.
Trait Implementations§
source§impl Clone for JobStateTimeLimitActionBuilder
impl Clone for JobStateTimeLimitActionBuilder
source§fn clone(&self) -> JobStateTimeLimitActionBuilder
fn clone(&self) -> JobStateTimeLimitActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for JobStateTimeLimitActionBuilder
impl Default for JobStateTimeLimitActionBuilder
source§fn default() -> JobStateTimeLimitActionBuilder
fn default() -> JobStateTimeLimitActionBuilder
source§impl PartialEq for JobStateTimeLimitActionBuilder
impl PartialEq for JobStateTimeLimitActionBuilder
source§fn eq(&self, other: &JobStateTimeLimitActionBuilder) -> bool
fn eq(&self, other: &JobStateTimeLimitActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.