/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ECRPublic { namespace Model { /** */ class BatchDeleteImageRequest : public ECRPublicRequest { public: AWS_ECRPUBLIC_API BatchDeleteImageRequest(); // 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 "BatchDeleteImage"; } AWS_ECRPUBLIC_API Aws::String SerializePayload() const override; AWS_ECRPUBLIC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Web Services account ID, or registry alias, that's associated with * the registry that contains the image to delete. If you do not specify a * registry, the default public registry is assumed.

*/ inline const Aws::String& GetRegistryId() const{ return m_registryId; } /** *

The Amazon Web Services account ID, or registry alias, that's associated with * the registry that contains the image to delete. If you do not specify a * registry, the default public registry is assumed.

*/ inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; } /** *

The Amazon Web Services account ID, or registry alias, that's associated with * the registry that contains the image to delete. If you do not specify a * registry, the default public registry is assumed.

*/ inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; } /** *

The Amazon Web Services account ID, or registry alias, that's associated with * the registry that contains the image to delete. If you do not specify a * registry, the default public registry is assumed.

*/ inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); } /** *

The Amazon Web Services account ID, or registry alias, that's associated with * the registry that contains the image to delete. If you do not specify a * registry, the default public registry is assumed.

*/ inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); } /** *

The Amazon Web Services account ID, or registry alias, that's associated with * the registry that contains the image to delete. If you do not specify a * registry, the default public registry is assumed.

*/ inline BatchDeleteImageRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;} /** *

The Amazon Web Services account ID, or registry alias, that's associated with * the registry that contains the image to delete. If you do not specify a * registry, the default public registry is assumed.

*/ inline BatchDeleteImageRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID, or registry alias, that's associated with * the registry that contains the image to delete. If you do not specify a * registry, the default public registry is assumed.

*/ inline BatchDeleteImageRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;} /** *

The repository in a public registry that contains the image to delete.

*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *

The repository in a public registry that contains the image to delete.

*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *

The repository in a public registry that contains the image to delete.

*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *

The repository in a public registry that contains the image to delete.

*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *

The repository in a public registry that contains the image to delete.

*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *

The repository in a public registry that contains the image to delete.

*/ inline BatchDeleteImageRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *

The repository in a public registry that contains the image to delete.

*/ inline BatchDeleteImageRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *

The repository in a public registry that contains the image to delete.

*/ inline BatchDeleteImageRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *

A list of image ID references that correspond to images to delete. The format * of the imageIds reference is imageTag=tag or * imageDigest=digest.

*/ inline const Aws::Vector& GetImageIds() const{ return m_imageIds; } /** *

A list of image ID references that correspond to images to delete. The format * of the imageIds reference is imageTag=tag or * imageDigest=digest.

*/ inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; } /** *

A list of image ID references that correspond to images to delete. The format * of the imageIds reference is imageTag=tag or * imageDigest=digest.

*/ inline void SetImageIds(const Aws::Vector& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; } /** *

A list of image ID references that correspond to images to delete. The format * of the imageIds reference is imageTag=tag or * imageDigest=digest.

*/ inline void SetImageIds(Aws::Vector&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::move(value); } /** *

A list of image ID references that correspond to images to delete. The format * of the imageIds reference is imageTag=tag or * imageDigest=digest.

*/ inline BatchDeleteImageRequest& WithImageIds(const Aws::Vector& value) { SetImageIds(value); return *this;} /** *

A list of image ID references that correspond to images to delete. The format * of the imageIds reference is imageTag=tag or * imageDigest=digest.

*/ inline BatchDeleteImageRequest& WithImageIds(Aws::Vector&& value) { SetImageIds(std::move(value)); return *this;} /** *

A list of image ID references that correspond to images to delete. The format * of the imageIds reference is imageTag=tag or * imageDigest=digest.

*/ inline BatchDeleteImageRequest& AddImageIds(const ImageIdentifier& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; } /** *

A list of image ID references that correspond to images to delete. The format * of the imageIds reference is imageTag=tag or * imageDigest=digest.

*/ inline BatchDeleteImageRequest& AddImageIds(ImageIdentifier&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(std::move(value)); return *this; } private: Aws::String m_registryId; bool m_registryIdHasBeenSet = false; Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::Vector m_imageIds; bool m_imageIdsHasBeenSet = false; }; } // namespace Model } // namespace ECRPublic } // namespace Aws