/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The custom parameters to be used when the target is an Batch
* job.See Also:
AWS
* API Reference
The ARN or name of the job definition to use if the event target is an Batch * job. This job definition must already exist.
*/ inline const Aws::String& GetJobDefinition() const{ return m_jobDefinition; } /** *The ARN or name of the job definition to use if the event target is an Batch * job. This job definition must already exist.
*/ inline bool JobDefinitionHasBeenSet() const { return m_jobDefinitionHasBeenSet; } /** *The ARN or name of the job definition to use if the event target is an Batch * job. This job definition must already exist.
*/ inline void SetJobDefinition(const Aws::String& value) { m_jobDefinitionHasBeenSet = true; m_jobDefinition = value; } /** *The ARN or name of the job definition to use if the event target is an Batch * job. This job definition must already exist.
*/ inline void SetJobDefinition(Aws::String&& value) { m_jobDefinitionHasBeenSet = true; m_jobDefinition = std::move(value); } /** *The ARN or name of the job definition to use if the event target is an Batch * job. This job definition must already exist.
*/ inline void SetJobDefinition(const char* value) { m_jobDefinitionHasBeenSet = true; m_jobDefinition.assign(value); } /** *The ARN or name of the job definition to use if the event target is an Batch * job. This job definition must already exist.
*/ inline BatchParameters& WithJobDefinition(const Aws::String& value) { SetJobDefinition(value); return *this;} /** *The ARN or name of the job definition to use if the event target is an Batch * job. This job definition must already exist.
*/ inline BatchParameters& WithJobDefinition(Aws::String&& value) { SetJobDefinition(std::move(value)); return *this;} /** *The ARN or name of the job definition to use if the event target is an Batch * job. This job definition must already exist.
*/ inline BatchParameters& WithJobDefinition(const char* value) { SetJobDefinition(value); return *this;} /** *The name to use for this execution of the job, if the target is an Batch * job.
*/ inline const Aws::String& GetJobName() const{ return m_jobName; } /** *The name to use for this execution of the job, if the target is an Batch * job.
*/ inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; } /** *The name to use for this execution of the job, if the target is an Batch * job.
*/ inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; } /** *The name to use for this execution of the job, if the target is an Batch * job.
*/ inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); } /** *The name to use for this execution of the job, if the target is an Batch * job.
*/ inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); } /** *The name to use for this execution of the job, if the target is an Batch * job.
*/ inline BatchParameters& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} /** *The name to use for this execution of the job, if the target is an Batch * job.
*/ inline BatchParameters& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} /** *The name to use for this execution of the job, if the target is an Batch * job.
*/ inline BatchParameters& WithJobName(const char* value) { SetJobName(value); return *this;} /** *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.
*/ inline const BatchArrayProperties& GetArrayProperties() const{ return m_arrayProperties; } /** *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.
*/ inline bool ArrayPropertiesHasBeenSet() const { return m_arrayPropertiesHasBeenSet; } /** *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.
*/ inline void SetArrayProperties(const BatchArrayProperties& value) { m_arrayPropertiesHasBeenSet = true; m_arrayProperties = value; } /** *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.
*/ inline void SetArrayProperties(BatchArrayProperties&& value) { m_arrayPropertiesHasBeenSet = true; m_arrayProperties = std::move(value); } /** *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.
*/ inline BatchParameters& WithArrayProperties(const BatchArrayProperties& value) { SetArrayProperties(value); return *this;} /** *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.
*/ inline BatchParameters& WithArrayProperties(BatchArrayProperties&& value) { SetArrayProperties(std::move(value)); return *this;} /** *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.
*/ inline const BatchRetryStrategy& GetRetryStrategy() const{ return m_retryStrategy; } /** *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.
*/ inline bool RetryStrategyHasBeenSet() const { return m_retryStrategyHasBeenSet; } /** *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.
*/ inline void SetRetryStrategy(const BatchRetryStrategy& value) { m_retryStrategyHasBeenSet = true; m_retryStrategy = value; } /** *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.
*/ inline void SetRetryStrategy(BatchRetryStrategy&& value) { m_retryStrategyHasBeenSet = true; m_retryStrategy = std::move(value); } /** *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.
*/ inline BatchParameters& WithRetryStrategy(const BatchRetryStrategy& value) { SetRetryStrategy(value); return *this;} /** *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.
*/ inline BatchParameters& WithRetryStrategy(BatchRetryStrategy&& value) { SetRetryStrategy(std::move(value)); return *this;} private: Aws::String m_jobDefinition; bool m_jobDefinitionHasBeenSet = false; Aws::String m_jobName; bool m_jobNameHasBeenSet = false; BatchArrayProperties m_arrayProperties; bool m_arrayPropertiesHasBeenSet = false; BatchRetryStrategy m_retryStrategy; bool m_retryStrategyHasBeenSet = false; }; } // namespace Model } // namespace EventBridge } // namespace Aws