Interface Patch.Builder

    • Method Detail

      • id

        Patch.Builder id​(String id)

        The ID of the patch. Applies to Windows patches only.

        This ID isn't the same as the Microsoft Knowledge Base ID.

        Parameters:
        id - The ID of the patch. Applies to Windows patches only.

        This ID isn't the same as the Microsoft Knowledge Base ID.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • releaseDate

        Patch.Builder releaseDate​(Instant releaseDate)

        The date the patch was released.

        Parameters:
        releaseDate - The date the patch was released.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • title

        Patch.Builder title​(String title)

        The title of the patch.

        Parameters:
        title - The title of the patch.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        Patch.Builder description​(String description)

        The description of the patch.

        Parameters:
        description - The description of the patch.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • contentUrl

        Patch.Builder contentUrl​(String contentUrl)

        The URL where more information can be obtained about the patch.

        Parameters:
        contentUrl - The URL where more information can be obtained about the patch.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • vendor

        Patch.Builder vendor​(String vendor)

        The name of the vendor providing the patch.

        Parameters:
        vendor - The name of the vendor providing the patch.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • productFamily

        Patch.Builder productFamily​(String productFamily)

        The product family the patch is applicable for. For example, Windows or Amazon Linux 2.

        Parameters:
        productFamily - The product family the patch is applicable for. For example, Windows or Amazon Linux 2.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • product

        Patch.Builder product​(String product)

        The specific product the patch is applicable for. For example, WindowsServer2016 or AmazonLinux2018.03.

        Parameters:
        product - The specific product the patch is applicable for. For example, WindowsServer2016 or AmazonLinux2018.03.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • classification

        Patch.Builder classification​(String classification)

        The classification of the patch. For example, SecurityUpdates, Updates, or CriticalUpdates.

        Parameters:
        classification - The classification of the patch. For example, SecurityUpdates, Updates, or CriticalUpdates.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • msrcSeverity

        Patch.Builder msrcSeverity​(String msrcSeverity)

        The severity of the patch, such as Critical, Important, or Moderate. Applies to Windows patches only.

        Parameters:
        msrcSeverity - The severity of the patch, such as Critical, Important, or Moderate. Applies to Windows patches only.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • kbNumber

        Patch.Builder kbNumber​(String kbNumber)

        The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only.

        Parameters:
        kbNumber - The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • msrcNumber

        Patch.Builder msrcNumber​(String msrcNumber)

        The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to. For example, MS14-045. Applies to Windows patches only.

        Parameters:
        msrcNumber - The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to. For example, MS14-045. Applies to Windows patches only.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • language

        Patch.Builder language​(String language)

        The language of the patch if it's language-specific.

        Parameters:
        language - The language of the patch if it's language-specific.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • advisoryIds

        Patch.Builder advisoryIds​(Collection<String> advisoryIds)

        The Advisory ID of the patch. For example, RHSA-2020:3779. Applies to Linux-based managed nodes only.

        Parameters:
        advisoryIds - The Advisory ID of the patch. For example, RHSA-2020:3779. Applies to Linux-based managed nodes only.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • advisoryIds

        Patch.Builder advisoryIds​(String... advisoryIds)

        The Advisory ID of the patch. For example, RHSA-2020:3779. Applies to Linux-based managed nodes only.

        Parameters:
        advisoryIds - The Advisory ID of the patch. For example, RHSA-2020:3779. Applies to Linux-based managed nodes only.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • bugzillaIds

        Patch.Builder bugzillaIds​(Collection<String> bugzillaIds)

        The Bugzilla ID of the patch. For example, 1600646. Applies to Linux-based managed nodes only.

        Parameters:
        bugzillaIds - The Bugzilla ID of the patch. For example, 1600646. Applies to Linux-based managed nodes only.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • bugzillaIds

        Patch.Builder bugzillaIds​(String... bugzillaIds)

        The Bugzilla ID of the patch. For example, 1600646. Applies to Linux-based managed nodes only.

        Parameters:
        bugzillaIds - The Bugzilla ID of the patch. For example, 1600646. Applies to Linux-based managed nodes only.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • cveIds

        Patch.Builder cveIds​(Collection<String> cveIds)

        The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, CVE-2011-3192. Applies to Linux-based managed nodes only.

        Parameters:
        cveIds - The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, CVE-2011-3192. Applies to Linux-based managed nodes only.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • cveIds

        Patch.Builder cveIds​(String... cveIds)

        The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, CVE-2011-3192. Applies to Linux-based managed nodes only.

        Parameters:
        cveIds - The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, CVE-2011-3192. Applies to Linux-based managed nodes only.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        Patch.Builder name​(String name)

        The name of the patch. Applies to Linux-based managed nodes only.

        Parameters:
        name - The name of the patch. Applies to Linux-based managed nodes only.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • epoch

        Patch.Builder epoch​(Integer epoch)

        The epoch of the patch. For example in pkg-example-EE-20180914-2.2.amzn1.noarch, the epoch value is 20180914-2. Applies to Linux-based managed nodes only.

        Parameters:
        epoch - The epoch of the patch. For example in pkg-example-EE-20180914-2.2.amzn1.noarch, the epoch value is 20180914-2. Applies to Linux-based managed nodes only.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • version

        Patch.Builder version​(String version)

        The version number of the patch. For example, in example-pkg-1.710.10-2.7.abcd.x86_64, the version number is indicated by -1. Applies to Linux-based managed nodes only.

        Parameters:
        version - The version number of the patch. For example, in example-pkg-1.710.10-2.7.abcd.x86_64, the version number is indicated by -1. Applies to Linux-based managed nodes only.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • release

        Patch.Builder release​(String release)

        The particular release of a patch. For example, in pkg-example-EE-20180914-2.2.amzn1.noarch, the release is 2.amaz1. Applies to Linux-based managed nodes only.

        Parameters:
        release - The particular release of a patch. For example, in pkg-example-EE-20180914-2.2.amzn1.noarch, the release is 2.amaz1. Applies to Linux-based managed nodes only.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • arch

        Patch.Builder arch​(String arch)

        The architecture of the patch. For example, in example-pkg-0.710.10-2.7.abcd.x86_64, the architecture is indicated by x86_64. Applies to Linux-based managed nodes only.

        Parameters:
        arch - The architecture of the patch. For example, in example-pkg-0.710.10-2.7.abcd.x86_64, the architecture is indicated by x86_64. Applies to Linux-based managed nodes only.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • severity

        Patch.Builder severity​(String severity)

        The severity level of the patch. For example, CRITICAL or MODERATE.

        Parameters:
        severity - The severity level of the patch. For example, CRITICAL or MODERATE.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • repository

        Patch.Builder repository​(String repository)

        The source patch repository for the operating system and version, such as trusty-security for Ubuntu Server 14.04 LTE and focal-security for Ubuntu Server 20.04 LTE. Applies to Linux-based managed nodes only.

        Parameters:
        repository - The source patch repository for the operating system and version, such as trusty-security for Ubuntu Server 14.04 LTE and focal-security for Ubuntu Server 20.04 LTE. Applies to Linux-based managed nodes only.
        Returns:
        Returns a reference to this object so that method calls can be chained together.