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

Describes the state of an action.

See Also:

AWS * API Reference

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

The state of the action.

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

The state of the action.

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

The state of the action.

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

The state of the action.

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

The state of the action.

*/ inline ExperimentActionState& WithStatus(const ExperimentActionStatus& value) { SetStatus(value); return *this;} /** *

The state of the action.

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

The reason for the state.

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

The reason for the state.

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

The reason for the state.

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

The reason for the state.

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

The reason for the state.

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

The reason for the state.

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

The reason for the state.

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

The reason for the state.

*/ inline ExperimentActionState& WithReason(const char* value) { SetReason(value); return *this;} private: ExperimentActionStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace FIS } // namespace Aws