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

public final class OSProfile extends Object implements com.azure.json.JsonSerializable<OSProfile>
Specifies the operating system settings for the hybrid machine.
  • Constructor Details

    • OSProfile

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

    • computerName

      public String computerName()
      Get the computerName property: Specifies the host OS name of the hybrid machine.
      Returns:
      the computerName value.
    • windowsConfiguration

      public OSProfileWindowsConfiguration windowsConfiguration()
      Get the windowsConfiguration property: Specifies the windows configuration for update management.
      Returns:
      the windowsConfiguration value.
    • withWindowsConfiguration

      public OSProfile withWindowsConfiguration(OSProfileWindowsConfiguration windowsConfiguration)
      Set the windowsConfiguration property: Specifies the windows configuration for update management.
      Parameters:
      windowsConfiguration - the windowsConfiguration value to set.
      Returns:
      the OSProfile object itself.
    • linuxConfiguration

      public OSProfileLinuxConfiguration linuxConfiguration()
      Get the linuxConfiguration property: Specifies the linux configuration for update management.
      Returns:
      the linuxConfiguration value.
    • withLinuxConfiguration

      public OSProfile withLinuxConfiguration(OSProfileLinuxConfiguration linuxConfiguration)
      Set the linuxConfiguration property: Specifies the linux configuration for update management.
      Parameters:
      linuxConfiguration - the linuxConfiguration value to set.
      Returns:
      the OSProfile 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<OSProfile>
      Throws:
      IOException
    • fromJson

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