Class WindowsParameters
java.lang.Object
com.azure.resourcemanager.hybridcompute.models.WindowsParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WindowsParameters>
public final class WindowsParameters
extends Object
implements com.azure.json.JsonSerializable<WindowsParameters>
Input for InstallPatches on a Windows VM, as directly received by the API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the classificationsToInclude property: The update classifications to select when installing patches for Windows.Get the excludeKbsRequiringReboot property: Filters out Kbs that don't have an InstallationRebootBehavior of 'NeverReboots' when this is set to true.static WindowsParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WindowsParameters from the JsonReader.Get the kbNumbersToExclude property: Kbs to exclude in the patch operation.Get the kbNumbersToInclude property: Kbs to include in the patch operation.Get the maxPatchPublishDate property: This is used to install patches that were published on or before this given max published date.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withClassificationsToInclude(List<VMGuestPatchClassificationWindows> classificationsToInclude) Set the classificationsToInclude property: The update classifications to select when installing patches for Windows.withExcludeKbsRequiringReboot(Boolean excludeKbsRequiringReboot) Set the excludeKbsRequiringReboot property: Filters out Kbs that don't have an InstallationRebootBehavior of 'NeverReboots' when this is set to true.withKbNumbersToExclude(List<String> kbNumbersToExclude) Set the kbNumbersToExclude property: Kbs to exclude in the patch operation.withKbNumbersToInclude(List<String> kbNumbersToInclude) Set the kbNumbersToInclude property: Kbs to include in the patch operation.withMaxPatchPublishDate(OffsetDateTime maxPatchPublishDate) Set the maxPatchPublishDate property: This is used to install patches that were published on or before this given max published date.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
-
WindowsParameters
public WindowsParameters()Creates an instance of WindowsParameters class.
-
-
Method Details
-
classificationsToInclude
Get the classificationsToInclude property: The update classifications to select when installing patches for Windows.- Returns:
- the classificationsToInclude value.
-
withClassificationsToInclude
public WindowsParameters withClassificationsToInclude(List<VMGuestPatchClassificationWindows> classificationsToInclude) Set the classificationsToInclude property: The update classifications to select when installing patches for Windows.- Parameters:
classificationsToInclude- the classificationsToInclude value to set.- Returns:
- the WindowsParameters object itself.
-
kbNumbersToInclude
Get the kbNumbersToInclude property: Kbs to include in the patch operation.- Returns:
- the kbNumbersToInclude value.
-
withKbNumbersToInclude
Set the kbNumbersToInclude property: Kbs to include in the patch operation.- Parameters:
kbNumbersToInclude- the kbNumbersToInclude value to set.- Returns:
- the WindowsParameters object itself.
-
kbNumbersToExclude
Get the kbNumbersToExclude property: Kbs to exclude in the patch operation.- Returns:
- the kbNumbersToExclude value.
-
withKbNumbersToExclude
Set the kbNumbersToExclude property: Kbs to exclude in the patch operation.- Parameters:
kbNumbersToExclude- the kbNumbersToExclude value to set.- Returns:
- the WindowsParameters object itself.
-
excludeKbsRequiringReboot
Get the excludeKbsRequiringReboot property: Filters out Kbs that don't have an InstallationRebootBehavior of 'NeverReboots' when this is set to true.- Returns:
- the excludeKbsRequiringReboot value.
-
withExcludeKbsRequiringReboot
Set the excludeKbsRequiringReboot property: Filters out Kbs that don't have an InstallationRebootBehavior of 'NeverReboots' when this is set to true.- Parameters:
excludeKbsRequiringReboot- the excludeKbsRequiringReboot value to set.- Returns:
- the WindowsParameters object itself.
-
maxPatchPublishDate
Get the maxPatchPublishDate property: This is used to install patches that were published on or before this given max published date.- Returns:
- the maxPatchPublishDate value.
-
withMaxPatchPublishDate
Set the maxPatchPublishDate property: This is used to install patches that were published on or before this given max published date.- Parameters:
maxPatchPublishDate- the maxPatchPublishDate value to set.- Returns:
- the WindowsParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<WindowsParameters>- Throws:
IOException
-
fromJson
Reads an instance of WindowsParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WindowsParameters 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 WindowsParameters.
-