Interface ImageScanFinding.Builder

    • Method Detail

      • name

        ImageScanFinding.Builder name​(String name)

        The name associated with the finding, usually a CVE number.

        Parameters:
        name - The name associated with the finding, usually a CVE number.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        ImageScanFinding.Builder description​(String description)

        The description of the finding.

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

        ImageScanFinding.Builder uri​(String uri)

        A link containing additional details about the security vulnerability.

        Parameters:
        uri - A link containing additional details about the security vulnerability.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attributes

        ImageScanFinding.Builder attributes​(Collection<Attribute> attributes)

        A collection of attributes of the host from which the finding is generated.

        Parameters:
        attributes - A collection of attributes of the host from which the finding is generated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attributes

        ImageScanFinding.Builder attributes​(Attribute... attributes)

        A collection of attributes of the host from which the finding is generated.

        Parameters:
        attributes - A collection of attributes of the host from which the finding is generated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attributes

        ImageScanFinding.Builder attributes​(Consumer<Attribute.Builder>... attributes)

        A collection of attributes of the host from which the finding is generated.

        This is a convenience method that creates an instance of the Attribute.Builder avoiding the need to create one manually via Attribute.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #attributes(List).

        Parameters:
        attributes - a consumer that will call methods on Attribute.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #attributes(java.util.Collection)