@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchDetectDominantLanguageItemResult extends Object implements Serializable, Cloneable, StructuredPojo
The result of calling the operation. The operation returns one object for each document that is successfully processed by the operation.
Constructor and Description |
---|
BatchDetectDominantLanguageItemResult() |
Modifier and Type | Method and Description |
---|---|
BatchDetectDominantLanguageItemResult |
clone() |
boolean |
equals(Object obj) |
Integer |
getIndex()
The zero-based index of the document in the input list.
|
List<DominantLanguage> |
getLanguages()
One or more DominantLanguage objects describing the dominant languages in the document.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIndex(Integer index)
The zero-based index of the document in the input list.
|
void |
setLanguages(Collection<DominantLanguage> languages)
One or more DominantLanguage objects describing the dominant languages in the document.
|
String |
toString()
Returns a string representation of this object.
|
BatchDetectDominantLanguageItemResult |
withIndex(Integer index)
The zero-based index of the document in the input list.
|
BatchDetectDominantLanguageItemResult |
withLanguages(Collection<DominantLanguage> languages)
One or more DominantLanguage objects describing the dominant languages in the document.
|
BatchDetectDominantLanguageItemResult |
withLanguages(DominantLanguage... languages)
One or more DominantLanguage objects describing the dominant languages in the document.
|
public BatchDetectDominantLanguageItemResult()
public void setIndex(Integer index)
The zero-based index of the document in the input list.
index
- The zero-based index of the document in the input list.public Integer getIndex()
The zero-based index of the document in the input list.
public BatchDetectDominantLanguageItemResult withIndex(Integer index)
The zero-based index of the document in the input list.
index
- The zero-based index of the document in the input list.public List<DominantLanguage> getLanguages()
One or more DominantLanguage objects describing the dominant languages in the document.
public void setLanguages(Collection<DominantLanguage> languages)
One or more DominantLanguage objects describing the dominant languages in the document.
languages
- One or more DominantLanguage objects describing the dominant languages in the document.public BatchDetectDominantLanguageItemResult withLanguages(DominantLanguage... languages)
One or more DominantLanguage objects describing the dominant languages in the document.
NOTE: This method appends the values to the existing list (if any). Use
setLanguages(java.util.Collection)
or withLanguages(java.util.Collection)
if you want to
override the existing values.
languages
- One or more DominantLanguage objects describing the dominant languages in the document.public BatchDetectDominantLanguageItemResult withLanguages(Collection<DominantLanguage> languages)
One or more DominantLanguage objects describing the dominant languages in the document.
languages
- One or more DominantLanguage objects describing the dominant languages in the document.public String toString()
toString
in class Object
Object.toString()
public BatchDetectDominantLanguageItemResult clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.