All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.translate.TranslateClient Maven / Gradle / Ivy

/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */

package software.amazon.awssdk.services.translate;

import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.awscore.AwsClient;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.regions.ServiceMetadata;
import software.amazon.awssdk.services.translate.model.ConcurrentModificationException;
import software.amazon.awssdk.services.translate.model.ConflictException;
import software.amazon.awssdk.services.translate.model.CreateParallelDataRequest;
import software.amazon.awssdk.services.translate.model.CreateParallelDataResponse;
import software.amazon.awssdk.services.translate.model.DeleteParallelDataRequest;
import software.amazon.awssdk.services.translate.model.DeleteParallelDataResponse;
import software.amazon.awssdk.services.translate.model.DeleteTerminologyRequest;
import software.amazon.awssdk.services.translate.model.DeleteTerminologyResponse;
import software.amazon.awssdk.services.translate.model.DescribeTextTranslationJobRequest;
import software.amazon.awssdk.services.translate.model.DescribeTextTranslationJobResponse;
import software.amazon.awssdk.services.translate.model.DetectedLanguageLowConfidenceException;
import software.amazon.awssdk.services.translate.model.GetParallelDataRequest;
import software.amazon.awssdk.services.translate.model.GetParallelDataResponse;
import software.amazon.awssdk.services.translate.model.GetTerminologyRequest;
import software.amazon.awssdk.services.translate.model.GetTerminologyResponse;
import software.amazon.awssdk.services.translate.model.ImportTerminologyRequest;
import software.amazon.awssdk.services.translate.model.ImportTerminologyResponse;
import software.amazon.awssdk.services.translate.model.InternalServerException;
import software.amazon.awssdk.services.translate.model.InvalidFilterException;
import software.amazon.awssdk.services.translate.model.InvalidParameterValueException;
import software.amazon.awssdk.services.translate.model.InvalidRequestException;
import software.amazon.awssdk.services.translate.model.LimitExceededException;
import software.amazon.awssdk.services.translate.model.ListLanguagesRequest;
import software.amazon.awssdk.services.translate.model.ListLanguagesResponse;
import software.amazon.awssdk.services.translate.model.ListParallelDataRequest;
import software.amazon.awssdk.services.translate.model.ListParallelDataResponse;
import software.amazon.awssdk.services.translate.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.translate.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.translate.model.ListTerminologiesRequest;
import software.amazon.awssdk.services.translate.model.ListTerminologiesResponse;
import software.amazon.awssdk.services.translate.model.ListTextTranslationJobsRequest;
import software.amazon.awssdk.services.translate.model.ListTextTranslationJobsResponse;
import software.amazon.awssdk.services.translate.model.ResourceNotFoundException;
import software.amazon.awssdk.services.translate.model.ServiceUnavailableException;
import software.amazon.awssdk.services.translate.model.StartTextTranslationJobRequest;
import software.amazon.awssdk.services.translate.model.StartTextTranslationJobResponse;
import software.amazon.awssdk.services.translate.model.StopTextTranslationJobRequest;
import software.amazon.awssdk.services.translate.model.StopTextTranslationJobResponse;
import software.amazon.awssdk.services.translate.model.TagResourceRequest;
import software.amazon.awssdk.services.translate.model.TagResourceResponse;
import software.amazon.awssdk.services.translate.model.TextSizeLimitExceededException;
import software.amazon.awssdk.services.translate.model.TooManyRequestsException;
import software.amazon.awssdk.services.translate.model.TooManyTagsException;
import software.amazon.awssdk.services.translate.model.TranslateDocumentRequest;
import software.amazon.awssdk.services.translate.model.TranslateDocumentResponse;
import software.amazon.awssdk.services.translate.model.TranslateException;
import software.amazon.awssdk.services.translate.model.TranslateTextRequest;
import software.amazon.awssdk.services.translate.model.TranslateTextResponse;
import software.amazon.awssdk.services.translate.model.UnsupportedDisplayLanguageCodeException;
import software.amazon.awssdk.services.translate.model.UnsupportedLanguagePairException;
import software.amazon.awssdk.services.translate.model.UntagResourceRequest;
import software.amazon.awssdk.services.translate.model.UntagResourceResponse;
import software.amazon.awssdk.services.translate.model.UpdateParallelDataRequest;
import software.amazon.awssdk.services.translate.model.UpdateParallelDataResponse;
import software.amazon.awssdk.services.translate.paginators.ListLanguagesIterable;
import software.amazon.awssdk.services.translate.paginators.ListParallelDataIterable;
import software.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable;
import software.amazon.awssdk.services.translate.paginators.ListTextTranslationJobsIterable;

/**
 * Service client for accessing Amazon Translate. This can be created using the static {@link #builder()} method.
 *
 * 

* Provides translation of the input content from the source language to the target language. *

*/ @Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface TranslateClient extends AwsClient { String SERVICE_NAME = "translate"; /** * Value for looking up the service's metadata from the * {@link software.amazon.awssdk.regions.ServiceMetadataProvider}. */ String SERVICE_METADATA_ID = "translate"; /** *

* Creates a parallel data resource in Amazon Translate by importing an input file from Amazon S3. Parallel data * files contain examples that show how you want segments of text to be translated. By adding parallel data, you can * influence the style, tone, and word choice in your translation output. *

* * @param createParallelDataRequest * @return Result of the CreateParallelData operation returned by the service. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws InvalidRequestException * The request that you made is not valid. Check your request to determine why it's not valid and then retry * the request. * @throws LimitExceededException * The specified limit has been exceeded. Review your request and retry it with a quantity below the stated * limit. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws TooManyTagsException * You have added too many tags to this resource. The maximum is 50 tags. * @throws ConflictException * There was a conflict processing the request. Try your request again. * @throws ConcurrentModificationException * Another modification is being made. That modification must complete before you can make your change. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.CreateParallelData * @see AWS * API Documentation */ default CreateParallelDataResponse createParallelData(CreateParallelDataRequest createParallelDataRequest) throws InvalidParameterValueException, InvalidRequestException, LimitExceededException, TooManyRequestsException, TooManyTagsException, ConflictException, ConcurrentModificationException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { throw new UnsupportedOperationException(); } /** *

* Creates a parallel data resource in Amazon Translate by importing an input file from Amazon S3. Parallel data * files contain examples that show how you want segments of text to be translated. By adding parallel data, you can * influence the style, tone, and word choice in your translation output. *

*
*

* This is a convenience which creates an instance of the {@link CreateParallelDataRequest.Builder} avoiding the * need to create one manually via {@link CreateParallelDataRequest#builder()} *

* * @param createParallelDataRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.CreateParallelDataRequest.Builder} to create a * request. * @return Result of the CreateParallelData operation returned by the service. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws InvalidRequestException * The request that you made is not valid. Check your request to determine why it's not valid and then retry * the request. * @throws LimitExceededException * The specified limit has been exceeded. Review your request and retry it with a quantity below the stated * limit. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws TooManyTagsException * You have added too many tags to this resource. The maximum is 50 tags. * @throws ConflictException * There was a conflict processing the request. Try your request again. * @throws ConcurrentModificationException * Another modification is being made. That modification must complete before you can make your change. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.CreateParallelData * @see AWS * API Documentation */ default CreateParallelDataResponse createParallelData(Consumer createParallelDataRequest) throws InvalidParameterValueException, InvalidRequestException, LimitExceededException, TooManyRequestsException, TooManyTagsException, ConflictException, ConcurrentModificationException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return createParallelData(CreateParallelDataRequest.builder().applyMutation(createParallelDataRequest).build()); } /** *

* Deletes a parallel data resource in Amazon Translate. *

* * @param deleteParallelDataRequest * @return Result of the DeleteParallelData operation returned by the service. * @throws ConcurrentModificationException * Another modification is being made. That modification must complete before you can make your change. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.DeleteParallelData * @see AWS * API Documentation */ default DeleteParallelDataResponse deleteParallelData(DeleteParallelDataRequest deleteParallelDataRequest) throws ConcurrentModificationException, ResourceNotFoundException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { throw new UnsupportedOperationException(); } /** *

* Deletes a parallel data resource in Amazon Translate. *

*
*

* This is a convenience which creates an instance of the {@link DeleteParallelDataRequest.Builder} avoiding the * need to create one manually via {@link DeleteParallelDataRequest#builder()} *

* * @param deleteParallelDataRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.DeleteParallelDataRequest.Builder} to create a * request. * @return Result of the DeleteParallelData operation returned by the service. * @throws ConcurrentModificationException * Another modification is being made. That modification must complete before you can make your change. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.DeleteParallelData * @see AWS * API Documentation */ default DeleteParallelDataResponse deleteParallelData(Consumer deleteParallelDataRequest) throws ConcurrentModificationException, ResourceNotFoundException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return deleteParallelData(DeleteParallelDataRequest.builder().applyMutation(deleteParallelDataRequest).build()); } /** *

* A synchronous action that deletes a custom terminology. *

* * @param deleteTerminologyRequest * @return Result of the DeleteTerminology operation returned by the service. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.DeleteTerminology * @see AWS * API Documentation */ default DeleteTerminologyResponse deleteTerminology(DeleteTerminologyRequest deleteTerminologyRequest) throws ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { throw new UnsupportedOperationException(); } /** *

* A synchronous action that deletes a custom terminology. *

*
*

* This is a convenience which creates an instance of the {@link DeleteTerminologyRequest.Builder} avoiding the need * to create one manually via {@link DeleteTerminologyRequest#builder()} *

* * @param deleteTerminologyRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.DeleteTerminologyRequest.Builder} to create a * request. * @return Result of the DeleteTerminology operation returned by the service. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.DeleteTerminology * @see AWS * API Documentation */ default DeleteTerminologyResponse deleteTerminology(Consumer deleteTerminologyRequest) throws ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return deleteTerminology(DeleteTerminologyRequest.builder().applyMutation(deleteTerminologyRequest).build()); } /** *

* Gets the properties associated with an asynchronous batch translation job including name, ID, status, source and * target languages, input/output S3 buckets, and so on. *

* * @param describeTextTranslationJobRequest * @return Result of the DescribeTextTranslationJob operation returned by the service. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.DescribeTextTranslationJob * @see AWS API Documentation */ default DescribeTextTranslationJobResponse describeTextTranslationJob( DescribeTextTranslationJobRequest describeTextTranslationJobRequest) throws ResourceNotFoundException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { throw new UnsupportedOperationException(); } /** *

* Gets the properties associated with an asynchronous batch translation job including name, ID, status, source and * target languages, input/output S3 buckets, and so on. *

*
*

* This is a convenience which creates an instance of the {@link DescribeTextTranslationJobRequest.Builder} avoiding * the need to create one manually via {@link DescribeTextTranslationJobRequest#builder()} *

* * @param describeTextTranslationJobRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.DescribeTextTranslationJobRequest.Builder} to * create a request. * @return Result of the DescribeTextTranslationJob operation returned by the service. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.DescribeTextTranslationJob * @see AWS API Documentation */ default DescribeTextTranslationJobResponse describeTextTranslationJob( Consumer describeTextTranslationJobRequest) throws ResourceNotFoundException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return describeTextTranslationJob(DescribeTextTranslationJobRequest.builder() .applyMutation(describeTextTranslationJobRequest).build()); } /** *

* Provides information about a parallel data resource. *

* * @param getParallelDataRequest * @return Result of the GetParallelData operation returned by the service. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.GetParallelData * @see AWS API * Documentation */ default GetParallelDataResponse getParallelData(GetParallelDataRequest getParallelDataRequest) throws ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { throw new UnsupportedOperationException(); } /** *

* Provides information about a parallel data resource. *

*
*

* This is a convenience which creates an instance of the {@link GetParallelDataRequest.Builder} avoiding the need * to create one manually via {@link GetParallelDataRequest#builder()} *

* * @param getParallelDataRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.GetParallelDataRequest.Builder} to create a * request. * @return Result of the GetParallelData operation returned by the service. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.GetParallelData * @see AWS API * Documentation */ default GetParallelDataResponse getParallelData(Consumer getParallelDataRequest) throws ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return getParallelData(GetParallelDataRequest.builder().applyMutation(getParallelDataRequest).build()); } /** *

* Retrieves a custom terminology. *

* * @param getTerminologyRequest * @return Result of the GetTerminology operation returned by the service. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.GetTerminology * @see AWS API * Documentation */ default GetTerminologyResponse getTerminology(GetTerminologyRequest getTerminologyRequest) throws ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { throw new UnsupportedOperationException(); } /** *

* Retrieves a custom terminology. *

*
*

* This is a convenience which creates an instance of the {@link GetTerminologyRequest.Builder} avoiding the need to * create one manually via {@link GetTerminologyRequest#builder()} *

* * @param getTerminologyRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.GetTerminologyRequest.Builder} to create a request. * @return Result of the GetTerminology operation returned by the service. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.GetTerminology * @see AWS API * Documentation */ default GetTerminologyResponse getTerminology(Consumer getTerminologyRequest) throws ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return getTerminology(GetTerminologyRequest.builder().applyMutation(getTerminologyRequest).build()); } /** *

* Creates or updates a custom terminology, depending on whether one already exists for the given terminology name. * Importing a terminology with the same name as an existing one will merge the terminologies based on the chosen * merge strategy. The only supported merge strategy is OVERWRITE, where the imported terminology overwrites the * existing terminology of the same name. *

*

* If you import a terminology that overwrites an existing one, the new terminology takes up to 10 minutes to fully * propagate. After that, translations have access to the new terminology. *

* * @param importTerminologyRequest * @return Result of the ImportTerminology operation returned by the service. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws LimitExceededException * The specified limit has been exceeded. Review your request and retry it with a quantity below the stated * limit. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws TooManyTagsException * You have added too many tags to this resource. The maximum is 50 tags. * @throws ConcurrentModificationException * Another modification is being made. That modification must complete before you can make your change. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ImportTerminology * @see AWS * API Documentation */ default ImportTerminologyResponse importTerminology(ImportTerminologyRequest importTerminologyRequest) throws InvalidParameterValueException, LimitExceededException, TooManyRequestsException, TooManyTagsException, ConcurrentModificationException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { throw new UnsupportedOperationException(); } /** *

* Creates or updates a custom terminology, depending on whether one already exists for the given terminology name. * Importing a terminology with the same name as an existing one will merge the terminologies based on the chosen * merge strategy. The only supported merge strategy is OVERWRITE, where the imported terminology overwrites the * existing terminology of the same name. *

*

* If you import a terminology that overwrites an existing one, the new terminology takes up to 10 minutes to fully * propagate. After that, translations have access to the new terminology. *

*
*

* This is a convenience which creates an instance of the {@link ImportTerminologyRequest.Builder} avoiding the need * to create one manually via {@link ImportTerminologyRequest#builder()} *

* * @param importTerminologyRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.ImportTerminologyRequest.Builder} to create a * request. * @return Result of the ImportTerminology operation returned by the service. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws LimitExceededException * The specified limit has been exceeded. Review your request and retry it with a quantity below the stated * limit. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws TooManyTagsException * You have added too many tags to this resource. The maximum is 50 tags. * @throws ConcurrentModificationException * Another modification is being made. That modification must complete before you can make your change. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ImportTerminology * @see AWS * API Documentation */ default ImportTerminologyResponse importTerminology(Consumer importTerminologyRequest) throws InvalidParameterValueException, LimitExceededException, TooManyRequestsException, TooManyTagsException, ConcurrentModificationException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return importTerminology(ImportTerminologyRequest.builder().applyMutation(importTerminologyRequest).build()); } /** *

* Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports. *

* * @param listLanguagesRequest * @return Result of the ListLanguages operation returned by the service. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws UnsupportedDisplayLanguageCodeException * Requested display language code is not supported. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListLanguages * @see AWS API * Documentation */ default ListLanguagesResponse listLanguages(ListLanguagesRequest listLanguagesRequest) throws InvalidParameterValueException, TooManyRequestsException, UnsupportedDisplayLanguageCodeException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { throw new UnsupportedOperationException(); } /** *

* Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports. *

*
*

* This is a convenience which creates an instance of the {@link ListLanguagesRequest.Builder} avoiding the need to * create one manually via {@link ListLanguagesRequest#builder()} *

* * @param listLanguagesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.ListLanguagesRequest.Builder} to create a request. * @return Result of the ListLanguages operation returned by the service. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws UnsupportedDisplayLanguageCodeException * Requested display language code is not supported. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListLanguages * @see AWS API * Documentation */ default ListLanguagesResponse listLanguages(Consumer listLanguagesRequest) throws InvalidParameterValueException, TooManyRequestsException, UnsupportedDisplayLanguageCodeException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return listLanguages(ListLanguagesRequest.builder().applyMutation(listLanguagesRequest).build()); } /** *

* This is a variant of {@link #listLanguages(software.amazon.awssdk.services.translate.model.ListLanguagesRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.translate.paginators.ListLanguagesIterable responses = client.listLanguagesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.translate.paginators.ListLanguagesIterable responses = client.listLanguagesPaginator(request);
     *     for (software.amazon.awssdk.services.translate.model.ListLanguagesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.translate.paginators.ListLanguagesIterable responses = client.listLanguagesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listLanguages(software.amazon.awssdk.services.translate.model.ListLanguagesRequest)} operation. *

* * @param listLanguagesRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws UnsupportedDisplayLanguageCodeException * Requested display language code is not supported. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListLanguages * @see AWS API * Documentation */ default ListLanguagesIterable listLanguagesPaginator(ListLanguagesRequest listLanguagesRequest) throws InvalidParameterValueException, TooManyRequestsException, UnsupportedDisplayLanguageCodeException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return new ListLanguagesIterable(this, listLanguagesRequest); } /** *

* This is a variant of {@link #listLanguages(software.amazon.awssdk.services.translate.model.ListLanguagesRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.translate.paginators.ListLanguagesIterable responses = client.listLanguagesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.translate.paginators.ListLanguagesIterable responses = client.listLanguagesPaginator(request);
     *     for (software.amazon.awssdk.services.translate.model.ListLanguagesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.translate.paginators.ListLanguagesIterable responses = client.listLanguagesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listLanguages(software.amazon.awssdk.services.translate.model.ListLanguagesRequest)} operation. *

*
*

* This is a convenience which creates an instance of the {@link ListLanguagesRequest.Builder} avoiding the need to * create one manually via {@link ListLanguagesRequest#builder()} *

* * @param listLanguagesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.ListLanguagesRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws UnsupportedDisplayLanguageCodeException * Requested display language code is not supported. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListLanguages * @see AWS API * Documentation */ default ListLanguagesIterable listLanguagesPaginator(Consumer listLanguagesRequest) throws InvalidParameterValueException, TooManyRequestsException, UnsupportedDisplayLanguageCodeException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return listLanguagesPaginator(ListLanguagesRequest.builder().applyMutation(listLanguagesRequest).build()); } /** *

* Provides a list of your parallel data resources in Amazon Translate. *

* * @param listParallelDataRequest * @return Result of the ListParallelData operation returned by the service. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListParallelData * @see AWS * API Documentation */ default ListParallelDataResponse listParallelData(ListParallelDataRequest listParallelDataRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { throw new UnsupportedOperationException(); } /** *

* Provides a list of your parallel data resources in Amazon Translate. *

*
*

* This is a convenience which creates an instance of the {@link ListParallelDataRequest.Builder} avoiding the need * to create one manually via {@link ListParallelDataRequest#builder()} *

* * @param listParallelDataRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.ListParallelDataRequest.Builder} to create a * request. * @return Result of the ListParallelData operation returned by the service. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListParallelData * @see AWS * API Documentation */ default ListParallelDataResponse listParallelData(Consumer listParallelDataRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return listParallelData(ListParallelDataRequest.builder().applyMutation(listParallelDataRequest).build()); } /** *

* This is a variant of * {@link #listParallelData(software.amazon.awssdk.services.translate.model.ListParallelDataRequest)} operation. The * return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle * making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.translate.paginators.ListParallelDataIterable responses = client.listParallelDataPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.translate.paginators.ListParallelDataIterable responses = client
     *             .listParallelDataPaginator(request);
     *     for (software.amazon.awssdk.services.translate.model.ListParallelDataResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.translate.paginators.ListParallelDataIterable responses = client.listParallelDataPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listParallelData(software.amazon.awssdk.services.translate.model.ListParallelDataRequest)} operation. *

* * @param listParallelDataRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListParallelData * @see AWS * API Documentation */ default ListParallelDataIterable listParallelDataPaginator(ListParallelDataRequest listParallelDataRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return new ListParallelDataIterable(this, listParallelDataRequest); } /** *

* This is a variant of * {@link #listParallelData(software.amazon.awssdk.services.translate.model.ListParallelDataRequest)} operation. The * return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle * making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.translate.paginators.ListParallelDataIterable responses = client.listParallelDataPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.translate.paginators.ListParallelDataIterable responses = client
     *             .listParallelDataPaginator(request);
     *     for (software.amazon.awssdk.services.translate.model.ListParallelDataResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.translate.paginators.ListParallelDataIterable responses = client.listParallelDataPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listParallelData(software.amazon.awssdk.services.translate.model.ListParallelDataRequest)} operation. *

*
*

* This is a convenience which creates an instance of the {@link ListParallelDataRequest.Builder} avoiding the need * to create one manually via {@link ListParallelDataRequest#builder()} *

* * @param listParallelDataRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.ListParallelDataRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListParallelData * @see AWS * API Documentation */ default ListParallelDataIterable listParallelDataPaginator(Consumer listParallelDataRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return listParallelDataPaginator(ListParallelDataRequest.builder().applyMutation(listParallelDataRequest).build()); } /** *

* Lists all tags associated with a given Amazon Translate resource. For more information, see Tagging your resources. *

* * @param listTagsForResourceRequest * @return Result of the ListTagsForResource operation returned by the service. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListTagsForResource * @see AWS * API Documentation */ default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InvalidParameterValueException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { throw new UnsupportedOperationException(); } /** *

* Lists all tags associated with a given Amazon Translate resource. For more information, see Tagging your resources. *

*
*

* This is a convenience which creates an instance of the {@link ListTagsForResourceRequest.Builder} avoiding the * need to create one manually via {@link ListTagsForResourceRequest#builder()} *

* * @param listTagsForResourceRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.ListTagsForResourceRequest.Builder} to create a * request. * @return Result of the ListTagsForResource operation returned by the service. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListTagsForResource * @see AWS * API Documentation */ default ListTagsForResourceResponse listTagsForResource( Consumer listTagsForResourceRequest) throws InvalidParameterValueException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build()); } /** *

* Provides a list of custom terminologies associated with your account. *

* * @param listTerminologiesRequest * @return Result of the ListTerminologies operation returned by the service. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListTerminologies * @see AWS * API Documentation */ default ListTerminologiesResponse listTerminologies(ListTerminologiesRequest listTerminologiesRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { throw new UnsupportedOperationException(); } /** *

* Provides a list of custom terminologies associated with your account. *

*
*

* This is a convenience which creates an instance of the {@link ListTerminologiesRequest.Builder} avoiding the need * to create one manually via {@link ListTerminologiesRequest#builder()} *

* * @param listTerminologiesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.ListTerminologiesRequest.Builder} to create a * request. * @return Result of the ListTerminologies operation returned by the service. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListTerminologies * @see AWS * API Documentation */ default ListTerminologiesResponse listTerminologies(Consumer listTerminologiesRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return listTerminologies(ListTerminologiesRequest.builder().applyMutation(listTerminologiesRequest).build()); } /** *

* Provides a list of custom terminologies associated with your account. *

* * @return Result of the ListTerminologies operation returned by the service. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListTerminologies * @see #listTerminologies(ListTerminologiesRequest) * @see AWS * API Documentation */ default ListTerminologiesResponse listTerminologies() throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return listTerminologies(ListTerminologiesRequest.builder().build()); } /** *

* This is a variant of * {@link #listTerminologies(software.amazon.awssdk.services.translate.model.ListTerminologiesRequest)} operation. * The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally * handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client.listTerminologiesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client
     *             .listTerminologiesPaginator(request);
     *     for (software.amazon.awssdk.services.translate.model.ListTerminologiesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client.listTerminologiesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listTerminologies(software.amazon.awssdk.services.translate.model.ListTerminologiesRequest)} * operation. *

* * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListTerminologies * @see #listTerminologiesPaginator(ListTerminologiesRequest) * @see AWS * API Documentation */ default ListTerminologiesIterable listTerminologiesPaginator() throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return listTerminologiesPaginator(ListTerminologiesRequest.builder().build()); } /** *

* This is a variant of * {@link #listTerminologies(software.amazon.awssdk.services.translate.model.ListTerminologiesRequest)} operation. * The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally * handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client.listTerminologiesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client
     *             .listTerminologiesPaginator(request);
     *     for (software.amazon.awssdk.services.translate.model.ListTerminologiesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client.listTerminologiesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listTerminologies(software.amazon.awssdk.services.translate.model.ListTerminologiesRequest)} * operation. *

* * @param listTerminologiesRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListTerminologies * @see AWS * API Documentation */ default ListTerminologiesIterable listTerminologiesPaginator(ListTerminologiesRequest listTerminologiesRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return new ListTerminologiesIterable(this, listTerminologiesRequest); } /** *

* This is a variant of * {@link #listTerminologies(software.amazon.awssdk.services.translate.model.ListTerminologiesRequest)} operation. * The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally * handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client.listTerminologiesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client
     *             .listTerminologiesPaginator(request);
     *     for (software.amazon.awssdk.services.translate.model.ListTerminologiesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client.listTerminologiesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listTerminologies(software.amazon.awssdk.services.translate.model.ListTerminologiesRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link ListTerminologiesRequest.Builder} avoiding the need * to create one manually via {@link ListTerminologiesRequest#builder()} *

* * @param listTerminologiesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.ListTerminologiesRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListTerminologies * @see AWS * API Documentation */ default ListTerminologiesIterable listTerminologiesPaginator( Consumer listTerminologiesRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return listTerminologiesPaginator(ListTerminologiesRequest.builder().applyMutation(listTerminologiesRequest).build()); } /** *

* Gets a list of the batch translation jobs that you have submitted. *

* * @param listTextTranslationJobsRequest * @return Result of the ListTextTranslationJobs operation returned by the service. * @throws InvalidRequestException * The request that you made is not valid. Check your request to determine why it's not valid and then retry * the request. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InvalidFilterException * The filter specified for the operation is not valid. Specify a different filter. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListTextTranslationJobs * @see AWS API Documentation */ default ListTextTranslationJobsResponse listTextTranslationJobs(ListTextTranslationJobsRequest listTextTranslationJobsRequest) throws InvalidRequestException, TooManyRequestsException, InvalidFilterException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { throw new UnsupportedOperationException(); } /** *

* Gets a list of the batch translation jobs that you have submitted. *

*
*

* This is a convenience which creates an instance of the {@link ListTextTranslationJobsRequest.Builder} avoiding * the need to create one manually via {@link ListTextTranslationJobsRequest#builder()} *

* * @param listTextTranslationJobsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.ListTextTranslationJobsRequest.Builder} to create a * request. * @return Result of the ListTextTranslationJobs operation returned by the service. * @throws InvalidRequestException * The request that you made is not valid. Check your request to determine why it's not valid and then retry * the request. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InvalidFilterException * The filter specified for the operation is not valid. Specify a different filter. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListTextTranslationJobs * @see AWS API Documentation */ default ListTextTranslationJobsResponse listTextTranslationJobs( Consumer listTextTranslationJobsRequest) throws InvalidRequestException, TooManyRequestsException, InvalidFilterException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return listTextTranslationJobs(ListTextTranslationJobsRequest.builder().applyMutation(listTextTranslationJobsRequest) .build()); } /** *

* This is a variant of * {@link #listTextTranslationJobs(software.amazon.awssdk.services.translate.model.ListTextTranslationJobsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.translate.paginators.ListTextTranslationJobsIterable responses = client.listTextTranslationJobsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.translate.paginators.ListTextTranslationJobsIterable responses = client
     *             .listTextTranslationJobsPaginator(request);
     *     for (software.amazon.awssdk.services.translate.model.ListTextTranslationJobsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.translate.paginators.ListTextTranslationJobsIterable responses = client.listTextTranslationJobsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listTextTranslationJobs(software.amazon.awssdk.services.translate.model.ListTextTranslationJobsRequest)} * operation. *

* * @param listTextTranslationJobsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidRequestException * The request that you made is not valid. Check your request to determine why it's not valid and then retry * the request. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InvalidFilterException * The filter specified for the operation is not valid. Specify a different filter. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListTextTranslationJobs * @see AWS API Documentation */ default ListTextTranslationJobsIterable listTextTranslationJobsPaginator( ListTextTranslationJobsRequest listTextTranslationJobsRequest) throws InvalidRequestException, TooManyRequestsException, InvalidFilterException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return new ListTextTranslationJobsIterable(this, listTextTranslationJobsRequest); } /** *

* This is a variant of * {@link #listTextTranslationJobs(software.amazon.awssdk.services.translate.model.ListTextTranslationJobsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.translate.paginators.ListTextTranslationJobsIterable responses = client.listTextTranslationJobsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.translate.paginators.ListTextTranslationJobsIterable responses = client
     *             .listTextTranslationJobsPaginator(request);
     *     for (software.amazon.awssdk.services.translate.model.ListTextTranslationJobsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.translate.paginators.ListTextTranslationJobsIterable responses = client.listTextTranslationJobsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listTextTranslationJobs(software.amazon.awssdk.services.translate.model.ListTextTranslationJobsRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link ListTextTranslationJobsRequest.Builder} avoiding * the need to create one manually via {@link ListTextTranslationJobsRequest#builder()} *

* * @param listTextTranslationJobsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.ListTextTranslationJobsRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidRequestException * The request that you made is not valid. Check your request to determine why it's not valid and then retry * the request. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InvalidFilterException * The filter specified for the operation is not valid. Specify a different filter. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.ListTextTranslationJobs * @see AWS API Documentation */ default ListTextTranslationJobsIterable listTextTranslationJobsPaginator( Consumer listTextTranslationJobsRequest) throws InvalidRequestException, TooManyRequestsException, InvalidFilterException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return listTextTranslationJobsPaginator(ListTextTranslationJobsRequest.builder() .applyMutation(listTextTranslationJobsRequest).build()); } /** *

* Starts an asynchronous batch translation job. Use batch translation jobs to translate large volumes of text * across multiple documents at once. For batch translation, you can input documents with different source languages * (specify auto as the source language). You can specify one or more target languages. Batch * translation translates each input document into each of the target languages. For more information, see Asynchronous batch processing. *

*

* Batch translation jobs can be described with the DescribeTextTranslationJob operation, listed with the * ListTextTranslationJobs operation, and stopped with the StopTextTranslationJob operation. *

* * @param startTextTranslationJobRequest * @return Result of the StartTextTranslationJob operation returned by the service. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws UnsupportedLanguagePairException * Amazon Translate does not support translation from the language of the source text into the requested * target language. For more information, see Supported languages. * @throws InvalidRequestException * The request that you made is not valid. Check your request to determine why it's not valid and then retry * the request. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.StartTextTranslationJob * @see AWS API Documentation */ default StartTextTranslationJobResponse startTextTranslationJob(StartTextTranslationJobRequest startTextTranslationJobRequest) throws TooManyRequestsException, UnsupportedLanguagePairException, InvalidRequestException, ResourceNotFoundException, InvalidParameterValueException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { throw new UnsupportedOperationException(); } /** *

* Starts an asynchronous batch translation job. Use batch translation jobs to translate large volumes of text * across multiple documents at once. For batch translation, you can input documents with different source languages * (specify auto as the source language). You can specify one or more target languages. Batch * translation translates each input document into each of the target languages. For more information, see Asynchronous batch processing. *

*

* Batch translation jobs can be described with the DescribeTextTranslationJob operation, listed with the * ListTextTranslationJobs operation, and stopped with the StopTextTranslationJob operation. *

*
*

* This is a convenience which creates an instance of the {@link StartTextTranslationJobRequest.Builder} avoiding * the need to create one manually via {@link StartTextTranslationJobRequest#builder()} *

* * @param startTextTranslationJobRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.StartTextTranslationJobRequest.Builder} to create a * request. * @return Result of the StartTextTranslationJob operation returned by the service. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws UnsupportedLanguagePairException * Amazon Translate does not support translation from the language of the source text into the requested * target language. For more information, see Supported languages. * @throws InvalidRequestException * The request that you made is not valid. Check your request to determine why it's not valid and then retry * the request. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.StartTextTranslationJob * @see AWS API Documentation */ default StartTextTranslationJobResponse startTextTranslationJob( Consumer startTextTranslationJobRequest) throws TooManyRequestsException, UnsupportedLanguagePairException, InvalidRequestException, ResourceNotFoundException, InvalidParameterValueException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return startTextTranslationJob(StartTextTranslationJobRequest.builder().applyMutation(startTextTranslationJobRequest) .build()); } /** *

* Stops an asynchronous batch translation job that is in progress. *

*

* If the job's state is IN_PROGRESS, the job will be marked for termination and put into the * STOP_REQUESTED state. If the job completes before it can be stopped, it is put into the * COMPLETED state. Otherwise, the job is put into the STOPPED state. *

*

* Asynchronous batch translation jobs are started with the StartTextTranslationJob operation. You can use * the DescribeTextTranslationJob or ListTextTranslationJobs operations to get a batch translation * job's JobId. *

* * @param stopTextTranslationJobRequest * @return Result of the StopTextTranslationJob operation returned by the service. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.StopTextTranslationJob * @see AWS API Documentation */ default StopTextTranslationJobResponse stopTextTranslationJob(StopTextTranslationJobRequest stopTextTranslationJobRequest) throws ResourceNotFoundException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { throw new UnsupportedOperationException(); } /** *

* Stops an asynchronous batch translation job that is in progress. *

*

* If the job's state is IN_PROGRESS, the job will be marked for termination and put into the * STOP_REQUESTED state. If the job completes before it can be stopped, it is put into the * COMPLETED state. Otherwise, the job is put into the STOPPED state. *

*

* Asynchronous batch translation jobs are started with the StartTextTranslationJob operation. You can use * the DescribeTextTranslationJob or ListTextTranslationJobs operations to get a batch translation * job's JobId. *

*
*

* This is a convenience which creates an instance of the {@link StopTextTranslationJobRequest.Builder} avoiding the * need to create one manually via {@link StopTextTranslationJobRequest#builder()} *

* * @param stopTextTranslationJobRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.StopTextTranslationJobRequest.Builder} to create a * request. * @return Result of the StopTextTranslationJob operation returned by the service. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.StopTextTranslationJob * @see AWS API Documentation */ default StopTextTranslationJobResponse stopTextTranslationJob( Consumer stopTextTranslationJobRequest) throws ResourceNotFoundException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return stopTextTranslationJob(StopTextTranslationJobRequest.builder().applyMutation(stopTextTranslationJobRequest) .build()); } /** *

* Associates a specific tag with a resource. A tag is a key-value pair that adds as a metadata to a resource. For * more information, see Tagging your * resources. *

* * @param tagResourceRequest * @return Result of the TagResource operation returned by the service. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws ConcurrentModificationException * Another modification is being made. That modification must complete before you can make your change. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws TooManyTagsException * You have added too many tags to this resource. The maximum is 50 tags. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.TagResource * @see AWS API * Documentation */ default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InvalidParameterValueException, ConcurrentModificationException, ResourceNotFoundException, TooManyTagsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { throw new UnsupportedOperationException(); } /** *

* Associates a specific tag with a resource. A tag is a key-value pair that adds as a metadata to a resource. For * more information, see Tagging your * resources. *

*
*

* This is a convenience which creates an instance of the {@link TagResourceRequest.Builder} avoiding the need to * create one manually via {@link TagResourceRequest#builder()} *

* * @param tagResourceRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.TagResourceRequest.Builder} to create a request. * @return Result of the TagResource operation returned by the service. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws ConcurrentModificationException * Another modification is being made. That modification must complete before you can make your change. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws TooManyTagsException * You have added too many tags to this resource. The maximum is 50 tags. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.TagResource * @see AWS API * Documentation */ default TagResourceResponse tagResource(Consumer tagResourceRequest) throws InvalidParameterValueException, ConcurrentModificationException, ResourceNotFoundException, TooManyTagsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build()); } /** *

* Translates the input document from the source language to the target language. This synchronous operation * supports text, HTML, or Word documents as the input document. TranslateDocument supports * translations from English to any supported language, and from any supported language to English. Therefore, * specify either the source language code or the target language code as “en” (English). *

*

* If you set the Formality parameter, the request will fail if the target language does not support * formality. For a list of target languages that support formality, see Setting * formality. *

* * @param translateDocumentRequest * @return Result of the TranslateDocument operation returned by the service. * @throws InvalidRequestException * The request that you made is not valid. Check your request to determine why it's not valid and then retry * the request. * @throws LimitExceededException * The specified limit has been exceeded. Review your request and retry it with a quantity below the stated * limit. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws UnsupportedLanguagePairException * Amazon Translate does not support translation from the language of the source text into the requested * target language. For more information, see Supported languages. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws ServiceUnavailableException * The Amazon Translate service is temporarily unavailable. Wait a bit and then retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.TranslateDocument * @see AWS * API Documentation */ default TranslateDocumentResponse translateDocument(TranslateDocumentRequest translateDocumentRequest) throws InvalidRequestException, LimitExceededException, TooManyRequestsException, ResourceNotFoundException, UnsupportedLanguagePairException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, TranslateException { throw new UnsupportedOperationException(); } /** *

* Translates the input document from the source language to the target language. This synchronous operation * supports text, HTML, or Word documents as the input document. TranslateDocument supports * translations from English to any supported language, and from any supported language to English. Therefore, * specify either the source language code or the target language code as “en” (English). *

*

* If you set the Formality parameter, the request will fail if the target language does not support * formality. For a list of target languages that support formality, see Setting * formality. *

*
*

* This is a convenience which creates an instance of the {@link TranslateDocumentRequest.Builder} avoiding the need * to create one manually via {@link TranslateDocumentRequest#builder()} *

* * @param translateDocumentRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.TranslateDocumentRequest.Builder} to create a * request. * @return Result of the TranslateDocument operation returned by the service. * @throws InvalidRequestException * The request that you made is not valid. Check your request to determine why it's not valid and then retry * the request. * @throws LimitExceededException * The specified limit has been exceeded. Review your request and retry it with a quantity below the stated * limit. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws UnsupportedLanguagePairException * Amazon Translate does not support translation from the language of the source text into the requested * target language. For more information, see Supported languages. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws ServiceUnavailableException * The Amazon Translate service is temporarily unavailable. Wait a bit and then retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.TranslateDocument * @see AWS * API Documentation */ default TranslateDocumentResponse translateDocument(Consumer translateDocumentRequest) throws InvalidRequestException, LimitExceededException, TooManyRequestsException, ResourceNotFoundException, UnsupportedLanguagePairException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, TranslateException { return translateDocument(TranslateDocumentRequest.builder().applyMutation(translateDocumentRequest).build()); } /** *

* Translates input text from the source language to the target language. For a list of available languages and * language codes, see Supported * languages. *

* * @param translateTextRequest * @return Result of the TranslateText operation returned by the service. * @throws InvalidRequestException * The request that you made is not valid. Check your request to determine why it's not valid and then retry * the request. * @throws TextSizeLimitExceededException * The size of the text you submitted exceeds the size limit. Reduce the size of the text or use a smaller * document and then retry your request. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws UnsupportedLanguagePairException * Amazon Translate does not support translation from the language of the source text into the requested * target language. For more information, see Supported languages. * @throws DetectedLanguageLowConfidenceException * The confidence that Amazon Comprehend accurately detected the source language is low. If a low confidence * level is acceptable for your application, you can use the language in the exception to call Amazon * Translate again. For more information, see the DetectDominantLanguage operation in the Amazon Comprehend Developer Guide. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws ServiceUnavailableException * The Amazon Translate service is temporarily unavailable. Wait a bit and then retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.TranslateText * @see AWS API * Documentation */ default TranslateTextResponse translateText(TranslateTextRequest translateTextRequest) throws InvalidRequestException, TextSizeLimitExceededException, TooManyRequestsException, UnsupportedLanguagePairException, DetectedLanguageLowConfidenceException, ResourceNotFoundException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, TranslateException { throw new UnsupportedOperationException(); } /** *

* Translates input text from the source language to the target language. For a list of available languages and * language codes, see Supported * languages. *

*
*

* This is a convenience which creates an instance of the {@link TranslateTextRequest.Builder} avoiding the need to * create one manually via {@link TranslateTextRequest#builder()} *

* * @param translateTextRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.TranslateTextRequest.Builder} to create a request. * @return Result of the TranslateText operation returned by the service. * @throws InvalidRequestException * The request that you made is not valid. Check your request to determine why it's not valid and then retry * the request. * @throws TextSizeLimitExceededException * The size of the text you submitted exceeds the size limit. Reduce the size of the text or use a smaller * document and then retry your request. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws UnsupportedLanguagePairException * Amazon Translate does not support translation from the language of the source text into the requested * target language. For more information, see Supported languages. * @throws DetectedLanguageLowConfidenceException * The confidence that Amazon Comprehend accurately detected the source language is low. If a low confidence * level is acceptable for your application, you can use the language in the exception to call Amazon * Translate again. For more information, see the DetectDominantLanguage operation in the Amazon Comprehend Developer Guide. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws ServiceUnavailableException * The Amazon Translate service is temporarily unavailable. Wait a bit and then retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.TranslateText * @see AWS API * Documentation */ default TranslateTextResponse translateText(Consumer translateTextRequest) throws InvalidRequestException, TextSizeLimitExceededException, TooManyRequestsException, UnsupportedLanguagePairException, DetectedLanguageLowConfidenceException, ResourceNotFoundException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, TranslateException { return translateText(TranslateTextRequest.builder().applyMutation(translateTextRequest).build()); } /** *

* Removes a specific tag associated with an Amazon Translate resource. For more information, see Tagging your resources. *

* * @param untagResourceRequest * @return Result of the UntagResource operation returned by the service. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws ConcurrentModificationException * Another modification is being made. That modification must complete before you can make your change. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.UntagResource * @see AWS API * Documentation */ default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InvalidParameterValueException, ConcurrentModificationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { throw new UnsupportedOperationException(); } /** *

* Removes a specific tag associated with an Amazon Translate resource. For more information, see Tagging your resources. *

*
*

* This is a convenience which creates an instance of the {@link UntagResourceRequest.Builder} avoiding the need to * create one manually via {@link UntagResourceRequest#builder()} *

* * @param untagResourceRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.UntagResourceRequest.Builder} to create a request. * @return Result of the UntagResource operation returned by the service. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws ConcurrentModificationException * Another modification is being made. That modification must complete before you can make your change. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.UntagResource * @see AWS API * Documentation */ default UntagResourceResponse untagResource(Consumer untagResourceRequest) throws InvalidParameterValueException, ConcurrentModificationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build()); } /** *

* Updates a previously created parallel data resource by importing a new input file from Amazon S3. *

* * @param updateParallelDataRequest * @return Result of the UpdateParallelData operation returned by the service. * @throws ConcurrentModificationException * Another modification is being made. That modification must complete before you can make your change. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws InvalidRequestException * The request that you made is not valid. Check your request to determine why it's not valid and then retry * the request. * @throws LimitExceededException * The specified limit has been exceeded. Review your request and retry it with a quantity below the stated * limit. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws ConflictException * There was a conflict processing the request. Try your request again. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.UpdateParallelData * @see AWS * API Documentation */ default UpdateParallelDataResponse updateParallelData(UpdateParallelDataRequest updateParallelDataRequest) throws ConcurrentModificationException, InvalidParameterValueException, InvalidRequestException, LimitExceededException, TooManyRequestsException, ConflictException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { throw new UnsupportedOperationException(); } /** *

* Updates a previously created parallel data resource by importing a new input file from Amazon S3. *

*
*

* This is a convenience which creates an instance of the {@link UpdateParallelDataRequest.Builder} avoiding the * need to create one manually via {@link UpdateParallelDataRequest#builder()} *

* * @param updateParallelDataRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.translate.model.UpdateParallelDataRequest.Builder} to create a * request. * @return Result of the UpdateParallelData operation returned by the service. * @throws ConcurrentModificationException * Another modification is being made. That modification must complete before you can make your change. * @throws InvalidParameterValueException * The value of the parameter is not valid. Review the value of the parameter you are using to correct it, * and then retry your operation. * @throws InvalidRequestException * The request that you made is not valid. Check your request to determine why it's not valid and then retry * the request. * @throws LimitExceededException * The specified limit has been exceeded. Review your request and retry it with a quantity below the stated * limit. * @throws TooManyRequestsException * You have made too many requests within a short period of time. Wait for a short time and then try your * request again. * @throws ConflictException * There was a conflict processing the request. Try your request again. * @throws ResourceNotFoundException * The resource you are looking for has not been found. Review the resource you're looking for and see if a * different resource will accomplish your needs before retrying the revised request. * @throws InternalServerException * An internal server error occurred. Retry your request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws TranslateException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample TranslateClient.UpdateParallelData * @see AWS * API Documentation */ default UpdateParallelDataResponse updateParallelData(Consumer updateParallelDataRequest) throws ConcurrentModificationException, InvalidParameterValueException, InvalidRequestException, LimitExceededException, TooManyRequestsException, ConflictException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, TranslateException { return updateParallelData(UpdateParallelDataRequest.builder().applyMutation(updateParallelDataRequest).build()); } /** * Create a {@link TranslateClient} with the region loaded from the * {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the * {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}. */ static TranslateClient create() { return builder().build(); } /** * Create a builder that can be used to configure and create a {@link TranslateClient}. */ static TranslateClientBuilder builder() { return new DefaultTranslateClientBuilder(); } static ServiceMetadata serviceMetadata() { return ServiceMetadata.of(SERVICE_METADATA_ID); } @Override default TranslateServiceClientConfiguration serviceClientConfiguration() { throw new UnsupportedOperationException(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy