/*
 * 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 ec2-2016-11-15.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.EC2.Model
{
    /// 
    /// The information about the AMI store task, including the progress of the task.
    /// 
    public partial class StoreImageTaskResult
    {
        private string _amiId;
        private string _bucket;
        private int? _progressPercentage;
        private string _s3objectKey;
        private string _storeTaskFailureReason;
        private string _storeTaskState;
        private DateTime? _taskStartTime;
        /// 
        /// Gets and sets the property AmiId. 
        /// 
        /// The ID of the AMI that is being stored.
        /// 
        /// 
        public string AmiId
        {
            get { return this._amiId; }
            set { this._amiId = value; }
        }
        // Check to see if AmiId property is set
        internal bool IsSetAmiId()
        {
            return this._amiId != null;
        }
        /// 
        /// Gets and sets the property Bucket. 
        /// 
        /// The name of the Amazon S3 bucket that contains the stored AMI object.
        /// 
        /// 
        public string Bucket
        {
            get { return this._bucket; }
            set { this._bucket = value; }
        }
        // Check to see if Bucket property is set
        internal bool IsSetBucket()
        {
            return this._bucket != null;
        }
        /// 
        /// Gets and sets the property ProgressPercentage. 
        /// 
        /// The progress of the task as a percentage.
        /// 
        /// 
        public int ProgressPercentage
        {
            get { return this._progressPercentage.GetValueOrDefault(); }
            set { this._progressPercentage = value; }
        }
        // Check to see if ProgressPercentage property is set
        internal bool IsSetProgressPercentage()
        {
            return this._progressPercentage.HasValue; 
        }
        /// 
        /// Gets and sets the property S3objectKey. 
        /// 
        /// The name of the stored AMI object in the bucket.
        /// 
        /// 
        public string S3objectKey
        {
            get { return this._s3objectKey; }
            set { this._s3objectKey = value; }
        }
        // Check to see if S3objectKey property is set
        internal bool IsSetS3objectKey()
        {
            return this._s3objectKey != null;
        }
        /// 
        /// Gets and sets the property StoreTaskFailureReason. 
        /// 
        /// If the tasks fails, the reason for the failure is returned. If the task succeeds,
        /// null is returned.
        /// 
        /// 
        public string StoreTaskFailureReason
        {
            get { return this._storeTaskFailureReason; }
            set { this._storeTaskFailureReason = value; }
        }
        // Check to see if StoreTaskFailureReason property is set
        internal bool IsSetStoreTaskFailureReason()
        {
            return this._storeTaskFailureReason != null;
        }
        /// 
        /// Gets and sets the property StoreTaskState. 
        /// 
        /// The state of the store task (InProgress, Completed, or Failed).
        /// 
        /// 
        public string StoreTaskState
        {
            get { return this._storeTaskState; }
            set { this._storeTaskState = value; }
        }
        // Check to see if StoreTaskState property is set
        internal bool IsSetStoreTaskState()
        {
            return this._storeTaskState != null;
        }
        /// 
        /// Gets and sets the property TaskStartTime. 
        /// 
        /// The time the task started.
        /// 
        /// 
        public DateTime TaskStartTime
        {
            get { return this._taskStartTime.GetValueOrDefault(); }
            set { this._taskStartTime = value; }
        }
        // Check to see if TaskStartTime property is set
        internal bool IsSetTaskStartTime()
        {
            return this._taskStartTime.HasValue; 
        }
    }
}