Class OciDescriptor

java.lang.Object
com.azure.containers.containerregistry.models.OciDescriptor
All Implemented Interfaces:
com.azure.json.JsonSerializable<OciDescriptor>

public final class OciDescriptor extends Object implements com.azure.json.JsonSerializable<OciDescriptor>
Docker V2 image layer descriptor including config and layers.
  • Constructor Details

    • OciDescriptor

      public OciDescriptor()
      Creates an instance of OciDescriptor class.
  • Method Details

    • getMediaType

      public String getMediaType()
      Get the mediaType property: Layer media type.
      Returns:
      the mediaType value.
    • setMediaType

      public OciDescriptor setMediaType(String mediaType)
      Set the mediaType property: Layer media type.
      Parameters:
      mediaType - the mediaType value to set.
      Returns:
      the OciDescriptor object itself.
    • getSizeInBytes

      public Long getSizeInBytes()
      Get the sizeInBytes property: Layer size.
      Returns:
      the sizeInBytes value.
    • setSizeInBytes

      public OciDescriptor setSizeInBytes(Long sizeInBytes)
      Set the sizeInBytes property: Layer size.
      Parameters:
      sizeInBytes - the sizeInBytes value to set.
      Returns:
      the OciDescriptor object itself.
    • getDigest

      public String getDigest()
      Get the digest property: Layer digest.
      Returns:
      the digest value.
    • setDigest

      public OciDescriptor setDigest(String digest)
      Set the digest property: Layer digest.
      Parameters:
      digest - the digest value to set.
      Returns:
      the OciDescriptor object itself.
    • getUrls

      public List<String> getUrls()
      Get the urls property: Specifies a list of URIs from which this object may be downloaded.
      Returns:
      the urls value.
    • setUrls

      public OciDescriptor setUrls(List<String> urls)
      Set the urls property: Specifies a list of URIs from which this object may be downloaded.
      Parameters:
      urls - the urls value to set.
      Returns:
      the OciDescriptor object itself.
    • getAnnotations

      public OciAnnotations getAnnotations()
      Get the annotations property: Additional information provided through arbitrary metadata.
      Returns:
      the annotations value.
    • setAnnotations

      public OciDescriptor setAnnotations(OciAnnotations annotations)
      Set the annotations property: Additional information provided through arbitrary metadata.
      Parameters:
      annotations - the annotations value to set.
      Returns:
      the OciDescriptor object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<OciDescriptor>
      Throws:
      IOException
    • fromJson

      public static OciDescriptor fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of OciDescriptor from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of OciDescriptor if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the OciDescriptor.