Class WindowsProperties
java.lang.Object
com.azure.resourcemanager.automation.models.WindowsProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WindowsProperties>
public final class WindowsProperties
extends Object
implements com.azure.json.JsonSerializable<WindowsProperties>
Windows specific update configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the excludedKbNumbers property: KB numbers excluded from the software update configuration.static WindowsProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of WindowsProperties from the JsonReader.Get the includedKbNumbers property: KB numbers included from the software update configuration.Get the includedUpdateClassifications property: Update classification included in the software update configuration.Get the rebootSetting property: Reboot setting for the software update configuration.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withExcludedKbNumbers
(List<String> excludedKbNumbers) Set the excludedKbNumbers property: KB numbers excluded from the software update configuration.withIncludedKbNumbers
(List<String> includedKbNumbers) Set the includedKbNumbers property: KB numbers included from the software update configuration.withIncludedUpdateClassifications
(WindowsUpdateClasses includedUpdateClassifications) Set the includedUpdateClassifications property: Update classification included in the software update configuration.withRebootSetting
(String rebootSetting) Set the rebootSetting property: Reboot setting for the software update configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WindowsProperties
public WindowsProperties()Creates an instance of WindowsProperties class.
-
-
Method Details
-
includedUpdateClassifications
Get the includedUpdateClassifications property: Update classification included in the software update configuration. A comma separated string with required values.- Returns:
- the includedUpdateClassifications value.
-
withIncludedUpdateClassifications
public WindowsProperties withIncludedUpdateClassifications(WindowsUpdateClasses includedUpdateClassifications) Set the includedUpdateClassifications property: Update classification included in the software update configuration. A comma separated string with required values.- Parameters:
includedUpdateClassifications
- the includedUpdateClassifications value to set.- Returns:
- the WindowsProperties object itself.
-
excludedKbNumbers
Get the excludedKbNumbers property: KB numbers excluded from the software update configuration.- Returns:
- the excludedKbNumbers value.
-
withExcludedKbNumbers
Set the excludedKbNumbers property: KB numbers excluded from the software update configuration.- Parameters:
excludedKbNumbers
- the excludedKbNumbers value to set.- Returns:
- the WindowsProperties object itself.
-
includedKbNumbers
Get the includedKbNumbers property: KB numbers included from the software update configuration.- Returns:
- the includedKbNumbers value.
-
withIncludedKbNumbers
Set the includedKbNumbers property: KB numbers included from the software update configuration.- Parameters:
includedKbNumbers
- the includedKbNumbers value to set.- Returns:
- the WindowsProperties object itself.
-
rebootSetting
Get the rebootSetting property: Reboot setting for the software update configuration.- Returns:
- the rebootSetting value.
-
withRebootSetting
Set the rebootSetting property: Reboot setting for the software update configuration.- Parameters:
rebootSetting
- the rebootSetting value to set.- Returns:
- the WindowsProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<WindowsProperties>
- Throws:
IOException
-
fromJson
Reads an instance of WindowsProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of WindowsProperties 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 WindowsProperties.
-