/** * 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 #include #include namespace Aws { namespace AppConfig { namespace Model { /** */ class CreateExtensionRequest : public AppConfigRequest { public: AWS_APPCONFIG_API CreateExtensionRequest(); // 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 "CreateExtension"; } AWS_APPCONFIG_API Aws::String SerializePayload() const override; AWS_APPCONFIG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A name for the extension. Each extension name in your account must be unique. * Extension versions use the same name.

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

A name for the extension. Each extension name in your account must be unique. * Extension versions use the same name.

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

A name for the extension. Each extension name in your account must be unique. * Extension versions use the same name.

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

A name for the extension. Each extension name in your account must be unique. * Extension versions use the same name.

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

A name for the extension. Each extension name in your account must be unique. * Extension versions use the same name.

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

A name for the extension. Each extension name in your account must be unique. * Extension versions use the same name.

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

A name for the extension. Each extension name in your account must be unique. * Extension versions use the same name.

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

A name for the extension. Each extension name in your account must be unique. * Extension versions use the same name.

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

Information about the extension.

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

Information about the extension.

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

Information about the extension.

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

Information about the extension.

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

Information about the extension.

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

Information about the extension.

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

Information about the extension.

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

Information about the extension.

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

The actions defined in the extension.

*/ inline const Aws::Map>& GetActions() const{ return m_actions; } /** *

The actions defined in the extension.

*/ inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; } /** *

The actions defined in the extension.

*/ inline void SetActions(const Aws::Map>& value) { m_actionsHasBeenSet = true; m_actions = value; } /** *

The actions defined in the extension.

*/ inline void SetActions(Aws::Map>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); } /** *

The actions defined in the extension.

*/ inline CreateExtensionRequest& WithActions(const Aws::Map>& value) { SetActions(value); return *this;} /** *

The actions defined in the extension.

*/ inline CreateExtensionRequest& WithActions(Aws::Map>&& value) { SetActions(std::move(value)); return *this;} /** *

The actions defined in the extension.

*/ inline CreateExtensionRequest& AddActions(const ActionPoint& key, const Aws::Vector& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, value); return *this; } /** *

The actions defined in the extension.

*/ inline CreateExtensionRequest& AddActions(ActionPoint&& key, const Aws::Vector& value) { m_actionsHasBeenSet = true; m_actions.emplace(std::move(key), value); return *this; } /** *

The actions defined in the extension.

*/ inline CreateExtensionRequest& AddActions(const ActionPoint& key, Aws::Vector&& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, std::move(value)); return *this; } /** *

The actions defined in the extension.

*/ inline CreateExtensionRequest& AddActions(ActionPoint&& key, Aws::Vector&& value) { m_actionsHasBeenSet = true; m_actions.emplace(std::move(key), std::move(value)); return *this; } /** *

The parameters accepted by the extension. You specify parameter values when * you associate the extension to an AppConfig resource by using the * CreateExtensionAssociation API action. For Lambda extension * actions, these parameters are included in the Lambda request object.

*/ inline const Aws::Map& GetParameters() const{ return m_parameters; } /** *

The parameters accepted by the extension. You specify parameter values when * you associate the extension to an AppConfig resource by using the * CreateExtensionAssociation API action. For Lambda extension * actions, these parameters are included in the Lambda request object.

*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *

The parameters accepted by the extension. You specify parameter values when * you associate the extension to an AppConfig resource by using the * CreateExtensionAssociation API action. For Lambda extension * actions, these parameters are included in the Lambda request object.

*/ inline void SetParameters(const Aws::Map& value) { m_parametersHasBeenSet = true; m_parameters = value; } /** *

The parameters accepted by the extension. You specify parameter values when * you associate the extension to an AppConfig resource by using the * CreateExtensionAssociation API action. For Lambda extension * actions, these parameters are included in the Lambda request object.

*/ inline void SetParameters(Aws::Map&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } /** *

The parameters accepted by the extension. You specify parameter values when * you associate the extension to an AppConfig resource by using the * CreateExtensionAssociation API action. For Lambda extension * actions, these parameters are included in the Lambda request object.

*/ inline CreateExtensionRequest& WithParameters(const Aws::Map& value) { SetParameters(value); return *this;} /** *

The parameters accepted by the extension. You specify parameter values when * you associate the extension to an AppConfig resource by using the * CreateExtensionAssociation API action. For Lambda extension * actions, these parameters are included in the Lambda request object.

*/ inline CreateExtensionRequest& WithParameters(Aws::Map&& value) { SetParameters(std::move(value)); return *this;} /** *

The parameters accepted by the extension. You specify parameter values when * you associate the extension to an AppConfig resource by using the * CreateExtensionAssociation API action. For Lambda extension * actions, these parameters are included in the Lambda request object.

*/ inline CreateExtensionRequest& AddParameters(const Aws::String& key, const Parameter& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } /** *

The parameters accepted by the extension. You specify parameter values when * you associate the extension to an AppConfig resource by using the * CreateExtensionAssociation API action. For Lambda extension * actions, these parameters are included in the Lambda request object.

*/ inline CreateExtensionRequest& AddParameters(Aws::String&& key, const Parameter& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } /** *

The parameters accepted by the extension. You specify parameter values when * you associate the extension to an AppConfig resource by using the * CreateExtensionAssociation API action. For Lambda extension * actions, these parameters are included in the Lambda request object.

*/ inline CreateExtensionRequest& AddParameters(const Aws::String& key, Parameter&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

The parameters accepted by the extension. You specify parameter values when * you associate the extension to an AppConfig resource by using the * CreateExtensionAssociation API action. For Lambda extension * actions, these parameters are included in the Lambda request object.

*/ inline CreateExtensionRequest& AddParameters(Aws::String&& key, Parameter&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; } /** *

The parameters accepted by the extension. You specify parameter values when * you associate the extension to an AppConfig resource by using the * CreateExtensionAssociation API action. For Lambda extension * actions, these parameters are included in the Lambda request object.

*/ inline CreateExtensionRequest& AddParameters(const char* key, Parameter&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

The parameters accepted by the extension. You specify parameter values when * you associate the extension to an AppConfig resource by using the * CreateExtensionAssociation API action. For Lambda extension * actions, these parameters are included in the Lambda request object.

*/ inline CreateExtensionRequest& AddParameters(const char* key, const Parameter& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } /** *

Adds one or more tags for the specified extension. Tags are metadata that * help you categorize resources in different ways, for example, by purpose, owner, * or environment. Each tag consists of a key and an optional value, both of which * you define.

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

Adds one or more tags for the specified extension. Tags are metadata that * help you categorize resources in different ways, for example, by purpose, owner, * or environment. Each tag consists of a key and an optional value, both of which * you define.

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

Adds one or more tags for the specified extension. Tags are metadata that * help you categorize resources in different ways, for example, by purpose, owner, * or environment. 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; } /** *

Adds one or more tags for the specified extension. Tags are metadata that * help you categorize resources in different ways, for example, by purpose, owner, * or environment. 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); } /** *

Adds one or more tags for the specified extension. Tags are metadata that * help you categorize resources in different ways, for example, by purpose, owner, * or environment. Each tag consists of a key and an optional value, both of which * you define.

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

Adds one or more tags for the specified extension. Tags are metadata that * help you categorize resources in different ways, for example, by purpose, owner, * or environment. Each tag consists of a key and an optional value, both of which * you define.

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

Adds one or more tags for the specified extension. Tags are metadata that * help you categorize resources in different ways, for example, by purpose, owner, * or environment. Each tag consists of a key and an optional value, both of which * you define.

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

Adds one or more tags for the specified extension. Tags are metadata that * help you categorize resources in different ways, for example, by purpose, owner, * or environment. Each tag consists of a key and an optional value, both of which * you define.

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

Adds one or more tags for the specified extension. Tags are metadata that * help you categorize resources in different ways, for example, by purpose, owner, * or environment. Each tag consists of a key and an optional value, both of which * you define.

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

Adds one or more tags for the specified extension. Tags are metadata that * help you categorize resources in different ways, for example, by purpose, owner, * or environment. Each tag consists of a key and an optional value, both of which * you define.

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

Adds one or more tags for the specified extension. Tags are metadata that * help you categorize resources in different ways, for example, by purpose, owner, * or environment. Each tag consists of a key and an optional value, both of which * you define.

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

Adds one or more tags for the specified extension. Tags are metadata that * help you categorize resources in different ways, for example, by purpose, owner, * or environment. Each tag consists of a key and an optional value, both of which * you define.

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

Adds one or more tags for the specified extension. Tags are metadata that * help you categorize resources in different ways, for example, by purpose, owner, * or environment. Each tag consists of a key and an optional value, both of which * you define.

*/ inline CreateExtensionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

You can omit this field when you create an extension. When you create a new * version, specify the most recent current version number. For example, you create * version 3, enter 2 for this field.

*/ inline int GetLatestVersionNumber() const{ return m_latestVersionNumber; } /** *

You can omit this field when you create an extension. When you create a new * version, specify the most recent current version number. For example, you create * version 3, enter 2 for this field.

*/ inline bool LatestVersionNumberHasBeenSet() const { return m_latestVersionNumberHasBeenSet; } /** *

You can omit this field when you create an extension. When you create a new * version, specify the most recent current version number. For example, you create * version 3, enter 2 for this field.

*/ inline void SetLatestVersionNumber(int value) { m_latestVersionNumberHasBeenSet = true; m_latestVersionNumber = value; } /** *

You can omit this field when you create an extension. When you create a new * version, specify the most recent current version number. For example, you create * version 3, enter 2 for this field.

*/ inline CreateExtensionRequest& WithLatestVersionNumber(int value) { SetLatestVersionNumber(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Map> m_actions; bool m_actionsHasBeenSet = false; Aws::Map m_parameters; bool m_parametersHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; int m_latestVersionNumber; bool m_latestVersionNumberHasBeenSet = false; }; } // namespace Model } // namespace AppConfig } // namespace Aws