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

The summary of the cluster step.

See Also:

AWS * API Reference

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

The identifier of the cluster step.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier of the cluster step.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier of the cluster step.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The identifier of the cluster step.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The identifier of the cluster step.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The identifier of the cluster step.

*/ inline StepSummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier of the cluster step.

*/ inline StepSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier of the cluster step.

*/ inline StepSummary& WithId(const char* value) { SetId(value); return *this;} /** *

The name of the cluster step.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the cluster step.

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

The name of the cluster step.

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

The name of the cluster step.

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

The name of the cluster step.

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

The name of the cluster step.

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

The name of the cluster step.

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

The name of the cluster step.

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

The Hadoop job configuration of the cluster step.

*/ inline const HadoopStepConfig& GetConfig() const{ return m_config; } /** *

The Hadoop job configuration of the cluster step.

*/ inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; } /** *

The Hadoop job configuration of the cluster step.

*/ inline void SetConfig(const HadoopStepConfig& value) { m_configHasBeenSet = true; m_config = value; } /** *

The Hadoop job configuration of the cluster step.

*/ inline void SetConfig(HadoopStepConfig&& value) { m_configHasBeenSet = true; m_config = std::move(value); } /** *

The Hadoop job configuration of the cluster step.

*/ inline StepSummary& WithConfig(const HadoopStepConfig& value) { SetConfig(value); return *this;} /** *

The Hadoop job configuration of the cluster step.

*/ inline StepSummary& WithConfig(HadoopStepConfig&& value) { SetConfig(std::move(value)); return *this;} /** *

The action to take when the cluster step fails. Possible values are * TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is * available for backward compatibility.

*/ inline const ActionOnFailure& GetActionOnFailure() const{ return m_actionOnFailure; } /** *

The action to take when the cluster step fails. Possible values are * TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is * available for backward compatibility.

*/ inline bool ActionOnFailureHasBeenSet() const { return m_actionOnFailureHasBeenSet; } /** *

The action to take when the cluster step fails. Possible values are * TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is * available for backward compatibility.

*/ inline void SetActionOnFailure(const ActionOnFailure& value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = value; } /** *

The action to take when the cluster step fails. Possible values are * TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is * available for backward compatibility.

*/ inline void SetActionOnFailure(ActionOnFailure&& value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = std::move(value); } /** *

The action to take when the cluster step fails. Possible values are * TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is * available for backward compatibility.

*/ inline StepSummary& WithActionOnFailure(const ActionOnFailure& value) { SetActionOnFailure(value); return *this;} /** *

The action to take when the cluster step fails. Possible values are * TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is * available for backward compatibility.

*/ inline StepSummary& WithActionOnFailure(ActionOnFailure&& value) { SetActionOnFailure(std::move(value)); return *this;} /** *

The current execution status details of the cluster step.

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

The current execution status details of the cluster step.

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

The current execution status details of the cluster step.

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

The current execution status details of the cluster step.

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

The current execution status details of the cluster step.

*/ inline StepSummary& WithStatus(const StepStatus& value) { SetStatus(value); return *this;} /** *

The current execution status details of the cluster step.

*/ inline StepSummary& WithStatus(StepStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; HadoopStepConfig m_config; bool m_configHasBeenSet = false; ActionOnFailure m_actionOnFailure; bool m_actionOnFailureHasBeenSet = false; StepStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws