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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DetectToxicContentRequest.BuilderlanguageCode(String languageCode)The language of the input text.DetectToxicContentRequest.BuilderlanguageCode(LanguageCode languageCode)The language of the input text.DetectToxicContentRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)DetectToxicContentRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)DetectToxicContentRequest.BuildertextSegments(Collection<TextSegment> textSegments)A list of up to 10 text strings.DetectToxicContentRequest.BuildertextSegments(Consumer<TextSegment.Builder>... textSegments)A list of up to 10 text strings.DetectToxicContentRequest.BuildertextSegments(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 Detail
-
textSegments
DetectToxicContentRequest.Builder textSegments(Collection<TextSegment> 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
DetectToxicContentRequest.Builder textSegments(TextSegment... 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
DetectToxicContentRequest.Builder textSegments(Consumer<TextSegment.Builder>... 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.Builderavoiding the need to create one manually viaTextSegment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#textSegments(List.) - 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:
#textSegments(java.util.Collection)
-
languageCode
DetectToxicContentRequest.Builder languageCode(String 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,LanguageCode
-
languageCode
DetectToxicContentRequest.Builder languageCode(LanguageCode 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,LanguageCode
-
overrideConfiguration
DetectToxicContentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
DetectToxicContentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-