Interface GetTerminologyResponse.Builder

    • Method Detail

      • terminologyProperties

        GetTerminologyResponse.Builder terminologyProperties​(TerminologyProperties terminologyProperties)

        The properties of the custom terminology being retrieved.

        Parameters:
        terminologyProperties - The properties of the custom terminology being retrieved.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • terminologyDataLocation

        GetTerminologyResponse.Builder terminologyDataLocation​(TerminologyDataLocation terminologyDataLocation)

        The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30-minute expiration.

        Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.

        CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.

        Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.

        Parameters:
        terminologyDataLocation - The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30-minute expiration.

        Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.

        CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.

        Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • terminologyDataLocation

        default GetTerminologyResponse.Builder terminologyDataLocation​(Consumer<TerminologyDataLocation.Builder> terminologyDataLocation)

        The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30-minute expiration.

        Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.

        CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.

        Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.

        This is a convenience method that creates an instance of the TerminologyDataLocation.Builder avoiding the need to create one manually via TerminologyDataLocation.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to terminologyDataLocation(TerminologyDataLocation).

        Parameters:
        terminologyDataLocation - a consumer that will call methods on TerminologyDataLocation.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        terminologyDataLocation(TerminologyDataLocation)
      • auxiliaryDataLocation

        GetTerminologyResponse.Builder auxiliaryDataLocation​(TerminologyDataLocation auxiliaryDataLocation)

        The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to create a terminology resource. The location is returned as a presigned URL to that has a 30-minute expiration.

        Parameters:
        auxiliaryDataLocation - The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to create a terminology resource. The location is returned as a presigned URL to that has a 30-minute expiration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.