/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ECRPublic { namespace Model { /** *

An object that describes the image tag details that are returned by a * DescribeImageTags action.

See Also:

AWS * API Reference

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

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 ReferencedImageDetail& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;} /** *

The sha256 digest of the image manifest.

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

The sha256 digest of the image manifest.

*/ inline ReferencedImageDetail& WithImageDigest(const char* value) { SetImageDigest(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 ReferencedImageDetail& WithImageSizeInBytes(long long value) { SetImageSizeInBytes(value); return *this;} /** *

The date and time, expressed in standard JavaScript date format, which the * current image tag 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, which the * current image tag was pushed to the repository at.

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

The date and time, expressed in standard JavaScript date format, which the * current image tag 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, which the * current image tag 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, which the * current image tag was pushed to the repository at.

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

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

*/ inline ReferencedImageDetail& 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 ReferencedImageDetail& WithImageManifestMediaType(const Aws::String& value) { SetImageManifestMediaType(value); return *this;} /** *

The media type of the image manifest.

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

The media type of the image manifest.

*/ inline ReferencedImageDetail& 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 ReferencedImageDetail& WithArtifactMediaType(const Aws::String& value) { SetArtifactMediaType(value); return *this;} /** *

The artifact media type of the image.

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

The artifact media type of the image.

*/ inline ReferencedImageDetail& WithArtifactMediaType(const char* value) { SetArtifactMediaType(value); return *this;} private: Aws::String m_imageDigest; bool m_imageDigestHasBeenSet = 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