/** * 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 EMR { namespace Model { /** *

Specification of the status of a CancelSteps request. Available only in * Amazon EMR version 4.8.0 and later, excluding version 5.0.0.

See * Also:

AWS * API Reference

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

The encrypted StepId of a step.

*/ inline const Aws::String& GetStepId() const{ return m_stepId; } /** *

The encrypted StepId of a step.

*/ inline bool StepIdHasBeenSet() const { return m_stepIdHasBeenSet; } /** *

The encrypted StepId of a step.

*/ inline void SetStepId(const Aws::String& value) { m_stepIdHasBeenSet = true; m_stepId = value; } /** *

The encrypted StepId of a step.

*/ inline void SetStepId(Aws::String&& value) { m_stepIdHasBeenSet = true; m_stepId = std::move(value); } /** *

The encrypted StepId of a step.

*/ inline void SetStepId(const char* value) { m_stepIdHasBeenSet = true; m_stepId.assign(value); } /** *

The encrypted StepId of a step.

*/ inline CancelStepsInfo& WithStepId(const Aws::String& value) { SetStepId(value); return *this;} /** *

The encrypted StepId of a step.

*/ inline CancelStepsInfo& WithStepId(Aws::String&& value) { SetStepId(std::move(value)); return *this;} /** *

The encrypted StepId of a step.

*/ inline CancelStepsInfo& WithStepId(const char* value) { SetStepId(value); return *this;} /** *

The status of a CancelSteps Request. The value may be SUBMITTED or * FAILED.

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

The status of a CancelSteps Request. The value may be SUBMITTED or * FAILED.

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

The status of a CancelSteps Request. The value may be SUBMITTED or * FAILED.

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

The status of a CancelSteps Request. The value may be SUBMITTED or * FAILED.

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

The status of a CancelSteps Request. The value may be SUBMITTED or * FAILED.

*/ inline CancelStepsInfo& WithStatus(const CancelStepsRequestStatus& value) { SetStatus(value); return *this;} /** *

The status of a CancelSteps Request. The value may be SUBMITTED or * FAILED.

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

The reason for the failure if the CancelSteps request fails.

*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *

The reason for the failure if the CancelSteps request fails.

*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *

The reason for the failure if the CancelSteps request fails.

*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *

The reason for the failure if the CancelSteps request fails.

*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *

The reason for the failure if the CancelSteps request fails.

*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *

The reason for the failure if the CancelSteps request fails.

*/ inline CancelStepsInfo& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *

The reason for the failure if the CancelSteps request fails.

*/ inline CancelStepsInfo& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *

The reason for the failure if the CancelSteps request fails.

*/ inline CancelStepsInfo& WithReason(const char* value) { SetReason(value); return *this;} private: Aws::String m_stepId; bool m_stepIdHasBeenSet = false; CancelStepsRequestStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws