Class ArtifactManifestPlatform

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

public final class ArtifactManifestPlatform extends Object implements com.azure.json.JsonSerializable<ArtifactManifestPlatform>
The artifact's platform, consisting of operating system and architecture.
  • Constructor Details

    • ArtifactManifestPlatform

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

    • getDigest

      public String getDigest()
      Get the digest property: Manifest digest.
      Returns:
      the digest value.
    • getArchitecture

      public ArtifactArchitecture getArchitecture()
      Get the architecture property: CPU architecture.
      Returns:
      the architecture value.
    • getOperatingSystem

      public ArtifactOperatingSystem getOperatingSystem()
      Get the operatingSystem property: Operating system.
      Returns:
      the operatingSystem value.
    • toJson

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

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