public class Warning
extends java.lang.Object
implements java.io.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(java.lang.Object obj) |
java.lang.String |
getErrorCode()
The error code for the warning.
|
java.util.List<java.lang.Integer> |
getPages()
A list of the pages that the warning applies to.
|
int |
hashCode() |
void |
setErrorCode(java.lang.String errorCode)
The error code for the warning.
|
void |
setPages(java.util.Collection<java.lang.Integer> pages)
A list of the pages that the warning applies to.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Warning |
withErrorCode(java.lang.String errorCode)
The error code for the warning.
|
Warning |
withPages(java.util.Collection<java.lang.Integer> pages)
A list of the pages that the warning applies to.
|
Warning |
withPages(java.lang.Integer... pages)
A list of the pages that the warning applies to.
|
public java.lang.String getErrorCode()
The error code for the warning.
The error code for the warning.
public void setErrorCode(java.lang.String errorCode)
The error code for the warning.
errorCode - The error code for the warning.
public Warning withErrorCode(java.lang.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 java.util.List<java.lang.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(java.util.Collection<java.lang.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(java.lang.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(java.util.Collection<java.lang.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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.