/*
* 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 emr-serverless-2021-07-13.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.EMRServerless.Model
{
///
/// Container for the parameters to the StartJobRun operation.
/// Starts a job run.
///
public partial class StartJobRunRequest : AmazonEMRServerlessRequest
{
private string _applicationId;
private string _clientToken;
private ConfigurationOverrides _configurationOverrides;
private string _executionRoleArn;
private long? _executionTimeoutMinutes;
private JobDriver _jobDriver;
private string _name;
private Dictionary _tags = new Dictionary();
///
/// Gets and sets the property ApplicationId.
///
/// The ID of the application on which to run the job.
///
///
[AWSProperty(Required=true, Min=1, Max=64)]
public string ApplicationId
{
get { return this._applicationId; }
set { this._applicationId = value; }
}
// Check to see if ApplicationId property is set
internal bool IsSetApplicationId()
{
return this._applicationId != null;
}
///
/// Gets and sets the property ClientToken.
///
/// The client idempotency token of the job run to start. Its value must be unique for
/// each request.
///
///
[AWSProperty(Min=1, Max=64)]
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
///
/// Gets and sets the property ConfigurationOverrides.
///
/// The configuration overrides for the job run.
///
///
public ConfigurationOverrides ConfigurationOverrides
{
get { return this._configurationOverrides; }
set { this._configurationOverrides = value; }
}
// Check to see if ConfigurationOverrides property is set
internal bool IsSetConfigurationOverrides()
{
return this._configurationOverrides != null;
}
///
/// Gets and sets the property ExecutionRoleArn.
///
/// The execution role ARN for the job run.
///
///
[AWSProperty(Required=true, Min=20, Max=2048)]
public string ExecutionRoleArn
{
get { return this._executionRoleArn; }
set { this._executionRoleArn = value; }
}
// Check to see if ExecutionRoleArn property is set
internal bool IsSetExecutionRoleArn()
{
return this._executionRoleArn != null;
}
///
/// Gets and sets the property ExecutionTimeoutMinutes.
///
/// The maximum duration for the job run to run. If the job run runs beyond this duration,
/// it will be automatically cancelled.
///
///
[AWSProperty(Min=0, Max=1000000)]
public long ExecutionTimeoutMinutes
{
get { return this._executionTimeoutMinutes.GetValueOrDefault(); }
set { this._executionTimeoutMinutes = value; }
}
// Check to see if ExecutionTimeoutMinutes property is set
internal bool IsSetExecutionTimeoutMinutes()
{
return this._executionTimeoutMinutes.HasValue;
}
///
/// Gets and sets the property JobDriver.
///
/// The job driver for the job run.
///
///
public JobDriver JobDriver
{
get { return this._jobDriver; }
set { this._jobDriver = value; }
}
// Check to see if JobDriver property is set
internal bool IsSetJobDriver()
{
return this._jobDriver != null;
}
///
/// Gets and sets the property Name.
///
/// The optional job run name. This doesn't have to be unique.
///
///
[AWSProperty(Min=1, Max=256)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property Tags.
///
/// The tags assigned to the job run.
///
///
[AWSProperty(Min=0, Max=200)]
public Dictionary Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}