/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace AppConfig { namespace Model { class CreateEnvironmentResult { public: AWS_APPCONFIG_API CreateEnvironmentResult(); AWS_APPCONFIG_API CreateEnvironmentResult(const Aws::AmazonWebServiceResult& result); AWS_APPCONFIG_API CreateEnvironmentResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The application ID.

*/ inline const Aws::String& GetApplicationId() const{ return m_applicationId; } /** *

The application ID.

*/ inline void SetApplicationId(const Aws::String& value) { m_applicationId = value; } /** *

The application ID.

*/ inline void SetApplicationId(Aws::String&& value) { m_applicationId = std::move(value); } /** *

The application ID.

*/ inline void SetApplicationId(const char* value) { m_applicationId.assign(value); } /** *

The application ID.

*/ inline CreateEnvironmentResult& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} /** *

The application ID.

*/ inline CreateEnvironmentResult& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} /** *

The application ID.

*/ inline CreateEnvironmentResult& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} /** *

The environment ID.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The environment ID.

*/ inline void SetId(const Aws::String& value) { m_id = value; } /** *

The environment ID.

*/ inline void SetId(Aws::String&& value) { m_id = std::move(value); } /** *

The environment ID.

*/ inline void SetId(const char* value) { m_id.assign(value); } /** *

The environment ID.

*/ inline CreateEnvironmentResult& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The environment ID.

*/ inline CreateEnvironmentResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The environment ID.

*/ inline CreateEnvironmentResult& WithId(const char* value) { SetId(value); return *this;} /** *

The name of the environment.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the environment.

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The name of the environment.

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The name of the environment.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the environment.

*/ inline CreateEnvironmentResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the environment.

*/ inline CreateEnvironmentResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the environment.

*/ inline CreateEnvironmentResult& WithName(const char* value) { SetName(value); return *this;} /** *

The description of the environment.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the environment.

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

The description of the environment.

*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *

The description of the environment.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The description of the environment.

*/ inline CreateEnvironmentResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the environment.

*/ inline CreateEnvironmentResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the environment.

*/ inline CreateEnvironmentResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The state of the environment. An environment can be in one of the following * states: READY_FOR_DEPLOYMENT, DEPLOYING, * ROLLING_BACK, or ROLLED_BACK

*/ inline const EnvironmentState& GetState() const{ return m_state; } /** *

The state of the environment. An environment can be in one of the following * states: READY_FOR_DEPLOYMENT, DEPLOYING, * ROLLING_BACK, or ROLLED_BACK

*/ inline void SetState(const EnvironmentState& value) { m_state = value; } /** *

The state of the environment. An environment can be in one of the following * states: READY_FOR_DEPLOYMENT, DEPLOYING, * ROLLING_BACK, or ROLLED_BACK

*/ inline void SetState(EnvironmentState&& value) { m_state = std::move(value); } /** *

The state of the environment. An environment can be in one of the following * states: READY_FOR_DEPLOYMENT, DEPLOYING, * ROLLING_BACK, or ROLLED_BACK

*/ inline CreateEnvironmentResult& WithState(const EnvironmentState& value) { SetState(value); return *this;} /** *

The state of the environment. An environment can be in one of the following * states: READY_FOR_DEPLOYMENT, DEPLOYING, * ROLLING_BACK, or ROLLED_BACK

*/ inline CreateEnvironmentResult& WithState(EnvironmentState&& value) { SetState(std::move(value)); return *this;} /** *

Amazon CloudWatch alarms monitored during the deployment.

*/ inline const Aws::Vector& GetMonitors() const{ return m_monitors; } /** *

Amazon CloudWatch alarms monitored during the deployment.

*/ inline void SetMonitors(const Aws::Vector& value) { m_monitors = value; } /** *

Amazon CloudWatch alarms monitored during the deployment.

*/ inline void SetMonitors(Aws::Vector&& value) { m_monitors = std::move(value); } /** *

Amazon CloudWatch alarms monitored during the deployment.

*/ inline CreateEnvironmentResult& WithMonitors(const Aws::Vector& value) { SetMonitors(value); return *this;} /** *

Amazon CloudWatch alarms monitored during the deployment.

*/ inline CreateEnvironmentResult& WithMonitors(Aws::Vector&& value) { SetMonitors(std::move(value)); return *this;} /** *

Amazon CloudWatch alarms monitored during the deployment.

*/ inline CreateEnvironmentResult& AddMonitors(const Monitor& value) { m_monitors.push_back(value); return *this; } /** *

Amazon CloudWatch alarms monitored during the deployment.

*/ inline CreateEnvironmentResult& AddMonitors(Monitor&& value) { m_monitors.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateEnvironmentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateEnvironmentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateEnvironmentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_applicationId; Aws::String m_id; Aws::String m_name; Aws::String m_description; EnvironmentState m_state; Aws::Vector m_monitors; Aws::String m_requestId; }; } // namespace Model } // namespace AppConfig } // namespace Aws