Class OSProfileWindowsConfiguration

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

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

    • OSProfileWindowsConfiguration

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

    • assessmentMode

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

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

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

      public OSProfileWindowsConfiguration withPatchMode(PatchModeTypes patchMode)
      Set the patchMode property: Specifies the patch mode.
      Parameters:
      patchMode - the patchMode value to set.
      Returns:
      the OSProfileWindowsConfiguration 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 OSProfileWindowsConfiguration 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 OSProfileWindowsConfiguration 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<OSProfileWindowsConfiguration>
      Throws:
      IOException
    • fromJson

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