/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvents.Model
{
///
/// The custom parameters to be used when the target is an Batch job.
///
public partial class BatchParameters
{
private BatchArrayProperties _arrayProperties;
private string _jobDefinition;
private string _jobName;
private BatchRetryStrategy _retryStrategy;
///
/// Gets and sets the property 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.
///
///
public BatchArrayProperties ArrayProperties
{
get { return this._arrayProperties; }
set { this._arrayProperties = value; }
}
// Check to see if ArrayProperties property is set
internal bool IsSetArrayProperties()
{
return this._arrayProperties != null;
}
///
/// Gets and sets the property 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.
///
///
[AWSProperty(Required=true)]
public string JobDefinition
{
get { return this._jobDefinition; }
set { this._jobDefinition = value; }
}
// Check to see if JobDefinition property is set
internal bool IsSetJobDefinition()
{
return this._jobDefinition != null;
}
///
/// Gets and sets the property JobName.
///
/// The name to use for this execution of the job, if the target is an Batch job.
///
///
[AWSProperty(Required=true)]
public string JobName
{
get { return this._jobName; }
set { this._jobName = value; }
}
// Check to see if JobName property is set
internal bool IsSetJobName()
{
return this._jobName != null;
}
///
/// Gets and sets the property 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.
///
///
public BatchRetryStrategy RetryStrategy
{
get { return this._retryStrategy; }
set { this._retryStrategy = value; }
}
// Check to see if RetryStrategy property is set
internal bool IsSetRetryStrategy()
{
return this._retryStrategy != null;
}
}
}