/*
* 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
{
///
/// This is the response object from the DescribeStateMachineForExecution operation.
///
public partial class DescribeStateMachineForExecutionResponse : AmazonWebServiceResponse
{
private string _definition;
private string _label;
private LoggingConfiguration _loggingConfiguration;
private string _mapRunArn;
private string _name;
private string _revisionId;
private string _roleArn;
private string _stateMachineArn;
private TracingConfiguration _tracingConfiguration;
private DateTime? _updateDate;
///
/// Gets and sets the property Definition.
///
/// The Amazon States Language definition of the state machine. See Amazon
/// States Language.
///
///
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=1048576)]
public string Definition
{
get { return this._definition; }
set { this._definition = value; }
}
// Check to see if Definition property is set
internal bool IsSetDefinition()
{
return this._definition != null;
}
///
/// Gets and sets the property Label.
///
/// A user-defined or an auto-generated string that identifies a Map
state.
/// This field is returned only if the executionArn
is a child workflow execution
/// that was started by a Distributed Map state.
///
///
public string Label
{
get { return this._label; }
set { this._label = value; }
}
// Check to see if Label property is set
internal bool IsSetLabel()
{
return this._label != null;
}
///
/// Gets and sets the property LoggingConfiguration.
///
public LoggingConfiguration LoggingConfiguration
{
get { return this._loggingConfiguration; }
set { this._loggingConfiguration = value; }
}
// Check to see if LoggingConfiguration property is set
internal bool IsSetLoggingConfiguration()
{
return this._loggingConfiguration != null;
}
///
/// Gets and sets the property MapRunArn.
///
/// The Amazon Resource Name (ARN) of the Map Run that started the child workflow execution.
/// This field is returned only if the executionArn
is a child workflow execution
/// that was started by a Distributed Map state.
///
///
[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 state machine associated with the execution.
///
///
[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 RevisionId.
///
/// The revision identifier for the state machine. The first revision ID when you create
/// the state machine is null.
///
///
///
/// Use the state machine revisionId
parameter to compare the revision of
/// a state machine with the configuration of the state machine used for executions without
/// performing a diff of the properties, such as definition
and roleArn
.
///
///
public string RevisionId
{
get { return this._revisionId; }
set { this._revisionId = value; }
}
// Check to see if RevisionId property is set
internal bool IsSetRevisionId()
{
return this._revisionId != null;
}
///
/// Gets and sets the property RoleArn.
///
/// The Amazon Resource Name (ARN) of the IAM role of the State Machine for the execution.
///
///
///
[AWSProperty(Required=true, Min=1, Max=256)]
public string RoleArn
{
get { return this._roleArn; }
set { this._roleArn = value; }
}
// Check to see if RoleArn property is set
internal bool IsSetRoleArn()
{
return this._roleArn != null;
}
///
/// Gets and sets the property StateMachineArn.
///
/// The Amazon Resource Name (ARN) of the state machine associated with 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 TracingConfiguration.
///
/// Selects whether X-Ray tracing is enabled.
///
///
public TracingConfiguration TracingConfiguration
{
get { return this._tracingConfiguration; }
set { this._tracingConfiguration = value; }
}
// Check to see if TracingConfiguration property is set
internal bool IsSetTracingConfiguration()
{
return this._tracingConfiguration != null;
}
///
/// Gets and sets the property UpdateDate.
///
/// The date and time the state machine associated with an execution was updated. For
/// a newly created state machine, this is the creation date.
///
///
[AWSProperty(Required=true)]
public DateTime UpdateDate
{
get { return this._updateDate.GetValueOrDefault(); }
set { this._updateDate = value; }
}
// Check to see if UpdateDate property is set
internal bool IsSetUpdateDate()
{
return this._updateDate.HasValue;
}
}
}