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

An indication of whether a project creation or deletion is failed or * successful.

See Also:

AWS * API Reference

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

The phase of completion for a project creation or deletion.

*/ inline const Aws::String& GetState() const{ return m_state; } /** *

The phase of completion for a project creation or deletion.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The phase of completion for a project creation or deletion.

*/ inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The phase of completion for a project creation or deletion.

*/ inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The phase of completion for a project creation or deletion.

*/ inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } /** *

The phase of completion for a project creation or deletion.

*/ inline ProjectStatus& WithState(const Aws::String& value) { SetState(value); return *this;} /** *

The phase of completion for a project creation or deletion.

*/ inline ProjectStatus& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} /** *

The phase of completion for a project creation or deletion.

*/ inline ProjectStatus& WithState(const char* value) { SetState(value); return *this;} /** *

In the case of a project creation or deletion failure, a reason for the * failure.

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

In the case of a project creation or deletion failure, a reason for the * failure.

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

In the case of a project creation or deletion failure, a reason for the * failure.

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

In the case of a project creation or deletion failure, a reason for the * failure.

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

In the case of a project creation or deletion failure, a reason for the * failure.

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

In the case of a project creation or deletion failure, a reason for the * failure.

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

In the case of a project creation or deletion failure, a reason for the * failure.

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

In the case of a project creation or deletion failure, a reason for the * failure.

*/ inline ProjectStatus& WithReason(const char* value) { SetReason(value); return *this;} private: Aws::String m_state; bool m_stateHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace CodeStar } // namespace Aws