Class PlatformUpdateParameters

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

public final class PlatformUpdateParameters extends Object implements com.azure.json.JsonSerializable<PlatformUpdateParameters>
The properties for updating the platform configuration.
  • Constructor Details

    • PlatformUpdateParameters

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

    • os

      public OS os()
      Get the os property: The operating system type required for the run.
      Returns:
      the os value.
    • withOs

      public PlatformUpdateParameters withOs(OS os)
      Set the os property: The operating system type required for the run.
      Parameters:
      os - the os value to set.
      Returns:
      the PlatformUpdateParameters object itself.
    • architecture

      public Architecture architecture()
      Get the architecture property: The OS architecture.
      Returns:
      the architecture value.
    • withArchitecture

      public PlatformUpdateParameters withArchitecture(Architecture architecture)
      Set the architecture property: The OS architecture.
      Parameters:
      architecture - the architecture value to set.
      Returns:
      the PlatformUpdateParameters object itself.
    • variant

      public Variant variant()
      Get the variant property: Variant of the CPU.
      Returns:
      the variant value.
    • withVariant

      public PlatformUpdateParameters withVariant(Variant variant)
      Set the variant property: Variant of the CPU.
      Parameters:
      variant - the variant value to set.
      Returns:
      the PlatformUpdateParameters object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

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

      public static PlatformUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of PlatformUpdateParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of PlatformUpdateParameters 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 PlatformUpdateParameters.