Interface AppliedTerminology.Builder

    • 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 the Term.Builder avoiding the need to create one manually via Term.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 on Term.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #terms(java.util.Collection)