Interface StartPiiEntitiesDetectionJobRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,ComprehendRequest.Builder,CopyableBuilder<StartPiiEntitiesDetectionJobRequest.Builder,StartPiiEntitiesDetectionJobRequest>,SdkBuilder<StartPiiEntitiesDetectionJobRequest.Builder,StartPiiEntitiesDetectionJobRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- StartPiiEntitiesDetectionJobRequest
public static interface StartPiiEntitiesDetectionJobRequest.Builder extends ComprehendRequest.Builder, SdkPojo, CopyableBuilder<StartPiiEntitiesDetectionJobRequest.Builder,StartPiiEntitiesDetectionJobRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StartPiiEntitiesDetectionJobRequest.BuilderclientRequestToken(String clientRequestToken)A unique identifier for the request.StartPiiEntitiesDetectionJobRequest.BuilderdataAccessRoleArn(String dataAccessRoleArn)The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.default StartPiiEntitiesDetectionJobRequest.BuilderinputDataConfig(Consumer<InputDataConfig.Builder> inputDataConfig)The input properties for a PII entities detection job.StartPiiEntitiesDetectionJobRequest.BuilderinputDataConfig(InputDataConfig inputDataConfig)The input properties for a PII entities detection job.StartPiiEntitiesDetectionJobRequest.BuilderjobName(String jobName)The identifier of the job.StartPiiEntitiesDetectionJobRequest.BuilderlanguageCode(String languageCode)The language of the input documents.StartPiiEntitiesDetectionJobRequest.BuilderlanguageCode(LanguageCode languageCode)The language of the input documents.StartPiiEntitiesDetectionJobRequest.Buildermode(String mode)Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.StartPiiEntitiesDetectionJobRequest.Buildermode(PiiEntitiesDetectionMode mode)Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.default StartPiiEntitiesDetectionJobRequest.BuilderoutputDataConfig(Consumer<OutputDataConfig.Builder> outputDataConfig)Provides configuration parameters for the output of PII entity detection jobs.StartPiiEntitiesDetectionJobRequest.BuilderoutputDataConfig(OutputDataConfig outputDataConfig)Provides configuration parameters for the output of PII entity detection jobs.StartPiiEntitiesDetectionJobRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)StartPiiEntitiesDetectionJobRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default StartPiiEntitiesDetectionJobRequest.BuilderredactionConfig(Consumer<RedactionConfig.Builder> redactionConfig)Provides configuration parameters for PII entity redaction.StartPiiEntitiesDetectionJobRequest.BuilderredactionConfig(RedactionConfig redactionConfig)Provides configuration parameters for PII entity redaction.StartPiiEntitiesDetectionJobRequest.Buildertags(Collection<Tag> tags)Tags to associate with the PII entities detection job.StartPiiEntitiesDetectionJobRequest.Buildertags(Consumer<Tag.Builder>... tags)Tags to associate with the PII entities detection job.StartPiiEntitiesDetectionJobRequest.Buildertags(Tag... tags)Tags to associate with the PII entities detection job.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.comprehend.model.ComprehendRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
inputDataConfig
StartPiiEntitiesDetectionJobRequest.Builder inputDataConfig(InputDataConfig inputDataConfig)
The input properties for a PII entities detection job.
- Parameters:
inputDataConfig- The input properties for a PII entities detection job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputDataConfig
default StartPiiEntitiesDetectionJobRequest.Builder inputDataConfig(Consumer<InputDataConfig.Builder> inputDataConfig)
The input properties for a PII entities detection job.
This is a convenience method that creates an instance of theInputDataConfig.Builderavoiding the need to create one manually viaInputDataConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinputDataConfig(InputDataConfig).- Parameters:
inputDataConfig- a consumer that will call methods onInputDataConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
inputDataConfig(InputDataConfig)
-
outputDataConfig
StartPiiEntitiesDetectionJobRequest.Builder outputDataConfig(OutputDataConfig outputDataConfig)
Provides configuration parameters for the output of PII entity detection jobs.
- Parameters:
outputDataConfig- Provides configuration parameters for the output of PII entity detection jobs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputDataConfig
default StartPiiEntitiesDetectionJobRequest.Builder outputDataConfig(Consumer<OutputDataConfig.Builder> outputDataConfig)
Provides configuration parameters for the output of PII entity detection jobs.
This is a convenience method that creates an instance of theOutputDataConfig.Builderavoiding the need to create one manually viaOutputDataConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooutputDataConfig(OutputDataConfig).- Parameters:
outputDataConfig- a consumer that will call methods onOutputDataConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
outputDataConfig(OutputDataConfig)
-
mode
StartPiiEntitiesDetectionJobRequest.Builder mode(String mode)
Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.
- Parameters:
mode- Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PiiEntitiesDetectionMode,PiiEntitiesDetectionMode
-
mode
StartPiiEntitiesDetectionJobRequest.Builder mode(PiiEntitiesDetectionMode mode)
Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.
- Parameters:
mode- Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PiiEntitiesDetectionMode,PiiEntitiesDetectionMode
-
redactionConfig
StartPiiEntitiesDetectionJobRequest.Builder redactionConfig(RedactionConfig redactionConfig)
Provides configuration parameters for PII entity redaction.
This parameter is required if you set the
Modeparameter toONLY_REDACTION. In that case, you must provide aRedactionConfigdefinition that includes thePiiEntityTypesparameter.- Parameters:
redactionConfig- Provides configuration parameters for PII entity redaction.This parameter is required if you set the
Modeparameter toONLY_REDACTION. In that case, you must provide aRedactionConfigdefinition that includes thePiiEntityTypesparameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
redactionConfig
default StartPiiEntitiesDetectionJobRequest.Builder redactionConfig(Consumer<RedactionConfig.Builder> redactionConfig)
Provides configuration parameters for PII entity redaction.
This parameter is required if you set the
This is a convenience method that creates an instance of theModeparameter toONLY_REDACTION. In that case, you must provide aRedactionConfigdefinition that includes thePiiEntityTypesparameter.RedactionConfig.Builderavoiding the need to create one manually viaRedactionConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toredactionConfig(RedactionConfig).- Parameters:
redactionConfig- a consumer that will call methods onRedactionConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
redactionConfig(RedactionConfig)
-
dataAccessRoleArn
StartPiiEntitiesDetectionJobRequest.Builder dataAccessRoleArn(String dataAccessRoleArn)
The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.
- Parameters:
dataAccessRoleArn- The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobName
StartPiiEntitiesDetectionJobRequest.Builder jobName(String jobName)
The identifier of the job.
- Parameters:
jobName- The identifier of the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
languageCode
StartPiiEntitiesDetectionJobRequest.Builder languageCode(String languageCode)
The language of the input documents. Enter the language code for English (en) or Spanish (es).
- Parameters:
languageCode- The language of the input documents. Enter the language code for English (en) or Spanish (es).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LanguageCode,LanguageCode
-
languageCode
StartPiiEntitiesDetectionJobRequest.Builder languageCode(LanguageCode languageCode)
The language of the input documents. Enter the language code for English (en) or Spanish (es).
- Parameters:
languageCode- The language of the input documents. Enter the language code for English (en) or Spanish (es).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LanguageCode,LanguageCode
-
clientRequestToken
StartPiiEntitiesDetectionJobRequest.Builder clientRequestToken(String clientRequestToken)
A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
- Parameters:
clientRequestToken- A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
StartPiiEntitiesDetectionJobRequest.Builder tags(Collection<Tag> tags)
Tags to associate with the PII entities detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.
- Parameters:
tags- Tags to associate with the PII entities detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
StartPiiEntitiesDetectionJobRequest.Builder tags(Tag... tags)
Tags to associate with the PII entities detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.
- Parameters:
tags- Tags to associate with the PII entities detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
StartPiiEntitiesDetectionJobRequest.Builder tags(Consumer<Tag.Builder>... tags)
Tags to associate with the PII entities detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
overrideConfiguration
StartPiiEntitiesDetectionJobRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
StartPiiEntitiesDetectionJobRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-