/** * 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 ElasticBeanstalk { namespace Model { /** *

Request to delete an application version.

See Also:

AWS * API Reference

*/ class DeleteApplicationVersionRequest : public ElasticBeanstalkRequest { public: AWS_ELASTICBEANSTALK_API DeleteApplicationVersionRequest(); // 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 "DeleteApplicationVersion"; } AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override; protected: AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name of the application to which the version belongs.

*/ inline const Aws::String& GetApplicationName() const{ return m_applicationName; } /** *

The name of the application to which the version belongs.

*/ inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; } /** *

The name of the application to which the version belongs.

*/ inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; } /** *

The name of the application to which the version belongs.

*/ inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); } /** *

The name of the application to which the version belongs.

*/ inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); } /** *

The name of the application to which the version belongs.

*/ inline DeleteApplicationVersionRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;} /** *

The name of the application to which the version belongs.

*/ inline DeleteApplicationVersionRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;} /** *

The name of the application to which the version belongs.

*/ inline DeleteApplicationVersionRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;} /** *

The label of the version to delete.

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

The label of the version to delete.

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

The label of the version to delete.

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

The label of the version to delete.

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

The label of the version to delete.

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

The label of the version to delete.

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

The label of the version to delete.

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

The label of the version to delete.

*/ inline DeleteApplicationVersionRequest& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;} /** *

Set to true to delete the source bundle from your storage * bucket. Otherwise, the application version is deleted only from Elastic * Beanstalk and the source bundle remains in Amazon S3.

*/ inline bool GetDeleteSourceBundle() const{ return m_deleteSourceBundle; } /** *

Set to true to delete the source bundle from your storage * bucket. Otherwise, the application version is deleted only from Elastic * Beanstalk and the source bundle remains in Amazon S3.

*/ inline bool DeleteSourceBundleHasBeenSet() const { return m_deleteSourceBundleHasBeenSet; } /** *

Set to true to delete the source bundle from your storage * bucket. Otherwise, the application version is deleted only from Elastic * Beanstalk and the source bundle remains in Amazon S3.

*/ inline void SetDeleteSourceBundle(bool value) { m_deleteSourceBundleHasBeenSet = true; m_deleteSourceBundle = value; } /** *

Set to true to delete the source bundle from your storage * bucket. Otherwise, the application version is deleted only from Elastic * Beanstalk and the source bundle remains in Amazon S3.

*/ inline DeleteApplicationVersionRequest& WithDeleteSourceBundle(bool value) { SetDeleteSourceBundle(value); return *this;} private: Aws::String m_applicationName; bool m_applicationNameHasBeenSet = false; Aws::String m_versionLabel; bool m_versionLabelHasBeenSet = false; bool m_deleteSourceBundle; bool m_deleteSourceBundleHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws