/*
* 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-containers-2020-10-01.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.EMRContainers.Model
{
///
/// This entity describes a job run. A job run is a unit of work, such as a Spark jar,
/// PySpark script, or SparkSQL query, that you submit to Amazon EMR on EKS.
///
public partial class JobRun
{
private string _arn;
private string _clientToken;
private ConfigurationOverrides _configurationOverrides;
private DateTime? _createdAt;
private string _createdBy;
private string _executionRoleArn;
private FailureReason _failureReason;
private DateTime? _finishedAt;
private string _id;
private JobDriver _jobDriver;
private string _name;
private string _releaseLabel;
private RetryPolicyConfiguration _retryPolicyConfiguration;
private RetryPolicyExecution _retryPolicyExecution;
private JobRunState _state;
private string _stateDetails;
private Dictionary _tags = new Dictionary();
private string _virtualClusterId;
///
/// Gets and sets the property Arn.
///
/// The ARN of job run.
///
///
[AWSProperty(Min=60, Max=1024)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
///
/// Gets and sets the property ClientToken.
///
/// The client token used to start a job run.
///
///
[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 settings that are used to override default configuration.
///
///
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 CreatedAt.
///
/// The date and time when the job run was created.
///
///
public DateTime CreatedAt
{
get { return this._createdAt.GetValueOrDefault(); }
set { this._createdAt = value; }
}
// Check to see if CreatedAt property is set
internal bool IsSetCreatedAt()
{
return this._createdAt.HasValue;
}
///
/// Gets and sets the property CreatedBy.
///
/// The user who created the job run.
///
///
[AWSProperty(Min=20, Max=2048)]
public string CreatedBy
{
get { return this._createdBy; }
set { this._createdBy = value; }
}
// Check to see if CreatedBy property is set
internal bool IsSetCreatedBy()
{
return this._createdBy != null;
}
///
/// Gets and sets the property ExecutionRoleArn.
///
/// The execution role ARN of the job run.
///
///
[AWSProperty(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 FailureReason.
///
/// The reasons why the job run has failed.
///
///
public FailureReason FailureReason
{
get { return this._failureReason; }
set { this._failureReason = value; }
}
// Check to see if FailureReason property is set
internal bool IsSetFailureReason()
{
return this._failureReason != null;
}
///
/// Gets and sets the property FinishedAt.
///
/// The date and time when the job run has finished.
///
///
public DateTime FinishedAt
{
get { return this._finishedAt.GetValueOrDefault(); }
set { this._finishedAt = value; }
}
// Check to see if FinishedAt property is set
internal bool IsSetFinishedAt()
{
return this._finishedAt.HasValue;
}
///
/// Gets and sets the property Id.
///
/// The ID of the job run.
///
///
[AWSProperty(Min=1, Max=64)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property JobDriver.
///
/// Parameters of 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 name of the job run.
///
///
[AWSProperty(Min=1, Max=64)]
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 ReleaseLabel.
///
/// The release version of Amazon EMR.
///
///
[AWSProperty(Min=1, Max=64)]
public string ReleaseLabel
{
get { return this._releaseLabel; }
set { this._releaseLabel = value; }
}
// Check to see if ReleaseLabel property is set
internal bool IsSetReleaseLabel()
{
return this._releaseLabel != null;
}
///
/// Gets and sets the property RetryPolicyConfiguration.
///
/// The configuration of the retry policy that the job runs on.
///
///
public RetryPolicyConfiguration RetryPolicyConfiguration
{
get { return this._retryPolicyConfiguration; }
set { this._retryPolicyConfiguration = value; }
}
// Check to see if RetryPolicyConfiguration property is set
internal bool IsSetRetryPolicyConfiguration()
{
return this._retryPolicyConfiguration != null;
}
///
/// Gets and sets the property RetryPolicyExecution.
///
/// The current status of the retry policy executed on the job.
///
///
public RetryPolicyExecution RetryPolicyExecution
{
get { return this._retryPolicyExecution; }
set { this._retryPolicyExecution = value; }
}
// Check to see if RetryPolicyExecution property is set
internal bool IsSetRetryPolicyExecution()
{
return this._retryPolicyExecution != null;
}
///
/// Gets and sets the property State.
///
/// The state of the job run.
///
///
public JobRunState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
///
/// Gets and sets the property StateDetails.
///
/// Additional details of the job run state.
///
///
[AWSProperty(Min=1, Max=256)]
public string StateDetails
{
get { return this._stateDetails; }
set { this._stateDetails = value; }
}
// Check to see if StateDetails property is set
internal bool IsSetStateDetails()
{
return this._stateDetails != null;
}
///
/// Gets and sets the property Tags.
///
/// The assigned tags of the job run.
///
///
[AWSProperty(Min=0, Max=50)]
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;
}
///
/// Gets and sets the property VirtualClusterId.
///
/// The ID of the job run's virtual cluster.
///
///
[AWSProperty(Min=1, Max=64)]
public string VirtualClusterId
{
get { return this._virtualClusterId; }
set { this._virtualClusterId = value; }
}
// Check to see if VirtualClusterId property is set
internal bool IsSetVirtualClusterId()
{
return this._virtualClusterId != null;
}
}
}