Class WindowsUpdate.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • displayName

        public WindowsUpdate.Builder displayName​(String displayName)
        Windows Update name.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • name

        public WindowsUpdate.Builder name​(String name)
        Unique identifier for the Windows update.

        NOTE - This is not an OCID, but is a unique identifier assigned by Microsoft. Example: 6981d463-cd91-4a26-b7c4-ea4ded9183ed

        Parameters:
        name - the value to set
        Returns:
        this builder
      • description

        public WindowsUpdate.Builder description​(String description)
        Information about the Windows Update.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • updateType

        public WindowsUpdate.Builder updateType​(UpdateTypes updateType)
        The purpose of this update.
        Parameters:
        updateType - the value to set
        Returns:
        this builder
      • sizeInBytes

        public WindowsUpdate.Builder sizeInBytes​(Long sizeInBytes)
        size of the package in bytes
        Parameters:
        sizeInBytes - the value to set
        Returns:
        this builder
      • isEligibleForInstallation

        public WindowsUpdate.Builder isEligibleForInstallation​(IsEligibleForInstallation isEligibleForInstallation)
        Indicates whether the update can be installed using OSMS.
        Parameters:
        isEligibleForInstallation - the value to set
        Returns:
        this builder
      • isRebootRequiredForInstallation

        public WindowsUpdate.Builder isRebootRequiredForInstallation​(Boolean isRebootRequiredForInstallation)
        Indicates whether a reboot may be required to complete installation of this update.
        Parameters:
        isRebootRequiredForInstallation - the value to set
        Returns:
        this builder
      • kbArticleIds

        public WindowsUpdate.Builder kbArticleIds​(List<String> kbArticleIds)
        List of the Microsoft Knowledge Base Article Ids related to this Windows Update.
        Parameters:
        kbArticleIds - the value to set
        Returns:
        this builder