/*
* 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 omics-2022-11-28.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.Omics.Model
{
///
/// This is the response object from the GetRunTask operation.
///
public partial class GetRunTaskResponse : AmazonWebServiceResponse
{
private int? _cpus;
private DateTime? _creationTime;
private int? _gpus;
private string _logStream;
private int? _memory;
private string _name;
private DateTime? _startTime;
private TaskStatus _status;
private string _statusMessage;
private DateTime? _stopTime;
private string _taskId;
///
/// Gets and sets the property Cpus.
///
/// The task's CPU usage.
///
///
[AWSProperty(Min=1)]
public int Cpus
{
get { return this._cpus.GetValueOrDefault(); }
set { this._cpus = value; }
}
// Check to see if Cpus property is set
internal bool IsSetCpus()
{
return this._cpus.HasValue;
}
///
/// Gets and sets the property CreationTime.
///
/// When the task was created.
///
///
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
///
/// Gets and sets the property Gpus.
///
/// The number of Graphics Processing Units (GPU) specified in the task.
///
///
[AWSProperty(Min=0)]
public int Gpus
{
get { return this._gpus.GetValueOrDefault(); }
set { this._gpus = value; }
}
// Check to see if Gpus property is set
internal bool IsSetGpus()
{
return this._gpus.HasValue;
}
///
/// Gets and sets the property LogStream.
///
/// The task's log stream.
///
///
public string LogStream
{
get { return this._logStream; }
set { this._logStream = value; }
}
// Check to see if LogStream property is set
internal bool IsSetLogStream()
{
return this._logStream != null;
}
///
/// Gets and sets the property Memory.
///
/// The task's memory use in gigabytes.
///
///
[AWSProperty(Min=1)]
public int Memory
{
get { return this._memory.GetValueOrDefault(); }
set { this._memory = value; }
}
// Check to see if Memory property is set
internal bool IsSetMemory()
{
return this._memory.HasValue;
}
///
/// Gets and sets the property Name.
///
/// The task's name.
///
///
[AWSProperty(Min=1, Max=128)]
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 StartTime.
///
/// The task's start time.
///
///
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
///
/// Gets and sets the property Status.
///
/// The task's status.
///
///
[AWSProperty(Min=1, Max=64)]
public TaskStatus 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 StatusMessage.
///
/// The task's status message.
///
///
public string StatusMessage
{
get { return this._statusMessage; }
set { this._statusMessage = value; }
}
// Check to see if StatusMessage property is set
internal bool IsSetStatusMessage()
{
return this._statusMessage != null;
}
///
/// Gets and sets the property StopTime.
///
/// The task's stop time.
///
///
public DateTime StopTime
{
get { return this._stopTime.GetValueOrDefault(); }
set { this._stopTime = value; }
}
// Check to see if StopTime property is set
internal bool IsSetStopTime()
{
return this._stopTime.HasValue;
}
///
/// Gets and sets the property TaskId.
///
/// The task's ID.
///
///
[AWSProperty(Min=1, Max=18)]
public string TaskId
{
get { return this._taskId; }
set { this._taskId = value; }
}
// Check to see if TaskId property is set
internal bool IsSetTaskId()
{
return this._taskId != null;
}
}
}