/** * 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 UpdateExtensionRequest : public AppConfigRequest { public: AWS_APPCONFIG_API UpdateExtensionRequest(); // 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 "UpdateExtension"; } AWS_APPCONFIG_API Aws::String SerializePayload() const override; /** *

The name, the ID, or the Amazon Resource Name (ARN) of the extension.

*/ inline const Aws::String& GetExtensionIdentifier() const{ return m_extensionIdentifier; } /** *

The name, the ID, or the Amazon Resource Name (ARN) of the extension.

*/ inline bool ExtensionIdentifierHasBeenSet() const { return m_extensionIdentifierHasBeenSet; } /** *

The name, the ID, or the Amazon Resource Name (ARN) of the extension.

*/ inline void SetExtensionIdentifier(const Aws::String& value) { m_extensionIdentifierHasBeenSet = true; m_extensionIdentifier = value; } /** *

The name, the ID, or the Amazon Resource Name (ARN) of the extension.

*/ inline void SetExtensionIdentifier(Aws::String&& value) { m_extensionIdentifierHasBeenSet = true; m_extensionIdentifier = std::move(value); } /** *

The name, the ID, or the Amazon Resource Name (ARN) of the extension.

*/ inline void SetExtensionIdentifier(const char* value) { m_extensionIdentifierHasBeenSet = true; m_extensionIdentifier.assign(value); } /** *

The name, the ID, or the Amazon Resource Name (ARN) of the extension.

*/ inline UpdateExtensionRequest& WithExtensionIdentifier(const Aws::String& value) { SetExtensionIdentifier(value); return *this;} /** *

The name, the ID, or the Amazon Resource Name (ARN) of the extension.

*/ inline UpdateExtensionRequest& WithExtensionIdentifier(Aws::String&& value) { SetExtensionIdentifier(std::move(value)); return *this;} /** *

The name, the ID, or the Amazon Resource Name (ARN) of the extension.

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

Information about the extension.

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

Information about the extension.

*/ inline UpdateExtensionRequest& 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 UpdateExtensionRequest& WithActions(const Aws::Map>& value) { SetActions(value); return *this;} /** *

The actions defined in the extension.

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

The actions defined in the extension.

*/ inline UpdateExtensionRequest& 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 UpdateExtensionRequest& 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 UpdateExtensionRequest& 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 UpdateExtensionRequest& AddActions(ActionPoint&& key, Aws::Vector&& value) { m_actionsHasBeenSet = true; m_actions.emplace(std::move(key), std::move(value)); return *this; } /** *

One or more parameters for the actions called by the extension.

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

One or more parameters for the actions called by the extension.

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

One or more parameters for the actions called by the extension.

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

One or more parameters for the actions called by the extension.

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

One or more parameters for the actions called by the extension.

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

One or more parameters for the actions called by the extension.

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

One or more parameters for the actions called by the extension.

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

One or more parameters for the actions called by the extension.

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

One or more parameters for the actions called by the extension.

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

One or more parameters for the actions called by the extension.

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

One or more parameters for the actions called by the extension.

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

One or more parameters for the actions called by the extension.

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

The extension version number.

*/ inline int GetVersionNumber() const{ return m_versionNumber; } /** *

The extension version number.

*/ inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; } /** *

The extension version number.

*/ inline void SetVersionNumber(int value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; } /** *

The extension version number.

*/ inline UpdateExtensionRequest& WithVersionNumber(int value) { SetVersionNumber(value); return *this;} private: Aws::String m_extensionIdentifier; bool m_extensionIdentifierHasBeenSet = 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; int m_versionNumber; bool m_versionNumberHasBeenSet = false; }; } // namespace Model } // namespace AppConfig } // namespace Aws