/*
* 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 states-2016-11-23.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.StepFunctions.Model
{
///
/// Contains details about an execution.
///
public partial class ExecutionListItem
{
private string _executionArn;
private int? _itemCount;
private string _mapRunArn;
private string _name;
private DateTime? _startDate;
private string _stateMachineAliasArn;
private string _stateMachineArn;
private string _stateMachineVersionArn;
private ExecutionStatus _status;
private DateTime? _stopDate;
///
/// Gets and sets the property ExecutionArn.
///
/// The Amazon Resource Name (ARN) that identifies the execution.
///
///
[AWSProperty(Required=true, Min=1, Max=256)]
public string ExecutionArn
{
get { return this._executionArn; }
set { this._executionArn = value; }
}
// Check to see if ExecutionArn property is set
internal bool IsSetExecutionArn()
{
return this._executionArn != null;
}
///
/// Gets and sets the property ItemCount.
///
/// The total number of items processed in a child workflow execution. This field is returned
/// only if mapRunArn
was specified in the ListExecutions
API
/// action. If stateMachineArn
was specified in ListExecutions
,
/// the itemCount
field isn't returned.
///
///
[AWSProperty(Min=0)]
public int ItemCount
{
get { return this._itemCount.GetValueOrDefault(); }
set { this._itemCount = value; }
}
// Check to see if ItemCount property is set
internal bool IsSetItemCount()
{
return this._itemCount.HasValue;
}
///
/// Gets and sets the property MapRunArn.
///
/// The Amazon Resource Name (ARN) of a Map Run. This field is returned only if mapRunArn
/// was specified in the ListExecutions
API action. If stateMachineArn
/// was specified in ListExecutions
, the mapRunArn
isn't returned.
///
///
[AWSProperty(Min=1, Max=2000)]
public string MapRunArn
{
get { return this._mapRunArn; }
set { this._mapRunArn = value; }
}
// Check to see if MapRunArn property is set
internal bool IsSetMapRunArn()
{
return this._mapRunArn != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the execution.
///
///
///
/// A name must not contain:
///
/// -
///
/// white space
///
///
-
///
/// brackets
< > { } [ ]
///
/// -
///
/// wildcard characters
? *
///
/// -
///
/// special characters
" # % \ ^ | ~ ` $ & , ; : /
///
/// -
///
/// control characters (
U+0000-001F
, U+007F-009F
)
///
///
///
/// To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z,
/// - and _.
///
///
[AWSProperty(Required=true, Min=1, Max=80)]
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 StartDate.
///
/// The date the execution started.
///
///
[AWSProperty(Required=true)]
public DateTime StartDate
{
get { return this._startDate.GetValueOrDefault(); }
set { this._startDate = value; }
}
// Check to see if StartDate property is set
internal bool IsSetStartDate()
{
return this._startDate.HasValue;
}
///
/// Gets and sets the property StateMachineAliasArn.
///
/// The Amazon Resource Name (ARN) of the state machine alias used to start an execution.
///
///
///
/// If the state machine execution was started with an unqualified ARN or a version ARN,
/// it returns null.
///
///
[AWSProperty(Min=1, Max=256)]
public string StateMachineAliasArn
{
get { return this._stateMachineAliasArn; }
set { this._stateMachineAliasArn = value; }
}
// Check to see if StateMachineAliasArn property is set
internal bool IsSetStateMachineAliasArn()
{
return this._stateMachineAliasArn != null;
}
///
/// Gets and sets the property StateMachineArn.
///
/// The Amazon Resource Name (ARN) of the state machine that ran the execution.
///
///
[AWSProperty(Required=true, Min=1, Max=256)]
public string StateMachineArn
{
get { return this._stateMachineArn; }
set { this._stateMachineArn = value; }
}
// Check to see if StateMachineArn property is set
internal bool IsSetStateMachineArn()
{
return this._stateMachineArn != null;
}
///
/// Gets and sets the property StateMachineVersionArn.
///
/// The Amazon Resource Name (ARN) of the state machine version associated with the execution.
///
///
///
/// If the state machine execution was started with an unqualified ARN, it returns null.
///
///
///
/// If the execution was started using a stateMachineAliasArn
, both the stateMachineAliasArn
/// and stateMachineVersionArn
parameters contain the respective values.
///
///
[AWSProperty(Min=1, Max=256)]
public string StateMachineVersionArn
{
get { return this._stateMachineVersionArn; }
set { this._stateMachineVersionArn = value; }
}
// Check to see if StateMachineVersionArn property is set
internal bool IsSetStateMachineVersionArn()
{
return this._stateMachineVersionArn != null;
}
///
/// Gets and sets the property Status.
///
/// The current status of the execution.
///
///
[AWSProperty(Required=true)]
public ExecutionStatus 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 StopDate.
///
/// If the execution already ended, the date the execution stopped.
///
///
public DateTime StopDate
{
get { return this._stopDate.GetValueOrDefault(); }
set { this._stopDate = value; }
}
// Check to see if StopDate property is set
internal bool IsSetStopDate()
{
return this._stopDate.HasValue;
}
}
}