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

The application ID.

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

The application ID.

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

The configuration profile ID.

*/ inline const Aws::String& GetConfigurationProfileId() const{ return m_configurationProfileId; } /** *

The configuration profile ID.

*/ inline bool ConfigurationProfileIdHasBeenSet() const { return m_configurationProfileIdHasBeenSet; } /** *

The configuration profile ID.

*/ inline void SetConfigurationProfileId(const Aws::String& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = value; } /** *

The configuration profile ID.

*/ inline void SetConfigurationProfileId(Aws::String&& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = std::move(value); } /** *

The configuration profile ID.

*/ inline void SetConfigurationProfileId(const char* value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId.assign(value); } /** *

The configuration profile ID.

*/ inline CreateHostedConfigurationVersionRequest& WithConfigurationProfileId(const Aws::String& value) { SetConfigurationProfileId(value); return *this;} /** *

The configuration profile ID.

*/ inline CreateHostedConfigurationVersionRequest& WithConfigurationProfileId(Aws::String&& value) { SetConfigurationProfileId(std::move(value)); return *this;} /** *

The configuration profile ID.

*/ inline CreateHostedConfigurationVersionRequest& WithConfigurationProfileId(const char* value) { SetConfigurationProfileId(value); return *this;} /** *

A description of the configuration.

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

A description of the configuration.

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

A description of the configuration.

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

A description of the configuration.

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

A description of the configuration.

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

A description of the configuration.

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

A description of the configuration.

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

A description of the configuration.

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

An optional locking token used to prevent race conditions from overwriting * configuration updates when creating a new version. To ensure your data is not * overwritten when creating multiple hosted configuration versions in rapid * succession, specify the version number of the latest hosted configuration * version.

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

An optional locking token used to prevent race conditions from overwriting * configuration updates when creating a new version. To ensure your data is not * overwritten when creating multiple hosted configuration versions in rapid * succession, specify the version number of the latest hosted configuration * version.

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

An optional locking token used to prevent race conditions from overwriting * configuration updates when creating a new version. To ensure your data is not * overwritten when creating multiple hosted configuration versions in rapid * succession, specify the version number of the latest hosted configuration * version.

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

An optional locking token used to prevent race conditions from overwriting * configuration updates when creating a new version. To ensure your data is not * overwritten when creating multiple hosted configuration versions in rapid * succession, specify the version number of the latest hosted configuration * version.

*/ inline CreateHostedConfigurationVersionRequest& WithLatestVersionNumber(int value) { SetLatestVersionNumber(value); return *this;} /** *

An optional, user-defined label for the AppConfig hosted configuration * version. This value must contain at least one non-numeric character. For * example, "v2.2.0".

*/ inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; } /** *

An optional, user-defined label for the AppConfig hosted configuration * version. This value must contain at least one non-numeric character. For * example, "v2.2.0".

*/ inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; } /** *

An optional, user-defined label for the AppConfig hosted configuration * version. This value must contain at least one non-numeric character. For * example, "v2.2.0".

*/ inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; } /** *

An optional, user-defined label for the AppConfig hosted configuration * version. This value must contain at least one non-numeric character. For * example, "v2.2.0".

*/ inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::move(value); } /** *

An optional, user-defined label for the AppConfig hosted configuration * version. This value must contain at least one non-numeric character. For * example, "v2.2.0".

*/ inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); } /** *

An optional, user-defined label for the AppConfig hosted configuration * version. This value must contain at least one non-numeric character. For * example, "v2.2.0".

*/ inline CreateHostedConfigurationVersionRequest& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;} /** *

An optional, user-defined label for the AppConfig hosted configuration * version. This value must contain at least one non-numeric character. For * example, "v2.2.0".

*/ inline CreateHostedConfigurationVersionRequest& WithVersionLabel(Aws::String&& value) { SetVersionLabel(std::move(value)); return *this;} /** *

An optional, user-defined label for the AppConfig hosted configuration * version. This value must contain at least one non-numeric character. For * example, "v2.2.0".

*/ inline CreateHostedConfigurationVersionRequest& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;} private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet = false; Aws::String m_configurationProfileId; bool m_configurationProfileIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; int m_latestVersionNumber; bool m_latestVersionNumberHasBeenSet = false; Aws::String m_versionLabel; bool m_versionLabelHasBeenSet = false; }; } // namespace Model } // namespace AppConfig } // namespace Aws