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 Summary
ConstructorsConstructorDescriptionCreates an instance of OSProfileWindowsConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the assessmentMode property: Specifies the assessment mode.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.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OSProfileWindowsConfiguration from the JsonReader.Get the patchMode property: Specifies the patch mode.status()Get the status property: Status of the hotpatch capability enrollment or disenrollment.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAssessmentMode(AssessmentModeTypes assessmentMode) Set the assessmentMode property: Specifies the assessment mode.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.withPatchMode(PatchModeTypes patchMode) Set the patchMode property: Specifies the patch mode.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
-
OSProfileWindowsConfiguration
public OSProfileWindowsConfiguration()Creates an instance of OSProfileWindowsConfiguration class.
-
-
Method Details
-
assessmentMode
Get the assessmentMode property: Specifies the assessment mode.- Returns:
- the assessmentMode value.
-
withAssessmentMode
Set the assessmentMode property: Specifies the assessment mode.- Parameters:
assessmentMode- the assessmentMode value to set.- Returns:
- the OSProfileWindowsConfiguration object itself.
-
patchMode
Get the patchMode property: Specifies the patch mode.- Returns:
- the patchMode value.
-
withPatchMode
Set the patchMode property: Specifies the patch mode.- Parameters:
patchMode- the patchMode value to set.- Returns:
- the OSProfileWindowsConfiguration object itself.
-
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
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
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
- Specified by:
toJsonin interfacecom.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.
-