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

Information about the current creation or deletion lifecycle state of an * Cloud9 development environment.

See Also:

AWS * API Reference

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

The current creation or deletion lifecycle state of the environment.

    *
  • CREATING: The environment is in the process of being * created.

  • CREATED: The environment was * successfully created.

  • CREATE_FAILED: The * environment failed to be created.

  • DELETING: The * environment is in the process of being deleted.

  • * DELETE_FAILED: The environment failed to delete.

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

The current creation or deletion lifecycle state of the environment.

    *
  • CREATING: The environment is in the process of being * created.

  • CREATED: The environment was * successfully created.

  • CREATE_FAILED: The * environment failed to be created.

  • DELETING: The * environment is in the process of being deleted.

  • * DELETE_FAILED: The environment failed to delete.

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

The current creation or deletion lifecycle state of the environment.

    *
  • CREATING: The environment is in the process of being * created.

  • CREATED: The environment was * successfully created.

  • CREATE_FAILED: The * environment failed to be created.

  • DELETING: The * environment is in the process of being deleted.

  • * DELETE_FAILED: The environment failed to delete.

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

The current creation or deletion lifecycle state of the environment.

    *
  • CREATING: The environment is in the process of being * created.

  • CREATED: The environment was * successfully created.

  • CREATE_FAILED: The * environment failed to be created.

  • DELETING: The * environment is in the process of being deleted.

  • * DELETE_FAILED: The environment failed to delete.

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

The current creation or deletion lifecycle state of the environment.

    *
  • CREATING: The environment is in the process of being * created.

  • CREATED: The environment was * successfully created.

  • CREATE_FAILED: The * environment failed to be created.

  • DELETING: The * environment is in the process of being deleted.

  • * DELETE_FAILED: The environment failed to delete.

*/ inline EnvironmentLifecycle& WithStatus(const EnvironmentLifecycleStatus& value) { SetStatus(value); return *this;} /** *

The current creation or deletion lifecycle state of the environment.

    *
  • CREATING: The environment is in the process of being * created.

  • CREATED: The environment was * successfully created.

  • CREATE_FAILED: The * environment failed to be created.

  • DELETING: The * environment is in the process of being deleted.

  • * DELETE_FAILED: The environment failed to delete.

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

Any informational message about the lifecycle state of the environment.

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

Any informational message about the lifecycle state of the environment.

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

Any informational message about the lifecycle state of the environment.

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

Any informational message about the lifecycle state of the environment.

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

Any informational message about the lifecycle state of the environment.

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

Any informational message about the lifecycle state of the environment.

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

Any informational message about the lifecycle state of the environment.

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

Any informational message about the lifecycle state of the environment.

*/ inline EnvironmentLifecycle& WithReason(const char* value) { SetReason(value); return *this;} /** *

If the environment failed to delete, the Amazon Resource Name (ARN) of the * related Amazon Web Services resource.

*/ inline const Aws::String& GetFailureResource() const{ return m_failureResource; } /** *

If the environment failed to delete, the Amazon Resource Name (ARN) of the * related Amazon Web Services resource.

*/ inline bool FailureResourceHasBeenSet() const { return m_failureResourceHasBeenSet; } /** *

If the environment failed to delete, the Amazon Resource Name (ARN) of the * related Amazon Web Services resource.

*/ inline void SetFailureResource(const Aws::String& value) { m_failureResourceHasBeenSet = true; m_failureResource = value; } /** *

If the environment failed to delete, the Amazon Resource Name (ARN) of the * related Amazon Web Services resource.

*/ inline void SetFailureResource(Aws::String&& value) { m_failureResourceHasBeenSet = true; m_failureResource = std::move(value); } /** *

If the environment failed to delete, the Amazon Resource Name (ARN) of the * related Amazon Web Services resource.

*/ inline void SetFailureResource(const char* value) { m_failureResourceHasBeenSet = true; m_failureResource.assign(value); } /** *

If the environment failed to delete, the Amazon Resource Name (ARN) of the * related Amazon Web Services resource.

*/ inline EnvironmentLifecycle& WithFailureResource(const Aws::String& value) { SetFailureResource(value); return *this;} /** *

If the environment failed to delete, the Amazon Resource Name (ARN) of the * related Amazon Web Services resource.

*/ inline EnvironmentLifecycle& WithFailureResource(Aws::String&& value) { SetFailureResource(std::move(value)); return *this;} /** *

If the environment failed to delete, the Amazon Resource Name (ARN) of the * related Amazon Web Services resource.

*/ inline EnvironmentLifecycle& WithFailureResource(const char* value) { SetFailureResource(value); return *this;} private: EnvironmentLifecycleStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; Aws::String m_failureResource; bool m_failureResourceHasBeenSet = false; }; } // namespace Model } // namespace Cloud9 } // namespace Aws