Interface DetectPiiEntitiesResponse.Builder

    • Method Detail

      • entities

        DetectPiiEntitiesResponse.Builder entities​(Collection<PiiEntity> entities)

        A collection of PII entities identified in the input text. For each entity, the response provides the entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.

        Parameters:
        entities - A collection of PII entities identified in the input text. For each entity, the response provides the entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • entities

        DetectPiiEntitiesResponse.Builder entities​(PiiEntity... entities)

        A collection of PII entities identified in the input text. For each entity, the response provides the entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.

        Parameters:
        entities - A collection of PII entities identified in the input text. For each entity, the response provides the entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • entities

        DetectPiiEntitiesResponse.Builder entities​(Consumer<PiiEntity.Builder>... entities)

        A collection of PII entities identified in the input text. For each entity, the response provides the entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #entities(List).

        Parameters:
        entities - a consumer that will call methods on PiiEntity.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #entities(java.util.Collection)