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 unique identifier for the Amazon Web Services account that the finding applies to. This is typically the account that owns the affected resource.

      Parameters:
      accountId - The unique identifier for the Amazon Web Services account that the finding applies to. This is typically the account that owns the affected resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • archived

      Finding.Builder archived(Boolean archived)

      Specifies whether the finding is archived (suppressed).

      Parameters:
      archived - Specifies whether the finding is archived (suppressed).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • category

      Finding.Builder category(String category)

      The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and, POLICY, for a policy finding.

      Parameters:
      category - The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and, POLICY, for a policy finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • category

      Finding.Builder category(FindingCategory category)

      The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and, POLICY, for a policy finding.

      Parameters:
      category - The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and, POLICY, for a policy finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • classificationDetails

      Finding.Builder classificationDetails(ClassificationDetails classificationDetails)

      The details of a sensitive data finding. This value is null for a policy finding.

      Parameters:
      classificationDetails - The details of a sensitive data finding. This value is null for a policy finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • classificationDetails

      default Finding.Builder classificationDetails(Consumer<ClassificationDetails.Builder> classificationDetails)

      The details of a sensitive data finding. This value is null for a policy finding.

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

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

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

      Finding.Builder count(Long count)

      The total number of occurrences of the finding. For sensitive data findings, this value is always 1. All sensitive data findings are considered unique.

      Parameters:
      count - The total number of occurrences of the finding. For sensitive data findings, this value is always 1. All sensitive data findings are considered unique.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      Finding.Builder createdAt(Instant createdAt)

      The date and time, in UTC and extended ISO 8601 format, when Amazon Macie created the finding.

      Parameters:
      createdAt - The date and time, in UTC and extended ISO 8601 format, when Amazon Macie created 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.
    • id

      The unique identifier for the finding. This is a random string that Amazon Macie generates and assigns to a finding when it creates the finding.

      Parameters:
      id - The unique identifier for the finding. This is a random string that Amazon Macie generates and assigns to a finding when it creates the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • partition

      Finding.Builder partition(String partition)

      The Amazon Web Services partition that Amazon Macie created the finding in.

      Parameters:
      partition - The Amazon Web Services partition that Amazon Macie created the finding in.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyDetails

      Finding.Builder policyDetails(PolicyDetails policyDetails)

      The details of a policy finding. This value is null for a sensitive data finding.

      Parameters:
      policyDetails - The details of a policy finding. This value is null for a sensitive data finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyDetails

      default Finding.Builder policyDetails(Consumer<PolicyDetails.Builder> policyDetails)

      The details of a policy finding. This value is null for a sensitive data finding.

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

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

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

      Finding.Builder region(String region)

      The Amazon Web Services Region that Amazon Macie created the finding in.

      Parameters:
      region - The Amazon Web Services Region that Amazon Macie created the finding in.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourcesAffected

      Finding.Builder resourcesAffected(ResourcesAffected resourcesAffected)

      The resources that the finding applies to.

      Parameters:
      resourcesAffected - The resources that the finding applies to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourcesAffected

      default Finding.Builder resourcesAffected(Consumer<ResourcesAffected.Builder> resourcesAffected)

      The resources that the finding applies to.

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

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

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

      Finding.Builder sample(Boolean sample)

      Specifies whether the finding is a sample finding. A sample finding is a finding that uses example data to demonstrate what a finding might contain.

      Parameters:
      sample - Specifies whether the finding is a sample finding. A sample finding is a finding that uses example data to demonstrate what a finding might contain.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • schemaVersion

      Finding.Builder schemaVersion(String schemaVersion)

      The version of the schema that was used to define the data structures in the finding.

      Parameters:
      schemaVersion - The version of the schema that was used to define the data structures in the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • severity

      Finding.Builder severity(Severity severity)

      The severity level and score for the finding.

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

      default Finding.Builder severity(Consumer<Severity.Builder> severity)

      The severity level and score for the finding.

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

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

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

      Finding.Builder title(String title)

      The brief description of the finding.

      Parameters:
      title - The brief description 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 the finding.

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

      The type of the finding.

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

      Finding.Builder updatedAt(Instant updatedAt)

      The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last updated the finding. For sensitive data findings, this value is the same as the value for the createdAt property. All sensitive data findings are considered new.

      Parameters:
      updatedAt - The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last updated the finding. For sensitive data findings, this value is the same as the value for the createdAt property. All sensitive data findings are considered new.
      Returns:
      Returns a reference to this object so that method calls can be chained together.