/*
* 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
{
///
/// Describes a bundle task.
///
public partial class BundleTask
{
private string _bundleId;
private BundleTaskError _bundleTaskError;
private string _instanceId;
private string _progress;
private DateTime? _startTime;
private BundleTaskState _state;
private Storage _storage;
private DateTime? _updateTime;
///
/// Gets and sets the property BundleId.
///
/// The ID of the bundle task.
///
///
public string BundleId
{
get { return this._bundleId; }
set { this._bundleId = value; }
}
// Check to see if BundleId property is set
internal bool IsSetBundleId()
{
return this._bundleId != null;
}
///
/// Gets and sets the property BundleTaskError.
///
/// If the task fails, a description of the error.
///
///
public BundleTaskError BundleTaskError
{
get { return this._bundleTaskError; }
set { this._bundleTaskError = value; }
}
// Check to see if BundleTaskError property is set
internal bool IsSetBundleTaskError()
{
return this._bundleTaskError != null;
}
///
/// Gets and sets the property InstanceId.
///
/// The ID of the instance associated with this bundle task.
///
///
public string InstanceId
{
get { return this._instanceId; }
set { this._instanceId = value; }
}
// Check to see if InstanceId property is set
internal bool IsSetInstanceId()
{
return this._instanceId != null;
}
///
/// Gets and sets the property Progress.
///
/// The level of task completion, as a percent (for example, 20%).
///
///
public string Progress
{
get { return this._progress; }
set { this._progress = value; }
}
// Check to see if Progress property is set
internal bool IsSetProgress()
{
return this._progress != null;
}
///
/// Gets and sets the property StartTime.
///
/// The time this task started.
///
///
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 State.
///
/// The state of the task.
///
///
public BundleTaskState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
///
/// Gets and sets the property Storage.
///
/// The Amazon S3 storage locations.
///
///
public Storage Storage
{
get { return this._storage; }
set { this._storage = value; }
}
// Check to see if Storage property is set
internal bool IsSetStorage()
{
return this._storage != null;
}
///
/// Gets and sets the property UpdateTime.
///
/// The time of the most recent update for the task.
///
///
public DateTime UpdateTime
{
get { return this._updateTime.GetValueOrDefault(); }
set { this._updateTime = value; }
}
// Check to see if UpdateTime property is set
internal bool IsSetUpdateTime()
{
return this._updateTime.HasValue;
}
}
}