/*
* 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 AWSMigrationHub-2017-05-31.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.MigrationHub.Model
{
///
/// MigrationTaskSummary includes MigrationTaskName
, ProgressPercent
,
/// ProgressUpdateStream
, Status
, and UpdateDateTime
/// for each task.
///
public partial class MigrationTaskSummary
{
private string _migrationTaskName;
private int? _progressPercent;
private string _progressUpdateStream;
private Status _status;
private string _statusDetail;
private DateTime? _updateDateTime;
///
/// Gets and sets the property MigrationTaskName.
///
/// Unique identifier that references the migration task. Do not store personal data
/// in this field.
///
///
[AWSProperty(Min=1, Max=256)]
public string MigrationTaskName
{
get { return this._migrationTaskName; }
set { this._migrationTaskName = value; }
}
// Check to see if MigrationTaskName property is set
internal bool IsSetMigrationTaskName()
{
return this._migrationTaskName != null;
}
///
/// Gets and sets the property ProgressPercent.
///
/// Indication of the percentage completion of the task.
///
///
[AWSProperty(Min=0, Max=100)]
public int ProgressPercent
{
get { return this._progressPercent.GetValueOrDefault(); }
set { this._progressPercent = value; }
}
// Check to see if ProgressPercent property is set
internal bool IsSetProgressPercent()
{
return this._progressPercent.HasValue;
}
///
/// Gets and sets the property ProgressUpdateStream.
///
/// An AWS resource used for access control. It should uniquely identify the migration
/// tool as it is used for all updates made by the tool.
///
///
[AWSProperty(Min=1, Max=50)]
public string ProgressUpdateStream
{
get { return this._progressUpdateStream; }
set { this._progressUpdateStream = value; }
}
// Check to see if ProgressUpdateStream property is set
internal bool IsSetProgressUpdateStream()
{
return this._progressUpdateStream != null;
}
///
/// Gets and sets the property Status.
///
/// Status of the task.
///
///
public Status 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 StatusDetail.
///
/// Detail information of what is being done within the overall status state.
///
///
[AWSProperty(Min=0, Max=500)]
public string StatusDetail
{
get { return this._statusDetail; }
set { this._statusDetail = value; }
}
// Check to see if StatusDetail property is set
internal bool IsSetStatusDetail()
{
return this._statusDetail != null;
}
///
/// Gets and sets the property UpdateDateTime.
///
/// The timestamp when the task was gathered.
///
///
public DateTime UpdateDateTime
{
get { return this._updateDateTime.GetValueOrDefault(); }
set { this._updateDateTime = value; }
}
// Check to see if UpdateDateTime property is set
internal bool IsSetUpdateDateTime()
{
return this._updateDateTime.HasValue;
}
}
}