Class WindowsParameters
java.lang.Object
com.azure.resourcemanager.compute.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.Get the patchNameMasksToExclude property: This is used to exclude patches that match the given patch name masks.Get the patchNameMasksToInclude property: This is used to include patches that match the given patch name masks.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.withPatchNameMasksToExclude(List<String> patchNameMasksToExclude) Set the patchNameMasksToExclude property: This is used to exclude patches that match the given patch name masks.withPatchNameMasksToInclude(List<String> patchNameMasksToInclude) Set the patchNameMasksToInclude property: This is used to include patches that match the given patch name masks.Methods inherited from class 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
-
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
-
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.
-
patchNameMasksToInclude
Get the patchNameMasksToInclude property: This is used to include patches that match the given patch name masks. Alphanumeric strings and wildcard expressions consisting of * and ? are only supported as input values in the list. Null, empty and only whitespaces strings as inputs values are not supported.- Returns:
- the patchNameMasksToInclude value.
-
withPatchNameMasksToInclude
Set the patchNameMasksToInclude property: This is used to include patches that match the given patch name masks. Alphanumeric strings and wildcard expressions consisting of * and ? are only supported as input values in the list. Null, empty and only whitespaces strings as inputs values are not supported.- Parameters:
patchNameMasksToInclude- the patchNameMasksToInclude value to set.- Returns:
- the WindowsParameters object itself.
-
patchNameMasksToExclude
Get the patchNameMasksToExclude property: This is used to exclude patches that match the given patch name masks. Alphanumeric strings and wildcard expressions consisting of * and ? are only supported as input values in the list. Null, empty and only whitespaces strings as inputs values are not supported.- Returns:
- the patchNameMasksToExclude value.
-
withPatchNameMasksToExclude
Set the patchNameMasksToExclude property: This is used to exclude patches that match the given patch name masks. Alphanumeric strings and wildcard expressions consisting of * and ? are only supported as input values in the list. Null, empty and only whitespaces strings as inputs values are not supported.- Parameters:
patchNameMasksToExclude- the patchNameMasksToExclude 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.
-