/* * 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 { /// /// The summary of attributes associated with a job run. /// public partial class JobRunSummary { private string _applicationId; private string _arn; private DateTime? _createdAt; private string _createdBy; private string _executionRole; private string _id; private string _name; private string _releaseLabel; private JobRunState _state; private string _stateDetails; private string _type; private DateTime? _updatedAt; /// /// Gets and sets the property ApplicationId. /// /// The ID of the application the job is running on. /// /// [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 Arn. /// /// The ARN of the job run. /// /// [AWSProperty(Required=true, 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 CreatedAt. /// /// The date and time when the job run was created. /// /// [AWSProperty(Required=true)] 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(Required=true, 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 ExecutionRole. /// /// The execution role ARN of the job run. /// /// [AWSProperty(Required=true, Min=20, Max=2048)] public string ExecutionRole { get { return this._executionRole; } set { this._executionRole = value; } } // Check to see if ExecutionRole property is set internal bool IsSetExecutionRole() { return this._executionRole != null; } /// /// Gets and sets the property Id. /// /// The ID of the job run. /// /// [AWSProperty(Required=true, 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 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 ReleaseLabel. /// /// The Amazon EMR release associated with the application your job is running on. /// /// [AWSProperty(Required=true, 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 State. /// /// The state of the job run. /// /// [AWSProperty(Required=true)] 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. /// /// The state details of the job run. /// /// [AWSProperty(Required=true, 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 Type. /// /// The type of job run, such as Spark or Hive. /// /// public string Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// /// Gets and sets the property UpdatedAt. /// /// The date and time when the job run was last updated. /// /// [AWSProperty(Required=true)] public DateTime UpdatedAt { get { return this._updatedAt.GetValueOrDefault(); } set { this._updatedAt = value; } } // Check to see if UpdatedAt property is set internal bool IsSetUpdatedAt() { return this._updatedAt.HasValue; } } }