/*
 * 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 a job attempt.
    /// 
    public partial class AttemptDetail
    {
        private AttemptContainerDetail _container;
        private long? _startedAt;
        private string _statusReason;
        private long? _stoppedAt;
        /// 
        /// Gets and sets the property Container. 
        /// 
        /// The details for the container in this job attempt.
        /// 
        /// 
        public AttemptContainerDetail 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 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 (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; 
        }
    }
}