Interface AppliedTerminology.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<AppliedTerminology.Builder,AppliedTerminology>
,SdkBuilder<AppliedTerminology.Builder,AppliedTerminology>
,SdkPojo
- Enclosing class:
- AppliedTerminology
public static interface AppliedTerminology.Builder extends SdkPojo, CopyableBuilder<AppliedTerminology.Builder,AppliedTerminology>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AppliedTerminology.Builder
name(String name)
The name of the custom terminology applied to the input text by Amazon Translate for the translated text response.AppliedTerminology.Builder
terms(Collection<Term> terms)
The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response.AppliedTerminology.Builder
terms(Consumer<Term.Builder>... terms)
The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response.AppliedTerminology.Builder
terms(Term... terms)
The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response.-
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
-
name
AppliedTerminology.Builder name(String name)
The name of the custom terminology applied to the input text by Amazon Translate for the translated text response.
- Parameters:
name
- The name of the custom terminology applied to the input text by Amazon Translate for the translated text response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
terms
AppliedTerminology.Builder terms(Collection<Term> terms)
The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.
- Parameters:
terms
- The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
terms
AppliedTerminology.Builder terms(Term... terms)
The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.
- Parameters:
terms
- The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
terms
AppliedTerminology.Builder terms(Consumer<Term.Builder>... terms)
The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.
This is a convenience method that creates an instance of theTerm.Builder
avoiding the need to create one manually viaTerm.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#terms(List
.) - Parameters:
terms
- a consumer that will call methods onTerm.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#terms(java.util.Collection
)
-
-