/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ECRPublic { namespace Model { /** *

An object that describes an image that's returned by a DescribeImages * operation.

See Also:

AWS * API Reference

*/ class ImageDetail { public: AWS_ECRPUBLIC_API ImageDetail(); AWS_ECRPUBLIC_API ImageDetail(Aws::Utils::Json::JsonView jsonValue); AWS_ECRPUBLIC_API ImageDetail& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ECRPUBLIC_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Web Services account ID that's associated with the public registry * where this image belongs.

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

The Amazon Web Services account ID that's associated with the public registry * where this image belongs.

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

The Amazon Web Services account ID that's associated with the public registry * where this image belongs.

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

The Amazon Web Services account ID that's associated with the public registry * where this image belongs.

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

The Amazon Web Services account ID that's associated with the public registry * where this image belongs.

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

The Amazon Web Services account ID that's associated with the public registry * where this image belongs.

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

The Amazon Web Services account ID that's associated with the public registry * where this image belongs.

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

The Amazon Web Services account ID that's associated with the public registry * where this image belongs.

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

The name of the repository where this image belongs.

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

The name of the repository where this image belongs.

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

The name of the repository where this image belongs.

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

The name of the repository where this image belongs.

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

The name of the repository where this image belongs.

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

The name of the repository where this image belongs.

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

The name of the repository where this image belongs.

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

The name of the repository where this image belongs.

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

The sha256 digest of the image manifest.

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

The sha256 digest of the image manifest.

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

The sha256 digest of the image manifest.

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

The sha256 digest of the image manifest.

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

The sha256 digest of the image manifest.

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

The sha256 digest of the image manifest.

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

The sha256 digest of the image manifest.

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

The sha256 digest of the image manifest.

*/ inline ImageDetail& WithImageDigest(const char* value) { SetImageDigest(value); return *this;} /** *

The list of tags that's associated with this image.

*/ inline const Aws::Vector& GetImageTags() const{ return m_imageTags; } /** *

The list of tags that's associated with this image.

*/ inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; } /** *

The list of tags that's associated with this image.

*/ inline void SetImageTags(const Aws::Vector& value) { m_imageTagsHasBeenSet = true; m_imageTags = value; } /** *

The list of tags that's associated with this image.

*/ inline void SetImageTags(Aws::Vector&& value) { m_imageTagsHasBeenSet = true; m_imageTags = std::move(value); } /** *

The list of tags that's associated with this image.

*/ inline ImageDetail& WithImageTags(const Aws::Vector& value) { SetImageTags(value); return *this;} /** *

The list of tags that's associated with this image.

*/ inline ImageDetail& WithImageTags(Aws::Vector&& value) { SetImageTags(std::move(value)); return *this;} /** *

The list of tags that's associated with this image.

*/ inline ImageDetail& AddImageTags(const Aws::String& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; } /** *

The list of tags that's associated with this image.

*/ inline ImageDetail& AddImageTags(Aws::String&& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(std::move(value)); return *this; } /** *

The list of tags that's associated with this image.

*/ inline ImageDetail& AddImageTags(const char* value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; } /** *

The size, in bytes, of the image in the repository.

If the image is a * manifest list, this is the max size of all manifests in the list.

*

Beginning with Docker version 1.9, the Docker client compresses image layers * before pushing them to a V2 Docker registry. The output of the docker * images command shows the uncompressed image size, so it might return a * larger image size than the image sizes that are returned by * DescribeImages.

*/ inline long long GetImageSizeInBytes() const{ return m_imageSizeInBytes; } /** *

The size, in bytes, of the image in the repository.

If the image is a * manifest list, this is the max size of all manifests in the list.

*

Beginning with Docker version 1.9, the Docker client compresses image layers * before pushing them to a V2 Docker registry. The output of the docker * images command shows the uncompressed image size, so it might return a * larger image size than the image sizes that are returned by * DescribeImages.

*/ inline bool ImageSizeInBytesHasBeenSet() const { return m_imageSizeInBytesHasBeenSet; } /** *

The size, in bytes, of the image in the repository.

If the image is a * manifest list, this is the max size of all manifests in the list.

*

Beginning with Docker version 1.9, the Docker client compresses image layers * before pushing them to a V2 Docker registry. The output of the docker * images command shows the uncompressed image size, so it might return a * larger image size than the image sizes that are returned by * DescribeImages.

*/ inline void SetImageSizeInBytes(long long value) { m_imageSizeInBytesHasBeenSet = true; m_imageSizeInBytes = value; } /** *

The size, in bytes, of the image in the repository.

If the image is a * manifest list, this is the max size of all manifests in the list.

*

Beginning with Docker version 1.9, the Docker client compresses image layers * before pushing them to a V2 Docker registry. The output of the docker * images command shows the uncompressed image size, so it might return a * larger image size than the image sizes that are returned by * DescribeImages.

*/ inline ImageDetail& WithImageSizeInBytes(long long value) { SetImageSizeInBytes(value); return *this;} /** *

The date and time, expressed in standard JavaScript date format, that the * current image was pushed to the repository at.

*/ inline const Aws::Utils::DateTime& GetImagePushedAt() const{ return m_imagePushedAt; } /** *

The date and time, expressed in standard JavaScript date format, that the * current image was pushed to the repository at.

*/ inline bool ImagePushedAtHasBeenSet() const { return m_imagePushedAtHasBeenSet; } /** *

The date and time, expressed in standard JavaScript date format, that the * current image was pushed to the repository at.

*/ inline void SetImagePushedAt(const Aws::Utils::DateTime& value) { m_imagePushedAtHasBeenSet = true; m_imagePushedAt = value; } /** *

The date and time, expressed in standard JavaScript date format, that the * current image was pushed to the repository at.

*/ inline void SetImagePushedAt(Aws::Utils::DateTime&& value) { m_imagePushedAtHasBeenSet = true; m_imagePushedAt = std::move(value); } /** *

The date and time, expressed in standard JavaScript date format, that the * current image was pushed to the repository at.

*/ inline ImageDetail& WithImagePushedAt(const Aws::Utils::DateTime& value) { SetImagePushedAt(value); return *this;} /** *

The date and time, expressed in standard JavaScript date format, that the * current image was pushed to the repository at.

*/ inline ImageDetail& WithImagePushedAt(Aws::Utils::DateTime&& value) { SetImagePushedAt(std::move(value)); return *this;} /** *

The media type of the image manifest.

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

The media type of the image manifest.

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

The media type of the image manifest.

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

The media type of the image manifest.

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

The media type of the image manifest.

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

The media type of the image manifest.

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

The media type of the image manifest.

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

The media type of the image manifest.

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

The artifact media type of the image.

*/ inline const Aws::String& GetArtifactMediaType() const{ return m_artifactMediaType; } /** *

The artifact media type of the image.

*/ inline bool ArtifactMediaTypeHasBeenSet() const { return m_artifactMediaTypeHasBeenSet; } /** *

The artifact media type of the image.

*/ inline void SetArtifactMediaType(const Aws::String& value) { m_artifactMediaTypeHasBeenSet = true; m_artifactMediaType = value; } /** *

The artifact media type of the image.

*/ inline void SetArtifactMediaType(Aws::String&& value) { m_artifactMediaTypeHasBeenSet = true; m_artifactMediaType = std::move(value); } /** *

The artifact media type of the image.

*/ inline void SetArtifactMediaType(const char* value) { m_artifactMediaTypeHasBeenSet = true; m_artifactMediaType.assign(value); } /** *

The artifact media type of the image.

*/ inline ImageDetail& WithArtifactMediaType(const Aws::String& value) { SetArtifactMediaType(value); return *this;} /** *

The artifact media type of the image.

*/ inline ImageDetail& WithArtifactMediaType(Aws::String&& value) { SetArtifactMediaType(std::move(value)); return *this;} /** *

The artifact media type of the image.

*/ inline ImageDetail& WithArtifactMediaType(const char* value) { SetArtifactMediaType(value); return *this;} private: Aws::String m_registryId; bool m_registryIdHasBeenSet = false; Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_imageDigest; bool m_imageDigestHasBeenSet = false; Aws::Vector m_imageTags; bool m_imageTagsHasBeenSet = false; long long m_imageSizeInBytes; bool m_imageSizeInBytesHasBeenSet = false; Aws::Utils::DateTime m_imagePushedAt; bool m_imagePushedAtHasBeenSet = false; Aws::String m_imageManifestMediaType; bool m_imageManifestMediaTypeHasBeenSet = false; Aws::String m_artifactMediaType; bool m_artifactMediaTypeHasBeenSet = false; }; } // namespace Model } // namespace ECRPublic } // namespace Aws