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

Describes the current state of a container service.

See Also:

* AWS * API Reference

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

The state code of the container service.

The following state codes are * possible:

  • The following state codes are possible if your * container service is in a DEPLOYING or UPDATING * state:

    • CREATING_SYSTEM_RESOURCES - The system * resources for your container service are being created.

    • * CREATING_NETWORK_INFRASTRUCTURE - The network infrastructure for * your container service are being created.

    • * PROVISIONING_CERTIFICATE - The SSL/TLS certificate for your * container service is being created.

    • * PROVISIONING_SERVICE - Your container service is being * provisioned.

    • CREATING_DEPLOYMENT - Your * deployment is being created on your container service.

    • * EVALUATING_HEALTH_CHECK - The health of your deployment is being * evaluated.

    • ACTIVATING_DEPLOYMENT - Your * deployment is being activated.

  • The following state * codes are possible if your container service is in a PENDING * state:

    • CERTIFICATE_LIMIT_EXCEEDED - The SSL/TLS * certificate required for your container service exceeds the maximum number of * certificates allowed for your account.

    • * UNKNOWN_ERROR - An error was experienced when your container * service was being created.

*/ inline const ContainerServiceStateDetailCode& GetCode() const{ return m_code; } /** *

The state code of the container service.

The following state codes are * possible:

  • The following state codes are possible if your * container service is in a DEPLOYING or UPDATING * state:

    • CREATING_SYSTEM_RESOURCES - The system * resources for your container service are being created.

    • * CREATING_NETWORK_INFRASTRUCTURE - The network infrastructure for * your container service are being created.

    • * PROVISIONING_CERTIFICATE - The SSL/TLS certificate for your * container service is being created.

    • * PROVISIONING_SERVICE - Your container service is being * provisioned.

    • CREATING_DEPLOYMENT - Your * deployment is being created on your container service.

    • * EVALUATING_HEALTH_CHECK - The health of your deployment is being * evaluated.

    • ACTIVATING_DEPLOYMENT - Your * deployment is being activated.

  • The following state * codes are possible if your container service is in a PENDING * state:

    • CERTIFICATE_LIMIT_EXCEEDED - The SSL/TLS * certificate required for your container service exceeds the maximum number of * certificates allowed for your account.

    • * UNKNOWN_ERROR - An error was experienced when your container * service was being created.

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

The state code of the container service.

The following state codes are * possible:

  • The following state codes are possible if your * container service is in a DEPLOYING or UPDATING * state:

    • CREATING_SYSTEM_RESOURCES - The system * resources for your container service are being created.

    • * CREATING_NETWORK_INFRASTRUCTURE - The network infrastructure for * your container service are being created.

    • * PROVISIONING_CERTIFICATE - The SSL/TLS certificate for your * container service is being created.

    • * PROVISIONING_SERVICE - Your container service is being * provisioned.

    • CREATING_DEPLOYMENT - Your * deployment is being created on your container service.

    • * EVALUATING_HEALTH_CHECK - The health of your deployment is being * evaluated.

    • ACTIVATING_DEPLOYMENT - Your * deployment is being activated.

  • The following state * codes are possible if your container service is in a PENDING * state:

    • CERTIFICATE_LIMIT_EXCEEDED - The SSL/TLS * certificate required for your container service exceeds the maximum number of * certificates allowed for your account.

    • * UNKNOWN_ERROR - An error was experienced when your container * service was being created.

*/ inline void SetCode(const ContainerServiceStateDetailCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *

The state code of the container service.

The following state codes are * possible:

  • The following state codes are possible if your * container service is in a DEPLOYING or UPDATING * state:

    • CREATING_SYSTEM_RESOURCES - The system * resources for your container service are being created.

    • * CREATING_NETWORK_INFRASTRUCTURE - The network infrastructure for * your container service are being created.

    • * PROVISIONING_CERTIFICATE - The SSL/TLS certificate for your * container service is being created.

    • * PROVISIONING_SERVICE - Your container service is being * provisioned.

    • CREATING_DEPLOYMENT - Your * deployment is being created on your container service.

    • * EVALUATING_HEALTH_CHECK - The health of your deployment is being * evaluated.

    • ACTIVATING_DEPLOYMENT - Your * deployment is being activated.

  • The following state * codes are possible if your container service is in a PENDING * state:

    • CERTIFICATE_LIMIT_EXCEEDED - The SSL/TLS * certificate required for your container service exceeds the maximum number of * certificates allowed for your account.

    • * UNKNOWN_ERROR - An error was experienced when your container * service was being created.

*/ inline void SetCode(ContainerServiceStateDetailCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

The state code of the container service.

The following state codes are * possible:

  • The following state codes are possible if your * container service is in a DEPLOYING or UPDATING * state:

    • CREATING_SYSTEM_RESOURCES - The system * resources for your container service are being created.

    • * CREATING_NETWORK_INFRASTRUCTURE - The network infrastructure for * your container service are being created.

    • * PROVISIONING_CERTIFICATE - The SSL/TLS certificate for your * container service is being created.

    • * PROVISIONING_SERVICE - Your container service is being * provisioned.

    • CREATING_DEPLOYMENT - Your * deployment is being created on your container service.

    • * EVALUATING_HEALTH_CHECK - The health of your deployment is being * evaluated.

    • ACTIVATING_DEPLOYMENT - Your * deployment is being activated.

  • The following state * codes are possible if your container service is in a PENDING * state:

    • CERTIFICATE_LIMIT_EXCEEDED - The SSL/TLS * certificate required for your container service exceeds the maximum number of * certificates allowed for your account.

    • * UNKNOWN_ERROR - An error was experienced when your container * service was being created.

*/ inline ContainerServiceStateDetail& WithCode(const ContainerServiceStateDetailCode& value) { SetCode(value); return *this;} /** *

The state code of the container service.

The following state codes are * possible:

  • The following state codes are possible if your * container service is in a DEPLOYING or UPDATING * state:

    • CREATING_SYSTEM_RESOURCES - The system * resources for your container service are being created.

    • * CREATING_NETWORK_INFRASTRUCTURE - The network infrastructure for * your container service are being created.

    • * PROVISIONING_CERTIFICATE - The SSL/TLS certificate for your * container service is being created.

    • * PROVISIONING_SERVICE - Your container service is being * provisioned.

    • CREATING_DEPLOYMENT - Your * deployment is being created on your container service.

    • * EVALUATING_HEALTH_CHECK - The health of your deployment is being * evaluated.

    • ACTIVATING_DEPLOYMENT - Your * deployment is being activated.

  • The following state * codes are possible if your container service is in a PENDING * state:

    • CERTIFICATE_LIMIT_EXCEEDED - The SSL/TLS * certificate required for your container service exceeds the maximum number of * certificates allowed for your account.

    • * UNKNOWN_ERROR - An error was experienced when your container * service was being created.

*/ inline ContainerServiceStateDetail& WithCode(ContainerServiceStateDetailCode&& value) { SetCode(std::move(value)); return *this;} /** *

A message that provides more information for the state code.

*

The state detail is populated only when a container service is in a * PENDING, DEPLOYING, or UPDATING * state.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

A message that provides more information for the state code.

*

The state detail is populated only when a container service is in a * PENDING, DEPLOYING, or UPDATING * state.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

A message that provides more information for the state code.

*

The state detail is populated only when a container service is in a * PENDING, DEPLOYING, or UPDATING * state.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

A message that provides more information for the state code.

*

The state detail is populated only when a container service is in a * PENDING, DEPLOYING, or UPDATING * state.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

A message that provides more information for the state code.

*

The state detail is populated only when a container service is in a * PENDING, DEPLOYING, or UPDATING * state.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

A message that provides more information for the state code.

*

The state detail is populated only when a container service is in a * PENDING, DEPLOYING, or UPDATING * state.

*/ inline ContainerServiceStateDetail& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

A message that provides more information for the state code.

*

The state detail is populated only when a container service is in a * PENDING, DEPLOYING, or UPDATING * state.

*/ inline ContainerServiceStateDetail& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

A message that provides more information for the state code.

*

The state detail is populated only when a container service is in a * PENDING, DEPLOYING, or UPDATING * state.

*/ inline ContainerServiceStateDetail& WithMessage(const char* value) { SetMessage(value); return *this;} private: ContainerServiceStateDetailCode m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws