Interface ClassificationResult.Builder

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

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

    • additionalOccurrences

      ClassificationResult.Builder additionalOccurrences(Boolean additionalOccurrences)

      Specifies whether Amazon Macie detected additional occurrences of sensitive data in the S3 object. A finding includes location data for a maximum of 15 occurrences of sensitive data.

      This value can help you determine whether to investigate additional occurrences of sensitive data in an object. You can do this by referring to the corresponding sensitive data discovery result for the finding (classificationDetails.detailedResultsLocation).

      Parameters:
      additionalOccurrences - Specifies whether Amazon Macie detected additional occurrences of sensitive data in the S3 object. A finding includes location data for a maximum of 15 occurrences of sensitive data.

      This value can help you determine whether to investigate additional occurrences of sensitive data in an object. You can do this by referring to the corresponding sensitive data discovery result for the finding (classificationDetails.detailedResultsLocation).

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customDataIdentifiers

      ClassificationResult.Builder customDataIdentifiers(CustomDataIdentifiers customDataIdentifiers)

      The custom data identifiers that detected the sensitive data and the number of occurrences of the data that they detected.

      Parameters:
      customDataIdentifiers - The custom data identifiers that detected the sensitive data and the number of occurrences of the data that they detected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customDataIdentifiers

      default ClassificationResult.Builder customDataIdentifiers(Consumer<CustomDataIdentifiers.Builder> customDataIdentifiers)

      The custom data identifiers that detected the sensitive data and the number of occurrences of the data that they detected.

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

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

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

      The type of content, as a MIME type, that the finding applies to. For example, application/gzip, for a GNU Gzip compressed archive file, or application/pdf, for an Adobe Portable Document Format file.

      Parameters:
      mimeType - The type of content, as a MIME type, that the finding applies to. For example, application/gzip, for a GNU Gzip compressed archive file, or application/pdf, for an Adobe Portable Document Format file.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sensitiveData

      The category, types, and number of occurrences of the sensitive data that produced the finding.

      Parameters:
      sensitiveData - The category, types, and number of occurrences of the sensitive data that produced the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sensitiveData

      ClassificationResult.Builder sensitiveData(SensitiveDataItem... sensitiveData)

      The category, types, and number of occurrences of the sensitive data that produced the finding.

      Parameters:
      sensitiveData - The category, types, and number of occurrences of the sensitive data that produced the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sensitiveData

      The category, types, and number of occurrences of the sensitive data that produced the finding.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sensitiveData(List<SensitiveDataItem>).

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

      ClassificationResult.Builder sizeClassified(Long sizeClassified)

      The total size, in bytes, of the data that the finding applies to.

      Parameters:
      sizeClassified - The total size, in bytes, of the data that the finding applies to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The status of the finding.

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

      The status of the finding.

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

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

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