Struct aws_sdk_eventbridge::types::builders::BatchParametersBuilder
source · #[non_exhaustive]pub struct BatchParametersBuilder { /* private fields */ }Expand description
A builder for BatchParameters.
Implementations§
source§impl BatchParametersBuilder
impl BatchParametersBuilder
sourcepub fn job_definition(self, input: impl Into<String>) -> Self
pub fn job_definition(self, input: impl Into<String>) -> Self
The ARN or name of the job definition to use if the event target is an Batch job. This job definition must already exist.
This field is required.sourcepub fn set_job_definition(self, input: Option<String>) -> Self
pub fn set_job_definition(self, input: Option<String>) -> Self
The ARN or name of the job definition to use if the event target is an Batch job. This job definition must already exist.
sourcepub fn get_job_definition(&self) -> &Option<String>
pub fn get_job_definition(&self) -> &Option<String>
The ARN or name of the job definition to use if the event target is an Batch job. This job definition must already exist.
sourcepub fn job_name(self, input: impl Into<String>) -> Self
pub fn job_name(self, input: impl Into<String>) -> Self
The name to use for this execution of the job, if the target is an Batch job.
This field is required.sourcepub fn set_job_name(self, input: Option<String>) -> Self
pub fn set_job_name(self, input: Option<String>) -> Self
The name to use for this execution of the job, if the target is an Batch job.
sourcepub fn get_job_name(&self) -> &Option<String>
pub fn get_job_name(&self) -> &Option<String>
The name to use for this execution of the job, if the target is an Batch job.
sourcepub fn array_properties(self, input: BatchArrayProperties) -> Self
pub fn array_properties(self, input: BatchArrayProperties) -> Self
The array properties for the submitted job, such as the size of the array. The array size can be between 2 and 10,000. If you specify array properties for a job, it becomes an array job. This parameter is used only if the target is an Batch job.
sourcepub fn set_array_properties(self, input: Option<BatchArrayProperties>) -> Self
pub fn set_array_properties(self, input: Option<BatchArrayProperties>) -> Self
The array properties for the submitted job, such as the size of the array. The array size can be between 2 and 10,000. If you specify array properties for a job, it becomes an array job. This parameter is used only if the target is an Batch job.
sourcepub fn get_array_properties(&self) -> &Option<BatchArrayProperties>
pub fn get_array_properties(&self) -> &Option<BatchArrayProperties>
The array properties for the submitted job, such as the size of the array. The array size can be between 2 and 10,000. If you specify array properties for a job, it becomes an array job. This parameter is used only if the target is an Batch job.
sourcepub fn retry_strategy(self, input: BatchRetryStrategy) -> Self
pub fn retry_strategy(self, input: BatchRetryStrategy) -> Self
The retry strategy to use for failed jobs, if the target is an Batch job. The retry strategy is the number of times to retry the failed job execution. Valid values are 1–10. When you specify a retry strategy here, it overrides the retry strategy defined in the job definition.
sourcepub fn set_retry_strategy(self, input: Option<BatchRetryStrategy>) -> Self
pub fn set_retry_strategy(self, input: Option<BatchRetryStrategy>) -> Self
The retry strategy to use for failed jobs, if the target is an Batch job. The retry strategy is the number of times to retry the failed job execution. Valid values are 1–10. When you specify a retry strategy here, it overrides the retry strategy defined in the job definition.
sourcepub fn get_retry_strategy(&self) -> &Option<BatchRetryStrategy>
pub fn get_retry_strategy(&self) -> &Option<BatchRetryStrategy>
The retry strategy to use for failed jobs, if the target is an Batch job. The retry strategy is the number of times to retry the failed job execution. Valid values are 1–10. When you specify a retry strategy here, it overrides the retry strategy defined in the job definition.
sourcepub fn build(self) -> Result<BatchParameters, BuildError>
pub fn build(self) -> Result<BatchParameters, BuildError>
Consumes the builder and constructs a BatchParameters.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for BatchParametersBuilder
impl Clone for BatchParametersBuilder
source§fn clone(&self) -> BatchParametersBuilder
fn clone(&self) -> BatchParametersBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for BatchParametersBuilder
impl Debug for BatchParametersBuilder
source§impl Default for BatchParametersBuilder
impl Default for BatchParametersBuilder
source§fn default() -> BatchParametersBuilder
fn default() -> BatchParametersBuilder
source§impl PartialEq for BatchParametersBuilder
impl PartialEq for BatchParametersBuilder
source§fn eq(&self, other: &BatchParametersBuilder) -> bool
fn eq(&self, other: &BatchParametersBuilder) -> bool
self and other values to be equal, and is used
by ==.