public class Warning extends Object implements Serializable
A warning about an issue that occurred during asynchronous text analysis (StartDocumentAnalysis) or asynchronous document-text detection (StartDocumentTextDetection).
| Constructor and Description |
|---|
Warning() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getErrorCode()
The error code for the warning.
|
List<Integer> |
getPages()
A list of the pages that the warning applies to.
|
int |
hashCode() |
void |
setErrorCode(String errorCode)
The error code for the warning.
|
void |
setPages(Collection<Integer> pages)
A list of the pages that the warning applies to.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Warning |
withErrorCode(String errorCode)
The error code for the warning.
|
Warning |
withPages(Collection<Integer> pages)
A list of the pages that the warning applies to.
|
Warning |
withPages(Integer... pages)
A list of the pages that the warning applies to.
|
public String getErrorCode()
The error code for the warning.
The error code for the warning.
public void setErrorCode(String errorCode)
The error code for the warning.
errorCode - The error code for the warning.
public Warning withErrorCode(String errorCode)
The error code for the warning.
Returns a reference to this object so that method calls can be chained together.
errorCode - The error code for the warning.
public List<Integer> getPages()
A list of the pages that the warning applies to.
A list of the pages that the warning applies to.
public void setPages(Collection<Integer> pages)
A list of the pages that the warning applies to.
pages - A list of the pages that the warning applies to.
public Warning withPages(Integer... pages)
A list of the pages that the warning applies to.
Returns a reference to this object so that method calls can be chained together.
pages - A list of the pages that the warning applies to.
public Warning withPages(Collection<Integer> pages)
A list of the pages that the warning applies to.
Returns a reference to this object so that method calls can be chained together.
pages - A list of the pages that the warning applies to.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.