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

    • accountId

      Finding.Builder accountId(String accountId)

      The ID of the account in which the finding was generated.

      Parameters:
      accountId - The ID of the account in which the finding was generated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • arn

      The ARN of the finding.

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

      Finding.Builder confidence(Double confidence)

      The confidence score for the finding.

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

      Finding.Builder createdAt(String createdAt)

      The time and date when the finding was created.

      Parameters:
      createdAt - The time and date when the finding was created.
      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.
    • 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.
    • partition

      Finding.Builder partition(String partition)

      The partition associated with the finding.

      Parameters:
      partition - The partition associated with the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • region

      Finding.Builder region(String region)

      The Region where the finding was generated.

      Parameters:
      region - The Region where the finding was generated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resource

      Finding.Builder resource(Resource resource)
      Sets the value of the Resource property for this object.
      Parameters:
      resource - The new value for the Resource property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resource

      default Finding.Builder resource(Consumer<Resource.Builder> resource)
      Sets the value of the Resource property for this object. This is a convenience method that creates an instance of the Resource.Builder avoiding the need to create one manually via Resource.builder().

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

      Parameters:
      resource - a consumer that will call methods on Resource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • schemaVersion

      Finding.Builder schemaVersion(String schemaVersion)

      The version of the schema used for the finding.

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

      Finding.Builder service(Service service)
      Sets the value of the Service property for this object.
      Parameters:
      service - The new value for the Service property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • service

      default Finding.Builder service(Consumer<Service.Builder> service)
      Sets the value of the Service property for this object. This is a convenience method that creates an instance of the Service.Builder avoiding the need to create one manually via Service.builder().

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

      Parameters:
      service - a consumer that will call methods on Service.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • severity

      Finding.Builder severity(Double severity)

      The severity of the finding.

      Parameters:
      severity - The severity 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 title of the finding.

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

      Finding.Builder type(String type)

      The type of finding.

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

      Finding.Builder updatedAt(String updatedAt)

      The time and date when the finding was last updated.

      Parameters:
      updatedAt - The time and date when the finding was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.