/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SFN { namespace Model { /** *

Contains details about an execution.

See Also:

AWS * API Reference

*/ class ExecutionListItem { public: AWS_SFN_API ExecutionListItem(); AWS_SFN_API ExecutionListItem(Aws::Utils::Json::JsonView jsonValue); AWS_SFN_API ExecutionListItem& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SFN_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) that identifies the execution.

*/ inline const Aws::String& GetExecutionArn() const{ return m_executionArn; } /** *

The Amazon Resource Name (ARN) that identifies the execution.

*/ inline bool ExecutionArnHasBeenSet() const { return m_executionArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) that identifies the execution.

*/ inline void SetExecutionArn(const Aws::String& value) { m_executionArnHasBeenSet = true; m_executionArn = value; } /** *

The Amazon Resource Name (ARN) that identifies the execution.

*/ inline void SetExecutionArn(Aws::String&& value) { m_executionArnHasBeenSet = true; m_executionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) that identifies the execution.

*/ inline void SetExecutionArn(const char* value) { m_executionArnHasBeenSet = true; m_executionArn.assign(value); } /** *

The Amazon Resource Name (ARN) that identifies the execution.

*/ inline ExecutionListItem& WithExecutionArn(const Aws::String& value) { SetExecutionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) that identifies the execution.

*/ inline ExecutionListItem& WithExecutionArn(Aws::String&& value) { SetExecutionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) that identifies the execution.

*/ inline ExecutionListItem& WithExecutionArn(const char* value) { SetExecutionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the state machine that ran the * execution.

*/ inline const Aws::String& GetStateMachineArn() const{ return m_stateMachineArn; } /** *

The Amazon Resource Name (ARN) of the state machine that ran the * execution.

*/ inline bool StateMachineArnHasBeenSet() const { return m_stateMachineArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the state machine that ran the * execution.

*/ inline void SetStateMachineArn(const Aws::String& value) { m_stateMachineArnHasBeenSet = true; m_stateMachineArn = value; } /** *

The Amazon Resource Name (ARN) of the state machine that ran the * execution.

*/ inline void SetStateMachineArn(Aws::String&& value) { m_stateMachineArnHasBeenSet = true; m_stateMachineArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the state machine that ran the * execution.

*/ inline void SetStateMachineArn(const char* value) { m_stateMachineArnHasBeenSet = true; m_stateMachineArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the state machine that ran the * execution.

*/ inline ExecutionListItem& WithStateMachineArn(const Aws::String& value) { SetStateMachineArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the state machine that ran the * execution.

*/ inline ExecutionListItem& WithStateMachineArn(Aws::String&& value) { SetStateMachineArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the state machine that ran the * execution.

*/ inline ExecutionListItem& WithStateMachineArn(const char* value) { SetStateMachineArn(value); return *this;} /** *

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 _.

*/ inline const Aws::String& GetName() const{ return m_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 _.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

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 _.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

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 _.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

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 _.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

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 _.

*/ inline ExecutionListItem& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

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 _.

*/ inline ExecutionListItem& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

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 _.

*/ inline ExecutionListItem& WithName(const char* value) { SetName(value); return *this;} /** *

The current status of the execution.

*/ inline const ExecutionStatus& GetStatus() const{ return m_status; } /** *

The current status of the execution.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status of the execution.

*/ inline void SetStatus(const ExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current status of the execution.

*/ inline void SetStatus(ExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current status of the execution.

*/ inline ExecutionListItem& WithStatus(const ExecutionStatus& value) { SetStatus(value); return *this;} /** *

The current status of the execution.

*/ inline ExecutionListItem& WithStatus(ExecutionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The date the execution started.

*/ inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; } /** *

The date the execution started.

*/ inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; } /** *

The date the execution started.

*/ inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; } /** *

The date the execution started.

*/ inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); } /** *

The date the execution started.

*/ inline ExecutionListItem& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;} /** *

The date the execution started.

*/ inline ExecutionListItem& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(value)); return *this;} /** *

If the execution already ended, the date the execution stopped.

*/ inline const Aws::Utils::DateTime& GetStopDate() const{ return m_stopDate; } /** *

If the execution already ended, the date the execution stopped.

*/ inline bool StopDateHasBeenSet() const { return m_stopDateHasBeenSet; } /** *

If the execution already ended, the date the execution stopped.

*/ inline void SetStopDate(const Aws::Utils::DateTime& value) { m_stopDateHasBeenSet = true; m_stopDate = value; } /** *

If the execution already ended, the date the execution stopped.

*/ inline void SetStopDate(Aws::Utils::DateTime&& value) { m_stopDateHasBeenSet = true; m_stopDate = std::move(value); } /** *

If the execution already ended, the date the execution stopped.

*/ inline ExecutionListItem& WithStopDate(const Aws::Utils::DateTime& value) { SetStopDate(value); return *this;} /** *

If the execution already ended, the date the execution stopped.

*/ inline ExecutionListItem& WithStopDate(Aws::Utils::DateTime&& value) { SetStopDate(std::move(value)); return *this;} /** *

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.

*/ inline const Aws::String& GetMapRunArn() const{ return m_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.

*/ inline bool MapRunArnHasBeenSet() const { return m_mapRunArnHasBeenSet; } /** *

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.

*/ inline void SetMapRunArn(const Aws::String& value) { m_mapRunArnHasBeenSet = true; m_mapRunArn = value; } /** *

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.

*/ inline void SetMapRunArn(Aws::String&& value) { m_mapRunArnHasBeenSet = true; m_mapRunArn = std::move(value); } /** *

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.

*/ inline void SetMapRunArn(const char* value) { m_mapRunArnHasBeenSet = true; m_mapRunArn.assign(value); } /** *

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.

*/ inline ExecutionListItem& WithMapRunArn(const Aws::String& value) { SetMapRunArn(value); return *this;} /** *

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.

*/ inline ExecutionListItem& WithMapRunArn(Aws::String&& value) { SetMapRunArn(std::move(value)); return *this;} /** *

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.

*/ inline ExecutionListItem& WithMapRunArn(const char* value) { SetMapRunArn(value); return *this;} /** *

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.

*/ inline int GetItemCount() const{ return m_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.

*/ inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; } /** *

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.

*/ inline void SetItemCount(int value) { m_itemCountHasBeenSet = true; m_itemCount = value; } /** *

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.

*/ inline ExecutionListItem& WithItemCount(int value) { SetItemCount(value); return *this;} /** *

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.

*/ inline const Aws::String& GetStateMachineVersionArn() const{ return m_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.

*/ inline bool StateMachineVersionArnHasBeenSet() const { return m_stateMachineVersionArnHasBeenSet; } /** *

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.

*/ inline void SetStateMachineVersionArn(const Aws::String& value) { m_stateMachineVersionArnHasBeenSet = true; m_stateMachineVersionArn = value; } /** *

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.

*/ inline void SetStateMachineVersionArn(Aws::String&& value) { m_stateMachineVersionArnHasBeenSet = true; m_stateMachineVersionArn = std::move(value); } /** *

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.

*/ inline void SetStateMachineVersionArn(const char* value) { m_stateMachineVersionArnHasBeenSet = true; m_stateMachineVersionArn.assign(value); } /** *

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.

*/ inline ExecutionListItem& WithStateMachineVersionArn(const Aws::String& value) { SetStateMachineVersionArn(value); return *this;} /** *

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.

*/ inline ExecutionListItem& WithStateMachineVersionArn(Aws::String&& value) { SetStateMachineVersionArn(std::move(value)); return *this;} /** *

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.

*/ inline ExecutionListItem& WithStateMachineVersionArn(const char* value) { SetStateMachineVersionArn(value); return *this;} /** *

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.

*/ inline const Aws::String& GetStateMachineAliasArn() const{ return m_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.

*/ inline bool StateMachineAliasArnHasBeenSet() const { return m_stateMachineAliasArnHasBeenSet; } /** *

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.

*/ inline void SetStateMachineAliasArn(const Aws::String& value) { m_stateMachineAliasArnHasBeenSet = true; m_stateMachineAliasArn = value; } /** *

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.

*/ inline void SetStateMachineAliasArn(Aws::String&& value) { m_stateMachineAliasArnHasBeenSet = true; m_stateMachineAliasArn = std::move(value); } /** *

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.

*/ inline void SetStateMachineAliasArn(const char* value) { m_stateMachineAliasArnHasBeenSet = true; m_stateMachineAliasArn.assign(value); } /** *

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.

*/ inline ExecutionListItem& WithStateMachineAliasArn(const Aws::String& value) { SetStateMachineAliasArn(value); return *this;} /** *

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.

*/ inline ExecutionListItem& WithStateMachineAliasArn(Aws::String&& value) { SetStateMachineAliasArn(std::move(value)); return *this;} /** *

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.

*/ inline ExecutionListItem& WithStateMachineAliasArn(const char* value) { SetStateMachineAliasArn(value); return *this;} private: Aws::String m_executionArn; bool m_executionArnHasBeenSet = false; Aws::String m_stateMachineArn; bool m_stateMachineArnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; ExecutionStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_startDate; bool m_startDateHasBeenSet = false; Aws::Utils::DateTime m_stopDate; bool m_stopDateHasBeenSet = false; Aws::String m_mapRunArn; bool m_mapRunArnHasBeenSet = false; int m_itemCount; bool m_itemCountHasBeenSet = false; Aws::String m_stateMachineVersionArn; bool m_stateMachineVersionArnHasBeenSet = false; Aws::String m_stateMachineAliasArn; bool m_stateMachineAliasArnHasBeenSet = false; }; } // namespace Model } // namespace SFN } // namespace Aws