Interface Finding.Builder

    • Method Detail

      • arn

        Finding.Builder arn​(String arn)

        The ARN that specifies the finding.

        Parameters:
        arn - The ARN that specifies the finding.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • schemaVersion

        Finding.Builder schemaVersion​(Integer schemaVersion)

        The schema version of this data type.

        Parameters:
        schemaVersion - The schema version of this data type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • service

        Finding.Builder service​(String service)

        The data element is set to "Inspector".

        Parameters:
        service - The data element is set to "Inspector".
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • serviceAttributes

        Finding.Builder serviceAttributes​(InspectorServiceAttributes serviceAttributes)

        This data type is used in the Finding data type.

        Parameters:
        serviceAttributes - This data type is used in the Finding data type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • assetType

        Finding.Builder assetType​(String assetType)

        The type of the host from which the finding is generated.

        Parameters:
        assetType - The type of the host from which the finding is generated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AssetType, AssetType
      • assetType

        Finding.Builder assetType​(AssetType assetType)

        The type of the host from which the finding is generated.

        Parameters:
        assetType - The type of the host from which the finding is generated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AssetType, AssetType
      • assetAttributes

        Finding.Builder assetAttributes​(AssetAttributes assetAttributes)

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

        Parameters:
        assetAttributes - 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.
      • id

        Finding.Builder id​(String id)

        The ID of the finding.

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

        Finding.Builder title​(String title)

        The name of the finding.

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

        Finding.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.
      • recommendation

        Finding.Builder recommendation​(String recommendation)

        The recommendation for the finding.

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

        Finding.Builder severity​(String severity)

        The finding severity. Values can be set to High, Medium, Low, and Informational.

        Parameters:
        severity - The finding severity. Values can be set to High, Medium, Low, and Informational.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Severity, Severity
      • severity

        Finding.Builder severity​(Severity severity)

        The finding severity. Values can be set to High, Medium, Low, and Informational.

        Parameters:
        severity - The finding severity. Values can be set to High, Medium, Low, and Informational.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Severity, Severity
      • numericSeverity

        Finding.Builder numericSeverity​(Double numericSeverity)

        The numeric value of the finding severity.

        Parameters:
        numericSeverity - The numeric value of the finding severity.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • confidence

        Finding.Builder confidence​(Integer confidence)

        This data element is currently not used.

        Parameters:
        confidence - This data element is currently not used.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • indicatorOfCompromise

        Finding.Builder indicatorOfCompromise​(Boolean indicatorOfCompromise)

        This data element is currently not used.

        Parameters:
        indicatorOfCompromise - This data element is currently not used.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attributes

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

        The system-defined attributes for the finding.

        Parameters:
        attributes - The system-defined attributes for the finding.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attributes

        Finding.Builder attributes​(Attribute... attributes)

        The system-defined attributes for the finding.

        Parameters:
        attributes - The system-defined attributes for the finding.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attributes

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

        The system-defined attributes for the finding.

        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)
      • userAttributes

        Finding.Builder userAttributes​(Collection<Attribute> userAttributes)

        The user-defined attributes that are assigned to the finding.

        Parameters:
        userAttributes - The user-defined attributes that are assigned to the finding.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • userAttributes

        Finding.Builder userAttributes​(Attribute... userAttributes)

        The user-defined attributes that are assigned to the finding.

        Parameters:
        userAttributes - The user-defined attributes that are assigned to the finding.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • userAttributes

        Finding.Builder userAttributes​(Consumer<Attribute.Builder>... userAttributes)

        The user-defined attributes that are assigned to the finding.

        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 #userAttributes(List).

        Parameters:
        userAttributes - 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:
        #userAttributes(java.util.Collection)
      • createdAt

        Finding.Builder createdAt​(Instant createdAt)

        The time when the finding was generated.

        Parameters:
        createdAt - The time when the finding was generated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.