/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the ecr-public-2020-10-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.ECRPublic.Model { /// /// An object that describes an image that's returned by a DescribeImages operation. /// public partial class ImageDetail { private string _artifactMediaType; private string _imageDigest; private string _imageManifestMediaType; private DateTime? _imagePushedAt; private long? _imageSizeInBytes; private List _imageTags = new List(); private string _registryId; private string _repositoryName; /// /// Gets and sets the property ArtifactMediaType. /// /// The artifact media type of the image. /// /// public string ArtifactMediaType { get { return this._artifactMediaType; } set { this._artifactMediaType = value; } } // Check to see if ArtifactMediaType property is set internal bool IsSetArtifactMediaType() { return this._artifactMediaType != null; } /// /// Gets and sets the property ImageDigest. /// /// The sha256 digest of the image manifest. /// /// public string ImageDigest { get { return this._imageDigest; } set { this._imageDigest = value; } } // Check to see if ImageDigest property is set internal bool IsSetImageDigest() { return this._imageDigest != null; } /// /// Gets and sets the property ImageManifestMediaType. /// /// The media type of the image manifest. /// /// public string ImageManifestMediaType { get { return this._imageManifestMediaType; } set { this._imageManifestMediaType = value; } } // Check to see if ImageManifestMediaType property is set internal bool IsSetImageManifestMediaType() { return this._imageManifestMediaType != null; } /// /// Gets and sets the property ImagePushedAt. /// /// The date and time, expressed in standard JavaScript date format, that the current /// image was pushed to the repository at. /// /// public DateTime ImagePushedAt { get { return this._imagePushedAt.GetValueOrDefault(); } set { this._imagePushedAt = value; } } // Check to see if ImagePushedAt property is set internal bool IsSetImagePushedAt() { return this._imagePushedAt.HasValue; } /// /// Gets and sets the property 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. /// /// /// public long ImageSizeInBytes { get { return this._imageSizeInBytes.GetValueOrDefault(); } set { this._imageSizeInBytes = value; } } // Check to see if ImageSizeInBytes property is set internal bool IsSetImageSizeInBytes() { return this._imageSizeInBytes.HasValue; } /// /// Gets and sets the property ImageTags. /// /// The list of tags that's associated with this image. /// /// public List ImageTags { get { return this._imageTags; } set { this._imageTags = value; } } // Check to see if ImageTags property is set internal bool IsSetImageTags() { return this._imageTags != null && this._imageTags.Count > 0; } /// /// Gets and sets the property RegistryId. /// /// The Amazon Web Services account ID that's associated with the public registry where /// this image belongs. /// /// public string RegistryId { get { return this._registryId; } set { this._registryId = value; } } // Check to see if RegistryId property is set internal bool IsSetRegistryId() { return this._registryId != null; } /// /// Gets and sets the property RepositoryName. /// /// The name of the repository where this image belongs. /// /// [AWSProperty(Min=2, Max=205)] public string RepositoryName { get { return this._repositoryName; } set { this._repositoryName = value; } } // Check to see if RepositoryName property is set internal bool IsSetRepositoryName() { return this._repositoryName != null; } } }