/**
* 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 OpenSearchService
{
namespace Model
{
/**
* Deletes a package from OpenSearch Service. The package can't be associated
* with any OpenSearch Service domain.
See Also:
AWS
* API Reference
*/
class DeletePackageRequest : public OpenSearchServiceRequest
{
public:
AWS_OPENSEARCHSERVICE_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_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
/**
* The internal ID of the package you want to delete. Use
* DescribePackages
to find this value.
*/
inline const Aws::String& GetPackageID() const{ return m_packageID; }
/**
* The internal ID of the package you want to delete. Use
* DescribePackages
to find this value.
*/
inline bool PackageIDHasBeenSet() const { return m_packageIDHasBeenSet; }
/**
* The internal ID of the package you want to delete. Use
* DescribePackages
to find this value.
*/
inline void SetPackageID(const Aws::String& value) { m_packageIDHasBeenSet = true; m_packageID = value; }
/**
* The internal ID of the package you want to delete. Use
* DescribePackages
to find this value.
*/
inline void SetPackageID(Aws::String&& value) { m_packageIDHasBeenSet = true; m_packageID = std::move(value); }
/**
* The internal ID of the package you want to delete. Use
* DescribePackages
to find this value.
*/
inline void SetPackageID(const char* value) { m_packageIDHasBeenSet = true; m_packageID.assign(value); }
/**
* The internal ID of the package you want to delete. Use
* DescribePackages
to find this value.
*/
inline DeletePackageRequest& WithPackageID(const Aws::String& value) { SetPackageID(value); return *this;}
/**
* The internal ID of the package you want to delete. Use
* DescribePackages
to find this value.
*/
inline DeletePackageRequest& WithPackageID(Aws::String&& value) { SetPackageID(std::move(value)); return *this;}
/**
* The internal ID of the package you want to delete. Use
* DescribePackages
to find this value.
*/
inline DeletePackageRequest& WithPackageID(const char* value) { SetPackageID(value); return *this;}
private:
Aws::String m_packageID;
bool m_packageIDHasBeenSet = false;
};
} // namespace Model
} // namespace OpenSearchService
} // namespace Aws