Class WindowsParameters
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.WindowsParameters
-
public final class WindowsParameters extends Object
Input for InstallPatches on a Windows VM, as directly received by the API.
-
-
Constructor Summary
Constructors Constructor Description WindowsParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<VMGuestPatchClassificationWindows>classificationsToInclude()Get the classificationsToInclude property: The update classifications to select when installing patches for Windows.BooleanexcludeKbsRequiringReboot()Get the excludeKbsRequiringReboot property: Filters out Kbs that don't have an InstallationRebootBehavior of 'NeverReboots' when this is set to true.List<String>kbNumbersToExclude()Get the kbNumbersToExclude property: Kbs to exclude in the patch operation.List<String>kbNumbersToInclude()Get the kbNumbersToInclude property: Kbs to include in the patch operation.OffsetDateTimemaxPatchPublishDate()Get the maxPatchPublishDate property: This is used to install patches that were published on or before this given max published date.voidvalidate()Validates the instance.WindowsParameterswithClassificationsToInclude(List<VMGuestPatchClassificationWindows> classificationsToInclude)Set the classificationsToInclude property: The update classifications to select when installing patches for Windows.WindowsParameterswithExcludeKbsRequiringReboot(Boolean excludeKbsRequiringReboot)Set the excludeKbsRequiringReboot property: Filters out Kbs that don't have an InstallationRebootBehavior of 'NeverReboots' when this is set to true.WindowsParameterswithKbNumbersToExclude(List<String> kbNumbersToExclude)Set the kbNumbersToExclude property: Kbs to exclude in the patch operation.WindowsParameterswithKbNumbersToInclude(List<String> kbNumbersToInclude)Set the kbNumbersToInclude property: Kbs to include in the patch operation.WindowsParameterswithMaxPatchPublishDate(OffsetDateTime maxPatchPublishDate)Set the maxPatchPublishDate property: This is used to install patches that were published on or before this given max published date.
-
-
-
Method Detail
-
classificationsToInclude
public List<VMGuestPatchClassificationWindows> 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
public List<String> kbNumbersToInclude()
Get the kbNumbersToInclude property: Kbs to include in the patch operation.- Returns:
- the kbNumbersToInclude value.
-
withKbNumbersToInclude
public WindowsParameters withKbNumbersToInclude(List<String> kbNumbersToInclude)
Set the kbNumbersToInclude property: Kbs to include in the patch operation.- Parameters:
kbNumbersToInclude- the kbNumbersToInclude value to set.- Returns:
- the WindowsParameters object itself.
-
kbNumbersToExclude
public List<String> kbNumbersToExclude()
Get the kbNumbersToExclude property: Kbs to exclude in the patch operation.- Returns:
- the kbNumbersToExclude value.
-
withKbNumbersToExclude
public WindowsParameters withKbNumbersToExclude(List<String> kbNumbersToExclude)
Set the kbNumbersToExclude property: Kbs to exclude in the patch operation.- Parameters:
kbNumbersToExclude- the kbNumbersToExclude value to set.- Returns:
- the WindowsParameters object itself.
-
excludeKbsRequiringReboot
public Boolean 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
public WindowsParameters withExcludeKbsRequiringReboot(Boolean excludeKbsRequiringReboot)
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
public OffsetDateTime 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
public WindowsParameters withMaxPatchPublishDate(OffsetDateTime maxPatchPublishDate)
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.
-
-