/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace AppConfig { namespace Model { /** */ class CreateEnvironmentRequest : public AppConfigRequest { public: AWS_APPCONFIG_API CreateEnvironmentRequest(); // 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 "CreateEnvironment"; } 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 CreateEnvironmentRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} /** *

The application ID.

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

The application ID.

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

A name for the environment.

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

A name for the environment.

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

A name for the environment.

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

A name for the environment.

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

A name for the environment.

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

A name for the environment.

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

A name for the environment.

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

A name for the environment.

*/ inline CreateEnvironmentRequest& 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 CreateEnvironmentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the environment.

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

A description of the environment.

*/ inline CreateEnvironmentRequest& 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 CreateEnvironmentRequest& WithMonitors(const Aws::Vector& value) { SetMonitors(value); return *this;} /** *

Amazon CloudWatch alarms to monitor during the deployment process.

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

Amazon CloudWatch alarms to monitor during the deployment process.

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

Amazon CloudWatch alarms to monitor during the deployment process.

*/ inline CreateEnvironmentRequest& AddMonitors(Monitor&& value) { m_monitorsHasBeenSet = true; m_monitors.push_back(std::move(value)); return *this; } /** *

Metadata to assign to the environment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

Metadata to assign to the environment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Metadata to assign to the environment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Metadata to assign to the environment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Metadata to assign to the environment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline CreateEnvironmentRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Metadata to assign to the environment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline CreateEnvironmentRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Metadata to assign to the environment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline CreateEnvironmentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Metadata to assign to the environment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline CreateEnvironmentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Metadata to assign to the environment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline CreateEnvironmentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Metadata to assign to the environment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline CreateEnvironmentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Metadata to assign to the environment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline CreateEnvironmentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Metadata to assign to the environment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline CreateEnvironmentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Metadata to assign to the environment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline CreateEnvironmentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet = 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; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace AppConfig } // namespace Aws