/*
* 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
{
///
/// This is the response object from the GetWorkflowStep operation.
///
public partial class GetWorkflowStepResponse : AmazonWebServiceResponse
{
private DateTime? _creationTime;
private string _description;
private DateTime? _endTime;
private DateTime? _lastStartTime;
private string _name;
private List _next = new List();
private int? _noOfSrvCompleted;
private int? _noOfSrvFailed;
private List _outputs = new List();
private Owner _owner;
private List _previous = new List();
private string _scriptOutputLocation;
private StepStatus _status;
private string _statusMessage;
private StepActionType _stepActionType;
private string _stepGroupId;
private string _stepId;
private List _stepTarget = new List();
private int? _totalNoOfSrv;
private string _workflowId;
private WorkflowStepAutomationConfiguration _workflowStepAutomationConfiguration;
///
/// Gets and sets the property CreationTime.
///
/// The time at which the step was created.
///
///
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
///
/// 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 EndTime.
///
/// The time at which the step ended.
///
///
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set { this._endTime = value; }
}
// Check to see if EndTime property is set
internal bool IsSetEndTime()
{
return this._endTime.HasValue;
}
///
/// Gets and sets the property LastStartTime.
///
/// The time at which the workflow was last started.
///
///
public DateTime LastStartTime
{
get { return this._lastStartTime.GetValueOrDefault(); }
set { this._lastStartTime = value; }
}
// Check to see if LastStartTime property is set
internal bool IsSetLastStartTime()
{
return this._lastStartTime.HasValue;
}
///
/// 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 Outputs.
///
/// The outputs of the step.
///
///
[AWSProperty(Min=0, Max=5)]
public List Outputs
{
get { return this._outputs; }
set { this._outputs = value; }
}
// Check to see if Outputs property is set
internal bool IsSetOutputs()
{
return this._outputs != null && this._outputs.Count > 0;
}
///
/// 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 ScriptOutputLocation.
///
/// The output location of the script.
///
///
public string ScriptOutputLocation
{
get { return this._scriptOutputLocation; }
set { this._scriptOutputLocation = value; }
}
// Check to see if ScriptOutputLocation property is set
internal bool IsSetScriptOutputLocation()
{
return this._scriptOutputLocation != 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 StepGroupId.
///
/// The ID of the step group.
///
///
public string StepGroupId
{
get { return this._stepGroupId; }
set { this._stepGroupId = value; }
}
// Check to see if StepGroupId property is set
internal bool IsSetStepGroupId()
{
return this._stepGroupId != 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 StepTarget.
///
/// The servers on which a step will be run.
///
///
public List StepTarget
{
get { return this._stepTarget; }
set { this._stepTarget = value; }
}
// Check to see if StepTarget property is set
internal bool IsSetStepTarget()
{
return this._stepTarget != null && this._stepTarget.Count > 0;
}
///
/// 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;
}
///
/// Gets and sets the property WorkflowId.
///
/// The ID of the migration workflow.
///
///
public string WorkflowId
{
get { return this._workflowId; }
set { this._workflowId = value; }
}
// Check to see if WorkflowId property is set
internal bool IsSetWorkflowId()
{
return this._workflowId != null;
}
///
/// Gets and sets the property WorkflowStepAutomationConfiguration.
///
/// The custom script to run tests on source or target environments.
///
///
public WorkflowStepAutomationConfiguration WorkflowStepAutomationConfiguration
{
get { return this._workflowStepAutomationConfiguration; }
set { this._workflowStepAutomationConfiguration = value; }
}
// Check to see if WorkflowStepAutomationConfiguration property is set
internal bool IsSetWorkflowStepAutomationConfiguration()
{
return this._workflowStepAutomationConfiguration != null;
}
}
}