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 Summary
ConstructorDescriptionCreates an instance of ArtifactManifestPlatform class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ArtifactManifestPlatform
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ArtifactManifestPlatform from the JsonReader.Get the architecture property: CPU architecture.Get the digest property: Manifest digest.Get the operatingSystem property: Operating system.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter)
-
Constructor Details
-
ArtifactManifestPlatform
public ArtifactManifestPlatform()Creates an instance of ArtifactManifestPlatform class.
-
-
Method Details
-
getDigest
Get the digest property: Manifest digest.- Returns:
- the digest value.
-
getArchitecture
Get the architecture property: CPU architecture.- Returns:
- the architecture value.
-
getOperatingSystem
Get the operatingSystem property: Operating system.- Returns:
- the operatingSystem value.
-
toJson
- Specified by:
toJson
in interfacecom.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.
-