Interface GetTerminologyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetTerminologyResponse.Builder,
,GetTerminologyResponse> SdkBuilder<GetTerminologyResponse.Builder,
,GetTerminologyResponse> SdkPojo
,SdkResponse.Builder
,TranslateResponse.Builder
- Enclosing class:
GetTerminologyResponse
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetTerminologyResponse.Builder
auxiliaryDataLocation
(Consumer<TerminologyDataLocation.Builder> auxiliaryDataLocation) The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file.auxiliaryDataLocation
(TerminologyDataLocation auxiliaryDataLocation) The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file.default GetTerminologyResponse.Builder
terminologyDataLocation
(Consumer<TerminologyDataLocation.Builder> terminologyDataLocation) The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate.terminologyDataLocation
(TerminologyDataLocation terminologyDataLocation) The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate.default GetTerminologyResponse.Builder
terminologyProperties
(Consumer<TerminologyProperties.Builder> terminologyProperties) The properties of the custom terminology being retrieved.terminologyProperties
(TerminologyProperties terminologyProperties) The properties of the custom terminology being retrieved.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
Methods inherited from interface software.amazon.awssdk.services.translate.model.TranslateResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
terminologyProperties
The properties of the custom terminology being retrieved.
- Parameters:
terminologyProperties
- The properties of the custom terminology being retrieved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
terminologyProperties
default GetTerminologyResponse.Builder terminologyProperties(Consumer<TerminologyProperties.Builder> terminologyProperties) The properties of the custom terminology being retrieved.
This is a convenience method that creates an instance of theTerminologyProperties.Builder
avoiding the need to create one manually viaTerminologyProperties.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toterminologyProperties(TerminologyProperties)
.- Parameters:
terminologyProperties
- a consumer that will call methods onTerminologyProperties.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
terminologyDataLocation
GetTerminologyResponse.Builder terminologyDataLocation(TerminologyDataLocation terminologyDataLocation) The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30-minute expiration.
Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.
CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.
Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.
- Parameters:
terminologyDataLocation
- The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30-minute expiration.Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.
CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.
Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
terminologyDataLocation
default GetTerminologyResponse.Builder terminologyDataLocation(Consumer<TerminologyDataLocation.Builder> terminologyDataLocation) The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30-minute expiration.
Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.
CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.
Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.
TerminologyDataLocation.Builder
avoiding the need to create one manually viaTerminologyDataLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toterminologyDataLocation(TerminologyDataLocation)
.- Parameters:
terminologyDataLocation
- a consumer that will call methods onTerminologyDataLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
auxiliaryDataLocation
The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to create a terminology resource. The location is returned as a presigned URL to that has a 30-minute expiration.
- Parameters:
auxiliaryDataLocation
- The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to create a terminology resource. The location is returned as a presigned URL to that has a 30-minute expiration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
auxiliaryDataLocation
default GetTerminologyResponse.Builder auxiliaryDataLocation(Consumer<TerminologyDataLocation.Builder> auxiliaryDataLocation) The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to create a terminology resource. The location is returned as a presigned URL to that has a 30-minute expiration.
This is a convenience method that creates an instance of theTerminologyDataLocation.Builder
avoiding the need to create one manually viaTerminologyDataLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toauxiliaryDataLocation(TerminologyDataLocation)
.- Parameters:
auxiliaryDataLocation
- a consumer that will call methods onTerminologyDataLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-