/* * 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 represents an Amazon ECR image layer. /// public partial class Layer { private LayerAvailability _layerAvailability; private string _layerDigest; private long? _layerSize; private string _mediaType; /// /// Gets and sets the property LayerAvailability. /// /// The availability status of the image layer. /// /// public LayerAvailability LayerAvailability { get { return this._layerAvailability; } set { this._layerAvailability = value; } } // Check to see if LayerAvailability property is set internal bool IsSetLayerAvailability() { return this._layerAvailability != null; } /// /// Gets and sets the property LayerDigest. /// /// The sha256 digest of the image layer. /// /// public string LayerDigest { get { return this._layerDigest; } set { this._layerDigest = value; } } // Check to see if LayerDigest property is set internal bool IsSetLayerDigest() { return this._layerDigest != null; } /// /// Gets and sets the property LayerSize. /// /// The size, in bytes, of the image layer. /// /// public long LayerSize { get { return this._layerSize.GetValueOrDefault(); } set { this._layerSize = value; } } // Check to see if LayerSize property is set internal bool IsSetLayerSize() { return this._layerSize.HasValue; } /// /// Gets and sets the property MediaType. /// /// The media type of the layer, such as application/vnd.docker.image.rootfs.diff.tar.gzip /// or application/vnd.oci.image.layer.v1.tar+gzip. /// /// public string MediaType { get { return this._mediaType; } set { this._mediaType = value; } } // Check to see if MediaType property is set internal bool IsSetMediaType() { return this._mediaType != null; } } }