public class AppliedTerminology
extends java.lang.Object
implements java.io.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(java.lang.Object obj) |
java.lang.String |
getName()
The name of the custom terminology applied to the input text by Amazon
Translate for the translated text response.
|
java.util.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(java.lang.String name)
The name of the custom terminology applied to the input text by Amazon
Translate for the translated text response.
|
void |
setTerms(java.util.Collection<Term> terms)
The specific terms of the custom terminology applied to the input text by
Amazon Translate for the translated text response.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AppliedTerminology |
withName(java.lang.String name)
The name of the custom terminology applied to the input text by Amazon
Translate for the translated text response.
|
AppliedTerminology |
withTerms(java.util.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 java.lang.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(java.lang.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(java.lang.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 java.util.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(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.