Class OSProfileLinuxConfiguration

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

public final class OSProfileLinuxConfiguration extends Object implements com.azure.json.JsonSerializable<OSProfileLinuxConfiguration>
Specifies the linux configuration for update management.
  • Constructor Details

    • OSProfileLinuxConfiguration

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

    • assessmentMode

      public AssessmentModeTypes assessmentMode()
      Get the assessmentMode property: Specifies the assessment mode.
      Returns:
      the assessmentMode value.
    • withAssessmentMode

      public OSProfileLinuxConfiguration withAssessmentMode(AssessmentModeTypes assessmentMode)
      Set the assessmentMode property: Specifies the assessment mode.
      Parameters:
      assessmentMode - the assessmentMode value to set.
      Returns:
      the OSProfileLinuxConfiguration object itself.
    • patchMode

      public PatchModeTypes patchMode()
      Get the patchMode property: Specifies the patch mode.
      Returns:
      the patchMode value.
    • withPatchMode

      public OSProfileLinuxConfiguration withPatchMode(PatchModeTypes patchMode)
      Set the patchMode property: Specifies the patch mode.
      Parameters:
      patchMode - the patchMode value to set.
      Returns:
      the OSProfileLinuxConfiguration object itself.
    • enableHotpatching

      public Boolean enableHotpatching()
      Get the enableHotpatching property: Captures the hotpatch capability enrollment intent of the customers, which enables customers to patch their Windows machines without requiring a reboot.
      Returns:
      the enableHotpatching value.
    • withEnableHotpatching

      public OSProfileLinuxConfiguration withEnableHotpatching(Boolean enableHotpatching)
      Set the enableHotpatching property: Captures the hotpatch capability enrollment intent of the customers, which enables customers to patch their Windows machines without requiring a reboot.
      Parameters:
      enableHotpatching - the enableHotpatching value to set.
      Returns:
      the OSProfileLinuxConfiguration object itself.
    • status

      public PatchSettingsStatus status()
      Get the status property: Status of the hotpatch capability enrollment or disenrollment.
      Returns:
      the status value.
    • 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<OSProfileLinuxConfiguration>
      Throws:
      IOException
    • fromJson

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