Interface GetParallelDataResponse.Builder

    • Method Detail

      • parallelDataProperties

        GetParallelDataResponse.Builder parallelDataProperties​(ParallelDataProperties parallelDataProperties)

        The properties of the parallel data resource that is being retrieved.

        Parameters:
        parallelDataProperties - The properties of the parallel data resource that is being retrieved.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dataLocation

        GetParallelDataResponse.Builder dataLocation​(ParallelDataDataLocation dataLocation)

        The Amazon S3 location of the most recent parallel data 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:
        dataLocation - The Amazon S3 location of the most recent parallel data 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.
      • dataLocation

        default GetParallelDataResponse.Builder dataLocation​(Consumer<ParallelDataDataLocation.Builder> dataLocation)

        The Amazon S3 location of the most recent parallel data 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 ParallelDataDataLocation.Builder avoiding the need to create one manually via ParallelDataDataLocation.builder().

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

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

        GetParallelDataResponse.Builder auxiliaryDataLocation​(ParallelDataDataLocation 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 parallel data 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 parallel data 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.
      • latestUpdateAttemptAuxiliaryDataLocation

        GetParallelDataResponse.Builder latestUpdateAttemptAuxiliaryDataLocation​(ParallelDataDataLocation latestUpdateAttemptAuxiliaryDataLocation)

        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 update a parallel data resource. The location is returned as a presigned URL to that has a 30-minute expiration.

        Parameters:
        latestUpdateAttemptAuxiliaryDataLocation - 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 update a parallel data 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.