/** * 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 Panorama { namespace Model { /** */ class DeletePackageRequest : public PanoramaRequest { public: AWS_PANORAMA_API DeletePackageRequest(); // 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 "DeletePackage"; } AWS_PANORAMA_API Aws::String SerializePayload() const override; AWS_PANORAMA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

Delete the package even if it has artifacts stored in its access point. * Deletes the package's artifacts from Amazon S3.

*/ inline bool GetForceDelete() const{ return m_forceDelete; } /** *

Delete the package even if it has artifacts stored in its access point. * Deletes the package's artifacts from Amazon S3.

*/ inline bool ForceDeleteHasBeenSet() const { return m_forceDeleteHasBeenSet; } /** *

Delete the package even if it has artifacts stored in its access point. * Deletes the package's artifacts from Amazon S3.

*/ inline void SetForceDelete(bool value) { m_forceDeleteHasBeenSet = true; m_forceDelete = value; } /** *

Delete the package even if it has artifacts stored in its access point. * Deletes the package's artifacts from Amazon S3.

*/ inline DeletePackageRequest& WithForceDelete(bool value) { SetForceDelete(value); return *this;} /** *

The package's ID.

*/ inline const Aws::String& GetPackageId() const{ return m_packageId; } /** *

The package's ID.

*/ inline bool PackageIdHasBeenSet() const { return m_packageIdHasBeenSet; } /** *

The package's ID.

*/ inline void SetPackageId(const Aws::String& value) { m_packageIdHasBeenSet = true; m_packageId = value; } /** *

The package's ID.

*/ inline void SetPackageId(Aws::String&& value) { m_packageIdHasBeenSet = true; m_packageId = std::move(value); } /** *

The package's ID.

*/ inline void SetPackageId(const char* value) { m_packageIdHasBeenSet = true; m_packageId.assign(value); } /** *

The package's ID.

*/ inline DeletePackageRequest& WithPackageId(const Aws::String& value) { SetPackageId(value); return *this;} /** *

The package's ID.

*/ inline DeletePackageRequest& WithPackageId(Aws::String&& value) { SetPackageId(std::move(value)); return *this;} /** *

The package's ID.

*/ inline DeletePackageRequest& WithPackageId(const char* value) { SetPackageId(value); return *this;} private: bool m_forceDelete; bool m_forceDeleteHasBeenSet = false; Aws::String m_packageId; bool m_packageIdHasBeenSet = false; }; } // namespace Model } // namespace Panorama } // namespace Aws