/*
* 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 the details of a job attempt for a job attempt by an Amazon
/// EKS container.
///
public partial class EksAttemptDetail
{
private List _containers = new List();
private string _nodeName;
private string _podName;
private long? _startedAt;
private string _statusReason;
private long? _stoppedAt;
///
/// Gets and sets the property Containers.
///
/// The details for the final status of the containers for this job attempt.
///
///
public List Containers
{
get { return this._containers; }
set { this._containers = value; }
}
// Check to see if Containers property is set
internal bool IsSetContainers()
{
return this._containers != null && this._containers.Count > 0;
}
///
/// Gets and sets the property NodeName.
///
/// The name of the node for this job attempt.
///
///
public string NodeName
{
get { return this._nodeName; }
set { this._nodeName = value; }
}
// Check to see if NodeName property is set
internal bool IsSetNodeName()
{
return this._nodeName != null;
}
///
/// Gets and sets the property PodName.
///
/// The name of the pod for this job attempt.
///
///
public string PodName
{
get { return this._podName; }
set { this._podName = value; }
}
// Check to see if PodName property is set
internal bool IsSetPodName()
{
return this._podName != null;
}
///
/// Gets and sets the property StartedAt.
///
/// The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt
/// 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 StatusReason.
///
/// A short, human-readable string to provide additional details for the current status
/// of the job attempt.
///
///
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 (in milliseconds) for when the attempt was stopped. This happens
/// when the attempt 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;
}
}
}