Interface ImageScanFinding.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ImageScanFinding.Builder,ImageScanFinding>, SdkBuilder<ImageScanFinding.Builder,ImageScanFinding>, SdkPojo
Enclosing class:
ImageScanFinding

public static interface ImageScanFinding.Builder extends SdkPojo, CopyableBuilder<ImageScanFinding.Builder,ImageScanFinding>
  • Method Details

    • 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

      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.
    • severity

      ImageScanFinding.Builder severity(String severity)

      The finding severity.

      Parameters:
      severity - The finding severity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • severity

      The finding severity.

      Parameters:
      severity - The finding severity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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<Attribute>).

      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: