/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SFN { namespace Model { class AWS_SFN_API DescribeExecutionResult { public: DescribeExecutionResult(); DescribeExecutionResult(const Aws::AmazonWebServiceResult& result); DescribeExecutionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) that id entifies the execution.

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

The Amazon Resource Name (ARN) that id entifies the execution.

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

The Amazon Resource Name (ARN) that id entifies the execution.

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

The Amazon Resource Name (ARN) that id entifies the execution.

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

The Amazon Resource Name (ARN) that id entifies the execution.

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

The Amazon Resource Name (ARN) that id entifies the execution.

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

The Amazon Resource Name (ARN) that id entifies the execution.

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

The Amazon Resource Name (ARN) of the executed stated machine.

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

The Amazon Resource Name (ARN) of the executed stated machine.

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

The Amazon Resource Name (ARN) of the executed stated machine.

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

The Amazon Resource Name (ARN) of the executed stated machine.

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

The Amazon Resource Name (ARN) of the executed stated machine.

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

The Amazon Resource Name (ARN) of the executed stated machine.

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

The Amazon Resource Name (ARN) of the executed stated machine.

*/ inline DescribeExecutionResult& 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 void SetName(const Aws::String& value) { 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_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_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 DescribeExecutionResult& 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 DescribeExecutionResult& 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 DescribeExecutionResult& 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 void SetStatus(const ExecutionStatus& value) { m_status = value; } /** *

The current status of the execution.

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

The current status of the execution.

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

The current status of the execution.

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

The date the execution is started.

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

The date the execution is started.

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

The date the execution is started.

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

The date the execution is started.

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

The date the execution is started.

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

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

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

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

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

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

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

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

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

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

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

The string that contains the JSON input data of the execution.

*/ inline const Aws::String& GetInput() const{ return m_input; } /** *

The string that contains the JSON input data of the execution.

*/ inline void SetInput(const Aws::String& value) { m_input = value; } /** *

The string that contains the JSON input data of the execution.

*/ inline void SetInput(Aws::String&& value) { m_input = std::move(value); } /** *

The string that contains the JSON input data of the execution.

*/ inline void SetInput(const char* value) { m_input.assign(value); } /** *

The string that contains the JSON input data of the execution.

*/ inline DescribeExecutionResult& WithInput(const Aws::String& value) { SetInput(value); return *this;} /** *

The string that contains the JSON input data of the execution.

*/ inline DescribeExecutionResult& WithInput(Aws::String&& value) { SetInput(std::move(value)); return *this;} /** *

The string that contains the JSON input data of the execution.

*/ inline DescribeExecutionResult& WithInput(const char* value) { SetInput(value); return *this;} /** *

The JSON output data of the execution.

This field is set only * if the execution succeeds. If the execution fails, this field is null.

* */ inline const Aws::String& GetOutput() const{ return m_output; } /** *

The JSON output data of the execution.

This field is set only * if the execution succeeds. If the execution fails, this field is null.

* */ inline void SetOutput(const Aws::String& value) { m_output = value; } /** *

The JSON output data of the execution.

This field is set only * if the execution succeeds. If the execution fails, this field is null.

* */ inline void SetOutput(Aws::String&& value) { m_output = std::move(value); } /** *

The JSON output data of the execution.

This field is set only * if the execution succeeds. If the execution fails, this field is null.

* */ inline void SetOutput(const char* value) { m_output.assign(value); } /** *

The JSON output data of the execution.

This field is set only * if the execution succeeds. If the execution fails, this field is null.

* */ inline DescribeExecutionResult& WithOutput(const Aws::String& value) { SetOutput(value); return *this;} /** *

The JSON output data of the execution.

This field is set only * if the execution succeeds. If the execution fails, this field is null.

* */ inline DescribeExecutionResult& WithOutput(Aws::String&& value) { SetOutput(std::move(value)); return *this;} /** *

The JSON output data of the execution.

This field is set only * if the execution succeeds. If the execution fails, this field is null.

* */ inline DescribeExecutionResult& WithOutput(const char* value) { SetOutput(value); return *this;} private: Aws::String m_executionArn; Aws::String m_stateMachineArn; Aws::String m_name; ExecutionStatus m_status; Aws::Utils::DateTime m_startDate; Aws::Utils::DateTime m_stopDate; Aws::String m_input; Aws::String m_output; }; } // namespace Model } // namespace SFN } // namespace Aws