/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace AppConfig { namespace Model { /** */ class GetExtensionRequest : public AppConfigRequest { public: AWS_APPCONFIG_API GetExtensionRequest(); // 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 "GetExtension"; } AWS_APPCONFIG_API Aws::String SerializePayload() const override; AWS_APPCONFIG_API void AddQueryStringParameters(Aws::Http::URI& uri) 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 GetExtensionRequest& WithExtensionIdentifier(const Aws::String& value) { SetExtensionIdentifier(value); return *this;} /** *

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

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

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

*/ inline GetExtensionRequest& WithExtensionIdentifier(const char* value) { SetExtensionIdentifier(value); return *this;} /** *

The extension version number. If no version number was defined, AppConfig * uses the highest version.

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

The extension version number. If no version number was defined, AppConfig * uses the highest version.

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

The extension version number. If no version number was defined, AppConfig * uses the highest version.

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

The extension version number. If no version number was defined, AppConfig * uses the highest version.

*/ inline GetExtensionRequest& WithVersionNumber(int value) { SetVersionNumber(value); return *this;} private: Aws::String m_extensionIdentifier; bool m_extensionIdentifierHasBeenSet = false; int m_versionNumber; bool m_versionNumberHasBeenSet = false; }; } // namespace Model } // namespace AppConfig } // namespace Aws