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

Specifies the steps in the workflow, as well as the steps to execute in case * of any errors during workflow execution.

See Also:

AWS * API Reference

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

Specifies the details for the steps that are in the specified workflow.

*/ inline const Aws::Vector& GetSteps() const{ return m_steps; } /** *

Specifies the details for the steps that are in the specified workflow.

*/ inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; } /** *

Specifies the details for the steps that are in the specified workflow.

*/ inline void SetSteps(const Aws::Vector& value) { m_stepsHasBeenSet = true; m_steps = value; } /** *

Specifies the details for the steps that are in the specified workflow.

*/ inline void SetSteps(Aws::Vector&& value) { m_stepsHasBeenSet = true; m_steps = std::move(value); } /** *

Specifies the details for the steps that are in the specified workflow.

*/ inline ExecutionResults& WithSteps(const Aws::Vector& value) { SetSteps(value); return *this;} /** *

Specifies the details for the steps that are in the specified workflow.

*/ inline ExecutionResults& WithSteps(Aws::Vector&& value) { SetSteps(std::move(value)); return *this;} /** *

Specifies the details for the steps that are in the specified workflow.

*/ inline ExecutionResults& AddSteps(const ExecutionStepResult& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; } /** *

Specifies the details for the steps that are in the specified workflow.

*/ inline ExecutionResults& AddSteps(ExecutionStepResult&& value) { m_stepsHasBeenSet = true; m_steps.push_back(std::move(value)); return *this; } /** *

Specifies the steps (actions) to take if errors are encountered during * execution of the workflow.

*/ inline const Aws::Vector& GetOnExceptionSteps() const{ return m_onExceptionSteps; } /** *

Specifies the steps (actions) to take if errors are encountered during * execution of the workflow.

*/ inline bool OnExceptionStepsHasBeenSet() const { return m_onExceptionStepsHasBeenSet; } /** *

Specifies the steps (actions) to take if errors are encountered during * execution of the workflow.

*/ inline void SetOnExceptionSteps(const Aws::Vector& value) { m_onExceptionStepsHasBeenSet = true; m_onExceptionSteps = value; } /** *

Specifies the steps (actions) to take if errors are encountered during * execution of the workflow.

*/ inline void SetOnExceptionSteps(Aws::Vector&& value) { m_onExceptionStepsHasBeenSet = true; m_onExceptionSteps = std::move(value); } /** *

Specifies the steps (actions) to take if errors are encountered during * execution of the workflow.

*/ inline ExecutionResults& WithOnExceptionSteps(const Aws::Vector& value) { SetOnExceptionSteps(value); return *this;} /** *

Specifies the steps (actions) to take if errors are encountered during * execution of the workflow.

*/ inline ExecutionResults& WithOnExceptionSteps(Aws::Vector&& value) { SetOnExceptionSteps(std::move(value)); return *this;} /** *

Specifies the steps (actions) to take if errors are encountered during * execution of the workflow.

*/ inline ExecutionResults& AddOnExceptionSteps(const ExecutionStepResult& value) { m_onExceptionStepsHasBeenSet = true; m_onExceptionSteps.push_back(value); return *this; } /** *

Specifies the steps (actions) to take if errors are encountered during * execution of the workflow.

*/ inline ExecutionResults& AddOnExceptionSteps(ExecutionStepResult&& value) { m_onExceptionStepsHasBeenSet = true; m_onExceptionSteps.push_back(std::move(value)); return *this; } private: Aws::Vector m_steps; bool m_stepsHasBeenSet = false; Aws::Vector m_onExceptionSteps; bool m_onExceptionStepsHasBeenSet = false; }; } // namespace Model } // namespace Transfer } // namespace Aws