Interface DetectToxicContentRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,ComprehendRequest.Builder
,CopyableBuilder<DetectToxicContentRequest.Builder,
,DetectToxicContentRequest> SdkBuilder<DetectToxicContentRequest.Builder,
,DetectToxicContentRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
DetectToxicContentRequest
public static interface DetectToxicContentRequest.Builder
extends ComprehendRequest.Builder, SdkPojo, CopyableBuilder<DetectToxicContentRequest.Builder,DetectToxicContentRequest>
-
Method Summary
Modifier and TypeMethodDescriptionlanguageCode
(String languageCode) The language of the input text.languageCode
(LanguageCode languageCode) The language of the input text.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.textSegments
(Collection<TextSegment> textSegments) A list of up to 10 text strings.textSegments
(Consumer<TextSegment.Builder>... textSegments) A list of up to 10 text strings.textSegments
(TextSegment... textSegments) A list of up to 10 text strings.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 Details
-
textSegments
A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.
- Parameters:
textSegments
- A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textSegments
A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.
- Parameters:
textSegments
- A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textSegments
A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.
This is a convenience method that creates an instance of theTextSegment.Builder
avoiding the need to create one manually viaTextSegment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totextSegments(List<TextSegment>)
.- Parameters:
textSegments
- a consumer that will call methods onTextSegment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
languageCode
The language of the input text. Currently, English is the only supported language.
- Parameters:
languageCode
- The language of the input text. Currently, English is the only supported language.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
languageCode
The language of the input text. Currently, English is the only supported language.
- Parameters:
languageCode
- The language of the input text. Currently, English is the only supported language.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
DetectToxicContentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
DetectToxicContentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-