/** * 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 { namespace AppConfig { namespace Model { /** */ class UpdateEnvironmentRequest : public AppConfigRequest { public: AWS_APPCONFIG_API UpdateEnvironmentRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateEnvironment"; } AWS_APPCONFIG_API Aws::String SerializePayload() const override; /** *

The application ID.

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

The application ID.

*/ inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } /** *

The application ID.

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

The application ID.

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

The application ID.

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

The application ID.

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

The application ID.

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

The application ID.

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

The environment ID.

*/ inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; } /** *

The environment ID.

*/ inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; } /** *

The environment ID.

*/ inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; } /** *

The environment ID.

*/ inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); } /** *

The environment ID.

*/ inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); } /** *

The environment ID.

*/ inline UpdateEnvironmentRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;} /** *

The environment ID.

*/ inline UpdateEnvironmentRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;} /** *

The environment ID.

*/ inline UpdateEnvironmentRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;} /** *

The name of the environment.

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

The name of the environment.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the environment.

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

The name of the environment.

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

The name of the environment.

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

The name of the environment.

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

The name of the environment.

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

The name of the environment.

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

A description of the environment.

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

A description of the environment.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the environment.

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

A description of the environment.

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

A description of the environment.

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

A description of the environment.

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

A description of the environment.

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

A description of the environment.

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

Amazon CloudWatch alarms to monitor during the deployment process.

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

Amazon CloudWatch alarms to monitor during the deployment process.

*/ inline bool MonitorsHasBeenSet() const { return m_monitorsHasBeenSet; } /** *

Amazon CloudWatch alarms to monitor during the deployment process.

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

Amazon CloudWatch alarms to monitor during the deployment process.

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

Amazon CloudWatch alarms to monitor during the deployment process.

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

Amazon CloudWatch alarms to monitor during the deployment process.

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

Amazon CloudWatch alarms to monitor during the deployment process.

*/ inline UpdateEnvironmentRequest& AddMonitors(const Monitor& value) { m_monitorsHasBeenSet = true; m_monitors.push_back(value); return *this; } /** *

Amazon CloudWatch alarms to monitor during the deployment process.

*/ inline UpdateEnvironmentRequest& AddMonitors(Monitor&& value) { m_monitorsHasBeenSet = true; m_monitors.push_back(std::move(value)); return *this; } private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet = false; Aws::String m_environmentId; bool m_environmentIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_monitors; bool m_monitorsHasBeenSet = false; }; } // namespace Model } // namespace AppConfig } // namespace Aws