public class BatchDetectDominantLanguageItemResult
extends java.lang.Object
implements java.io.Serializable
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 |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getIndex()
The zero-based index of the document in the input list.
|
java.util.List<DominantLanguage> |
getLanguages()
One or more DominantLanguage objects describing the dominant
languages in the document.
|
int |
hashCode() |
void |
setIndex(java.lang.Integer index)
The zero-based index of the document in the input list.
|
void |
setLanguages(java.util.Collection<DominantLanguage> languages)
One or more DominantLanguage objects describing the dominant
languages in the document.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BatchDetectDominantLanguageItemResult |
withIndex(java.lang.Integer index)
The zero-based index of the document in the input list.
|
BatchDetectDominantLanguageItemResult |
withLanguages(java.util.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 java.lang.Integer getIndex()
The zero-based index of the document in the input list.
The zero-based index of the document in the input list.
public void setIndex(java.lang.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 BatchDetectDominantLanguageItemResult withIndex(java.lang.Integer index)
The zero-based index of the document in the input list.
Returns a reference to this object so that method calls can be chained together.
index
- The zero-based index of the document in the input list.
public java.util.List<DominantLanguage> getLanguages()
One or more DominantLanguage objects describing the dominant languages in the document.
One or more DominantLanguage objects describing the dominant languages in the document.
public void setLanguages(java.util.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.
Returns a reference to this object so that method calls can be chained together.
languages
- One or more DominantLanguage objects describing the dominant languages in the document.
public BatchDetectDominantLanguageItemResult withLanguages(java.util.Collection<DominantLanguage> languages)
One or more DominantLanguage objects describing the dominant languages in the document.
Returns a reference to this object so that method calls can be chained together.
languages
- One or more DominantLanguage objects describing the dominant languages in the document.
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.