Class PlatformProperties
java.lang.Object
com.azure.resourcemanager.containerregistry.models.PlatformProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PlatformProperties>
public final class PlatformProperties
extends Object
implements com.azure.json.JsonSerializable<PlatformProperties>
The platform properties against which the run has to happen.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the architecture property: The OS architecture.static PlatformPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PlatformProperties from the JsonReader.os()Get the os property: The operating system type required for the run.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.variant()Get the variant property: Variant of the CPU.withArchitecture(Architecture architecture) Set the architecture property: The OS architecture.Set the os property: The operating system type required for the run.withVariant(Variant variant) Set the variant property: Variant of the CPU.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
PlatformProperties
public PlatformProperties()Creates an instance of PlatformProperties class.
-
-
Method Details
-
os
Get the os property: The operating system type required for the run.- Returns:
- the os value.
-
withOs
Set the os property: The operating system type required for the run.- Parameters:
os- the os value to set.- Returns:
- the PlatformProperties object itself.
-
architecture
Get the architecture property: The OS architecture.- Returns:
- the architecture value.
-
withArchitecture
Set the architecture property: The OS architecture.- Parameters:
architecture- the architecture value to set.- Returns:
- the PlatformProperties object itself.
-
variant
Get the variant property: Variant of the CPU.- Returns:
- the variant value.
-
withVariant
Set the variant property: Variant of the CPU.- Parameters:
variant- the variant value to set.- Returns:
- the PlatformProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<PlatformProperties>- Throws:
IOException
-
fromJson
Reads an instance of PlatformProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PlatformProperties 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 PlatformProperties.
-