Interface Finding.Builder

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

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

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

      default Finding.Builder serviceAttributes(Consumer<InspectorServiceAttributes.Builder> serviceAttributes)

      This data type is used in the Finding data type.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to serviceAttributes(InspectorServiceAttributes).

      Parameters:
      serviceAttributes - a consumer that will call methods on InspectorServiceAttributes.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

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

      default Finding.Builder assetAttributes(Consumer<AssetAttributes.Builder> assetAttributes)

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

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to assetAttributes(AssetAttributes).

      Parameters:
      assetAttributes - a consumer that will call methods on AssetAttributes.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

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

      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:
    • 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.
    • updatedAt

      Finding.Builder updatedAt(Instant updatedAt)

      The time when AddAttributesToFindings is called.

      Parameters:
      updatedAt - The time when AddAttributesToFindings is called.
      Returns:
      Returns a reference to this object so that method calls can be chained together.