/* * 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 batch-2016-08-10.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.Batch.Model { /// /// An object that represents summary details of a job. /// public partial class JobSummary { private ArrayPropertiesSummary _arrayProperties; private ContainerSummary _container; private long? _createdAt; private string _jobArn; private string _jobDefinition; private string _jobId; private string _jobName; private NodePropertiesSummary _nodeProperties; private long? _startedAt; private JobStatus _status; private string _statusReason; private long? _stoppedAt; /// /// Gets and sets the property ArrayProperties. /// /// The array properties of the job, if it's an array job. /// /// public ArrayPropertiesSummary 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 Container. /// /// An object that represents the details of the container that's associated with the /// job. /// /// public ContainerSummary Container { get { return this._container; } set { this._container = value; } } // Check to see if Container property is set internal bool IsSetContainer() { return this._container != null; } /// /// Gets and sets the property CreatedAt. /// /// The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs /// and parent array jobs, this is when the job entered the SUBMITTED state /// (at the time SubmitJob was called). For array child jobs, this is when the /// child job was spawned by its parent and entered the PENDING state. /// /// public long 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 JobArn. /// /// The Amazon Resource Name (ARN) of the job. /// /// public string JobArn { get { return this._jobArn; } set { this._jobArn = value; } } // Check to see if JobArn property is set internal bool IsSetJobArn() { return this._jobArn != null; } /// /// Gets and sets the property JobDefinition. /// /// The Amazon Resource Name (ARN) of the job definition. /// /// 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 JobId. /// /// The job ID. /// /// [AWSProperty(Required=true)] public string JobId { get { return this._jobId; } set { this._jobId = value; } } // Check to see if JobId property is set internal bool IsSetJobId() { return this._jobId != null; } /// /// Gets and sets the property JobName. /// /// The job name. /// /// [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 NodeProperties. /// /// The node properties for a single node in a job summary list. /// /// /// /// This isn't applicable to jobs that are running on Fargate resources. /// /// /// public NodePropertiesSummary NodeProperties { get { return this._nodeProperties; } set { this._nodeProperties = value; } } // Check to see if NodeProperties property is set internal bool IsSetNodeProperties() { return this._nodeProperties != null; } /// /// Gets and sets the property StartedAt. /// /// The Unix timestamp for when the job was started. More specifically, it's when the /// job transitioned from the STARTING state to the RUNNING /// state. /// /// public long StartedAt { get { return this._startedAt.GetValueOrDefault(); } set { this._startedAt = value; } } // Check to see if StartedAt property is set internal bool IsSetStartedAt() { return this._startedAt.HasValue; } /// /// Gets and sets the property Status. /// /// The current status for the job. /// /// public JobStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property StatusReason. /// /// A short, human-readable string to provide more details for the current status of the /// job. /// /// public string StatusReason { get { return this._statusReason; } set { this._statusReason = value; } } // Check to see if StatusReason property is set internal bool IsSetStatusReason() { return this._statusReason != null; } /// /// Gets and sets the property StoppedAt. /// /// The Unix timestamp for when the job was stopped. More specifically, it's when the /// job transitioned from the RUNNING state to a terminal state, such as /// SUCCEEDED or FAILED. /// /// public long StoppedAt { get { return this._stoppedAt.GetValueOrDefault(); } set { this._stoppedAt = value; } } // Check to see if StoppedAt property is set internal bool IsSetStoppedAt() { return this._stoppedAt.HasValue; } } }