public class AppliedTerminology extends Object implements Serializable
The custom terminology applied to the input text by Amazon Translate for the translated text response. This is optional in the response and will only be present if you specified terminology input in the request. Currently, only one terminology can be applied per TranslateText request.
| Constructor and Description |
|---|
AppliedTerminology() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getName()
The name of the custom terminology applied to the input text by Amazon
Translate for the translated text response.
|
List<Term> |
getTerms()
The specific terms of the custom terminology applied to the input text by
Amazon Translate for the translated text response.
|
int |
hashCode() |
void |
setName(String name)
The name of the custom terminology applied to the input text by Amazon
Translate for the translated text response.
|
void |
setTerms(Collection<Term> terms)
The specific terms of the custom terminology applied to the input text by
Amazon Translate for the translated text response.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AppliedTerminology |
withName(String name)
The name of the custom terminology applied to the input text by Amazon
Translate for the translated text response.
|
AppliedTerminology |
withTerms(Collection<Term> terms)
The specific terms of the custom terminology applied to the input text by
Amazon Translate for the translated text response.
|
AppliedTerminology |
withTerms(Term... terms)
The specific terms of the custom terminology applied to the input text by
Amazon Translate for the translated text response.
|
public String getName()
The name of the custom terminology applied to the input text by Amazon Translate for the translated text response.
Constraints:
Length: 1 - 256
Pattern: ^([A-Za-z0-9-]_?)+$
The name of the custom terminology applied to the input text by Amazon Translate for the translated text response.
public void setName(String name)
The name of the custom terminology applied to the input text by Amazon Translate for the translated text response.
Constraints:
Length: 1 - 256
Pattern: ^([A-Za-z0-9-]_?)+$
name - The name of the custom terminology applied to the input text by Amazon Translate for the translated text response.
public AppliedTerminology withName(String name)
The name of the custom terminology applied to the input text by Amazon Translate for the translated text response.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: ^([A-Za-z0-9-]_?)+$
name - The name of the custom terminology applied to the input text by Amazon Translate for the translated text response.
public List<Term> getTerms()
The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.
The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.
public void setTerms(Collection<Term> terms)
The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.
terms - The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.
public AppliedTerminology withTerms(Term... terms)
The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.
Returns a reference to this object so that method calls can be chained together.
terms - The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.
public AppliedTerminology withTerms(Collection<Term> terms)
The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.
Returns a reference to this object so that method calls can be chained together.
terms - The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.