/*
* 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 migrationhuborchestrator-2021-08-28.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.MigrationHubOrchestrator.Model
{
///
/// The summary of the step in a migration workflow.
///
public partial class WorkflowStepSummary
{
private string _description;
private string _name;
private List _next = new List();
private int? _noOfSrvCompleted;
private int? _noOfSrvFailed;
private Owner _owner;
private List _previous = new List();
private string _scriptLocation;
private StepStatus _status;
private string _statusMessage;
private StepActionType _stepActionType;
private string _stepId;
private int? _totalNoOfSrv;
///
/// Gets and sets the property Description.
///
/// The description of the step.
///
///
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the step.
///
///
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property Next.
///
/// The next step.
///
///
public List Next
{
get { return this._next; }
set { this._next = value; }
}
// Check to see if Next property is set
internal bool IsSetNext()
{
return this._next != null && this._next.Count > 0;
}
///
/// Gets and sets the property NoOfSrvCompleted.
///
/// The number of servers that have been migrated.
///
///
public int NoOfSrvCompleted
{
get { return this._noOfSrvCompleted.GetValueOrDefault(); }
set { this._noOfSrvCompleted = value; }
}
// Check to see if NoOfSrvCompleted property is set
internal bool IsSetNoOfSrvCompleted()
{
return this._noOfSrvCompleted.HasValue;
}
///
/// Gets and sets the property NoOfSrvFailed.
///
/// The number of servers that have failed to migrate.
///
///
public int NoOfSrvFailed
{
get { return this._noOfSrvFailed.GetValueOrDefault(); }
set { this._noOfSrvFailed = value; }
}
// Check to see if NoOfSrvFailed property is set
internal bool IsSetNoOfSrvFailed()
{
return this._noOfSrvFailed.HasValue;
}
///
/// Gets and sets the property Owner.
///
/// The owner of the step.
///
///
public Owner Owner
{
get { return this._owner; }
set { this._owner = value; }
}
// Check to see if Owner property is set
internal bool IsSetOwner()
{
return this._owner != null;
}
///
/// Gets and sets the property Previous.
///
/// The previous step.
///
///
public List Previous
{
get { return this._previous; }
set { this._previous = value; }
}
// Check to see if Previous property is set
internal bool IsSetPrevious()
{
return this._previous != null && this._previous.Count > 0;
}
///
/// Gets and sets the property ScriptLocation.
///
/// The location of the script.
///
///
public string ScriptLocation
{
get { return this._scriptLocation; }
set { this._scriptLocation = value; }
}
// Check to see if ScriptLocation property is set
internal bool IsSetScriptLocation()
{
return this._scriptLocation != null;
}
///
/// Gets and sets the property Status.
///
/// The status of the step.
///
///
public StepStatus 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 StatusMessage.
///
/// The status message of the migration workflow.
///
///
public string StatusMessage
{
get { return this._statusMessage; }
set { this._statusMessage = value; }
}
// Check to see if StatusMessage property is set
internal bool IsSetStatusMessage()
{
return this._statusMessage != null;
}
///
/// Gets and sets the property StepActionType.
///
/// The action type of the step. You must run and update the status of a manual step for
/// the workflow to continue after the completion of the step.
///
///
public StepActionType StepActionType
{
get { return this._stepActionType; }
set { this._stepActionType = value; }
}
// Check to see if StepActionType property is set
internal bool IsSetStepActionType()
{
return this._stepActionType != null;
}
///
/// Gets and sets the property StepId.
///
/// The ID of the step.
///
///
public string StepId
{
get { return this._stepId; }
set { this._stepId = value; }
}
// Check to see if StepId property is set
internal bool IsSetStepId()
{
return this._stepId != null;
}
///
/// Gets and sets the property TotalNoOfSrv.
///
/// The total number of servers that have been migrated.
///
///
public int TotalNoOfSrv
{
get { return this._totalNoOfSrv.GetValueOrDefault(); }
set { this._totalNoOfSrv = value; }
}
// Check to see if TotalNoOfSrv property is set
internal bool IsSetTotalNoOfSrv()
{
return this._totalNoOfSrv.HasValue;
}
}
}