/** * 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 ECR { namespace Model { /** */ class PutImageRequest : public ECRRequest { public: AWS_ECR_API PutImageRequest(); // 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 "PutImage"; } AWS_ECR_API Aws::String SerializePayload() const override; AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Web Services account ID associated with the registry that contains * the repository in which to put the image. If you do not specify a registry, the * default registry is assumed.

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

The Amazon Web Services account ID associated with the registry that contains * the repository in which to put the image. If you do not specify a registry, the * default registry is assumed.

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

The Amazon Web Services account ID associated with the registry that contains * the repository in which to put the image. If you do not specify a registry, the * default registry is assumed.

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

The Amazon Web Services account ID associated with the registry that contains * the repository in which to put the image. If you do not specify a registry, the * default registry is assumed.

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

The Amazon Web Services account ID associated with the registry that contains * the repository in which to put the image. If you do not specify a registry, the * default registry is assumed.

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

The Amazon Web Services account ID associated with the registry that contains * the repository in which to put the image. If you do not specify a registry, the * default registry is assumed.

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

The Amazon Web Services account ID associated with the registry that contains * the repository in which to put the image. If you do not specify a registry, the * default registry is assumed.

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

The Amazon Web Services account ID associated with the registry that contains * the repository in which to put the image. If you do not specify a registry, the * default registry is assumed.

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

The name of the repository in which to put the image.

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

The name of the repository in which to put the image.

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

The name of the repository in which to put the image.

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

The name of the repository in which to put the image.

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

The name of the repository in which to put the image.

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

The name of the repository in which to put the image.

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

The name of the repository in which to put the image.

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

The name of the repository in which to put the image.

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

The image manifest corresponding to the image to be uploaded.

*/ inline const Aws::String& GetImageManifest() const{ return m_imageManifest; } /** *

The image manifest corresponding to the image to be uploaded.

*/ inline bool ImageManifestHasBeenSet() const { return m_imageManifestHasBeenSet; } /** *

The image manifest corresponding to the image to be uploaded.

*/ inline void SetImageManifest(const Aws::String& value) { m_imageManifestHasBeenSet = true; m_imageManifest = value; } /** *

The image manifest corresponding to the image to be uploaded.

*/ inline void SetImageManifest(Aws::String&& value) { m_imageManifestHasBeenSet = true; m_imageManifest = std::move(value); } /** *

The image manifest corresponding to the image to be uploaded.

*/ inline void SetImageManifest(const char* value) { m_imageManifestHasBeenSet = true; m_imageManifest.assign(value); } /** *

The image manifest corresponding to the image to be uploaded.

*/ inline PutImageRequest& WithImageManifest(const Aws::String& value) { SetImageManifest(value); return *this;} /** *

The image manifest corresponding to the image to be uploaded.

*/ inline PutImageRequest& WithImageManifest(Aws::String&& value) { SetImageManifest(std::move(value)); return *this;} /** *

The image manifest corresponding to the image to be uploaded.

*/ inline PutImageRequest& WithImageManifest(const char* value) { SetImageManifest(value); return *this;} /** *

The media type of the image manifest. If you push an image manifest that does * not contain the mediaType field, you must specify the * imageManifestMediaType in the request.

*/ inline const Aws::String& GetImageManifestMediaType() const{ return m_imageManifestMediaType; } /** *

The media type of the image manifest. If you push an image manifest that does * not contain the mediaType field, you must specify the * imageManifestMediaType in the request.

*/ inline bool ImageManifestMediaTypeHasBeenSet() const { return m_imageManifestMediaTypeHasBeenSet; } /** *

The media type of the image manifest. If you push an image manifest that does * not contain the mediaType field, you must specify the * imageManifestMediaType in the request.

*/ inline void SetImageManifestMediaType(const Aws::String& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = value; } /** *

The media type of the image manifest. If you push an image manifest that does * not contain the mediaType field, you must specify the * imageManifestMediaType in the request.

*/ inline void SetImageManifestMediaType(Aws::String&& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = std::move(value); } /** *

The media type of the image manifest. If you push an image manifest that does * not contain the mediaType field, you must specify the * imageManifestMediaType in the request.

*/ inline void SetImageManifestMediaType(const char* value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType.assign(value); } /** *

The media type of the image manifest. If you push an image manifest that does * not contain the mediaType field, you must specify the * imageManifestMediaType in the request.

*/ inline PutImageRequest& WithImageManifestMediaType(const Aws::String& value) { SetImageManifestMediaType(value); return *this;} /** *

The media type of the image manifest. If you push an image manifest that does * not contain the mediaType field, you must specify the * imageManifestMediaType in the request.

*/ inline PutImageRequest& WithImageManifestMediaType(Aws::String&& value) { SetImageManifestMediaType(std::move(value)); return *this;} /** *

The media type of the image manifest. If you push an image manifest that does * not contain the mediaType field, you must specify the * imageManifestMediaType in the request.

*/ inline PutImageRequest& WithImageManifestMediaType(const char* value) { SetImageManifestMediaType(value); return *this;} /** *

The tag to associate with the image. This parameter is required for images * that use the Docker Image Manifest V2 Schema 2 or Open Container Initiative * (OCI) formats.

*/ inline const Aws::String& GetImageTag() const{ return m_imageTag; } /** *

The tag to associate with the image. This parameter is required for images * that use the Docker Image Manifest V2 Schema 2 or Open Container Initiative * (OCI) formats.

*/ inline bool ImageTagHasBeenSet() const { return m_imageTagHasBeenSet; } /** *

The tag to associate with the image. This parameter is required for images * that use the Docker Image Manifest V2 Schema 2 or Open Container Initiative * (OCI) formats.

*/ inline void SetImageTag(const Aws::String& value) { m_imageTagHasBeenSet = true; m_imageTag = value; } /** *

The tag to associate with the image. This parameter is required for images * that use the Docker Image Manifest V2 Schema 2 or Open Container Initiative * (OCI) formats.

*/ inline void SetImageTag(Aws::String&& value) { m_imageTagHasBeenSet = true; m_imageTag = std::move(value); } /** *

The tag to associate with the image. This parameter is required for images * that use the Docker Image Manifest V2 Schema 2 or Open Container Initiative * (OCI) formats.

*/ inline void SetImageTag(const char* value) { m_imageTagHasBeenSet = true; m_imageTag.assign(value); } /** *

The tag to associate with the image. This parameter is required for images * that use the Docker Image Manifest V2 Schema 2 or Open Container Initiative * (OCI) formats.

*/ inline PutImageRequest& WithImageTag(const Aws::String& value) { SetImageTag(value); return *this;} /** *

The tag to associate with the image. This parameter is required for images * that use the Docker Image Manifest V2 Schema 2 or Open Container Initiative * (OCI) formats.

*/ inline PutImageRequest& WithImageTag(Aws::String&& value) { SetImageTag(std::move(value)); return *this;} /** *

The tag to associate with the image. This parameter is required for images * that use the Docker Image Manifest V2 Schema 2 or Open Container Initiative * (OCI) formats.

*/ inline PutImageRequest& WithImageTag(const char* value) { SetImageTag(value); return *this;} /** *

The image digest of the image manifest corresponding to the image.

*/ inline const Aws::String& GetImageDigest() const{ return m_imageDigest; } /** *

The image digest of the image manifest corresponding to the image.

*/ inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; } /** *

The image digest of the image manifest corresponding to the image.

*/ inline void SetImageDigest(const Aws::String& value) { m_imageDigestHasBeenSet = true; m_imageDigest = value; } /** *

The image digest of the image manifest corresponding to the image.

*/ inline void SetImageDigest(Aws::String&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::move(value); } /** *

The image digest of the image manifest corresponding to the image.

*/ inline void SetImageDigest(const char* value) { m_imageDigestHasBeenSet = true; m_imageDigest.assign(value); } /** *

The image digest of the image manifest corresponding to the image.

*/ inline PutImageRequest& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;} /** *

The image digest of the image manifest corresponding to the image.

*/ inline PutImageRequest& WithImageDigest(Aws::String&& value) { SetImageDigest(std::move(value)); return *this;} /** *

The image digest of the image manifest corresponding to the image.

*/ inline PutImageRequest& WithImageDigest(const char* value) { SetImageDigest(value); return *this;} private: Aws::String m_registryId; bool m_registryIdHasBeenSet = false; Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_imageManifest; bool m_imageManifestHasBeenSet = false; Aws::String m_imageManifestMediaType; bool m_imageManifestMediaTypeHasBeenSet = false; Aws::String m_imageTag; bool m_imageTagHasBeenSet = false; Aws::String m_imageDigest; bool m_imageDigestHasBeenSet = false; }; } // namespace Model } // namespace ECR } // namespace Aws