Interface DetectPiiEntitiesResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, ComprehendResponse.Builder, CopyableBuilder<DetectPiiEntitiesResponse.Builder,DetectPiiEntitiesResponse>, SdkBuilder<DetectPiiEntitiesResponse.Builder,DetectPiiEntitiesResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
DetectPiiEntitiesResponse

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

    • 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

      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

      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<PiiEntity>).

      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: