/* * 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 codepipeline-2015-07-09.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.CodePipeline.Model { /// /// Represents information about the run of an action. /// public partial class ActionExecution { private string _actionExecutionId; private ErrorDetails _errorDetails; private string _externalExecutionId; private string _externalExecutionUrl; private DateTime? _lastStatusChange; private string _lastUpdatedBy; private int? _percentComplete; private ActionExecutionStatus _status; private string _summary; private string _token; /// /// Gets and sets the property ActionExecutionId. /// /// ID of the workflow action execution in the current stage. Use the GetPipelineState /// action to retrieve the current action execution details of the current stage. /// /// /// /// For older executions, this field might be empty. The action execution ID is available /// for executions run on or after March 2020. /// /// /// public string ActionExecutionId { get { return this._actionExecutionId; } set { this._actionExecutionId = value; } } // Check to see if ActionExecutionId property is set internal bool IsSetActionExecutionId() { return this._actionExecutionId != null; } /// /// Gets and sets the property ErrorDetails. /// /// The details of an error returned by a URL external to Amazon Web Services. /// /// public ErrorDetails ErrorDetails { get { return this._errorDetails; } set { this._errorDetails = value; } } // Check to see if ErrorDetails property is set internal bool IsSetErrorDetails() { return this._errorDetails != null; } /// /// Gets and sets the property ExternalExecutionId. /// /// The external ID of the run of the action. /// /// [AWSProperty(Min=1, Max=1500)] public string ExternalExecutionId { get { return this._externalExecutionId; } set { this._externalExecutionId = value; } } // Check to see if ExternalExecutionId property is set internal bool IsSetExternalExecutionId() { return this._externalExecutionId != null; } /// /// Gets and sets the property ExternalExecutionUrl. /// /// The URL of a resource external to Amazon Web Services that is used when running the /// action (for example, an external repository URL). /// /// [AWSProperty(Min=1, Max=2048)] public string ExternalExecutionUrl { get { return this._externalExecutionUrl; } set { this._externalExecutionUrl = value; } } // Check to see if ExternalExecutionUrl property is set internal bool IsSetExternalExecutionUrl() { return this._externalExecutionUrl != null; } /// /// Gets and sets the property LastStatusChange. /// /// The last status change of the action. /// /// public DateTime LastStatusChange { get { return this._lastStatusChange.GetValueOrDefault(); } set { this._lastStatusChange = value; } } // Check to see if LastStatusChange property is set internal bool IsSetLastStatusChange() { return this._lastStatusChange.HasValue; } /// /// Gets and sets the property LastUpdatedBy. /// /// The ARN of the user who last changed the pipeline. /// /// public string LastUpdatedBy { get { return this._lastUpdatedBy; } set { this._lastUpdatedBy = value; } } // Check to see if LastUpdatedBy property is set internal bool IsSetLastUpdatedBy() { return this._lastUpdatedBy != null; } /// /// Gets and sets the property PercentComplete. /// /// A percentage of completeness of the action as it runs. /// /// [AWSProperty(Min=0, Max=100)] public int PercentComplete { get { return this._percentComplete.GetValueOrDefault(); } set { this._percentComplete = value; } } // Check to see if PercentComplete property is set internal bool IsSetPercentComplete() { return this._percentComplete.HasValue; } /// /// Gets and sets the property Status. /// /// The status of the action, or for a completed action, the last status of the action. /// /// public ActionExecutionStatus 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 Summary. /// /// A summary of the run of the action. /// /// [AWSProperty(Min=1, Max=2048)] public string Summary { get { return this._summary; } set { this._summary = value; } } // Check to see if Summary property is set internal bool IsSetSummary() { return this._summary != null; } /// /// Gets and sets the property Token. /// /// The system-generated token used to identify a unique approval request. The token for /// each open approval request can be obtained using the GetPipelineState /// command. It is used to validate that the approval request corresponding to this token /// is still valid. /// /// public string Token { get { return this._token; } set { this._token = value; } } // Check to see if Token property is set internal bool IsSetToken() { return this._token != null; } } }