/* * 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 glue-2017-03-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.Glue.Model { /// /// A workflow run is an execution of a workflow providing all the runtime information. /// public partial class WorkflowRun { private DateTime? _completedOn; private string _errorMessage; private WorkflowGraph _graph; private string _name; private string _previousRunId; private DateTime? _startedOn; private StartingEventBatchCondition _startingEventBatchCondition; private WorkflowRunStatistics _statistics; private WorkflowRunStatus _status; private string _workflowRunId; private Dictionary _workflowRunProperties = new Dictionary(); /// /// Gets and sets the property CompletedOn. /// /// The date and time when the workflow run completed. /// /// public DateTime CompletedOn { get { return this._completedOn.GetValueOrDefault(); } set { this._completedOn = value; } } // Check to see if CompletedOn property is set internal bool IsSetCompletedOn() { return this._completedOn.HasValue; } /// /// Gets and sets the property ErrorMessage. /// /// This error message describes any error that may have occurred in starting the workflow /// run. Currently the only error message is "Concurrent runs exceeded for workflow: foo." /// /// public string ErrorMessage { get { return this._errorMessage; } set { this._errorMessage = value; } } // Check to see if ErrorMessage property is set internal bool IsSetErrorMessage() { return this._errorMessage != null; } /// /// Gets and sets the property Graph. /// /// The graph representing all the Glue components that belong to the workflow as nodes /// and directed connections between them as edges. /// /// public WorkflowGraph Graph { get { return this._graph; } set { this._graph = value; } } // Check to see if Graph property is set internal bool IsSetGraph() { return this._graph != null; } /// /// Gets and sets the property Name. /// /// Name of the workflow that was run. /// /// [AWSProperty(Min=1, Max=255)] 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 PreviousRunId. /// /// The ID of the previous workflow run. /// /// [AWSProperty(Min=1, Max=255)] public string PreviousRunId { get { return this._previousRunId; } set { this._previousRunId = value; } } // Check to see if PreviousRunId property is set internal bool IsSetPreviousRunId() { return this._previousRunId != null; } /// /// Gets and sets the property StartedOn. /// /// The date and time when the workflow run was started. /// /// public DateTime StartedOn { get { return this._startedOn.GetValueOrDefault(); } set { this._startedOn = value; } } // Check to see if StartedOn property is set internal bool IsSetStartedOn() { return this._startedOn.HasValue; } /// /// Gets and sets the property StartingEventBatchCondition. /// /// The batch condition that started the workflow run. /// /// public StartingEventBatchCondition StartingEventBatchCondition { get { return this._startingEventBatchCondition; } set { this._startingEventBatchCondition = value; } } // Check to see if StartingEventBatchCondition property is set internal bool IsSetStartingEventBatchCondition() { return this._startingEventBatchCondition != null; } /// /// Gets and sets the property Statistics. /// /// The statistics of the run. /// /// public WorkflowRunStatistics Statistics { get { return this._statistics; } set { this._statistics = value; } } // Check to see if Statistics property is set internal bool IsSetStatistics() { return this._statistics != null; } /// /// Gets and sets the property Status. /// /// The status of the workflow run. /// /// public WorkflowRunStatus 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 WorkflowRunId. /// /// The ID of this workflow run. /// /// [AWSProperty(Min=1, Max=255)] public string WorkflowRunId { get { return this._workflowRunId; } set { this._workflowRunId = value; } } // Check to see if WorkflowRunId property is set internal bool IsSetWorkflowRunId() { return this._workflowRunId != null; } /// /// Gets and sets the property WorkflowRunProperties. /// /// The workflow run properties which were set during the run. /// /// public Dictionary WorkflowRunProperties { get { return this._workflowRunProperties; } set { this._workflowRunProperties = value; } } // Check to see if WorkflowRunProperties property is set internal bool IsSetWorkflowRunProperties() { return this._workflowRunProperties != null && this._workflowRunProperties.Count > 0; } } }