@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Warning extends Object implements Serializable, Cloneable, StructuredPojo
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 |
|---|---|
Warning |
clone() |
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
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.
|
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 void setErrorCode(String errorCode)
The error code for the warning.
errorCode - The error code for the warning.public String getErrorCode()
The error code for the warning.
public Warning withErrorCode(String errorCode)
The error code for the warning.
errorCode - The error code for the warning.public List<Integer> getPages()
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.
NOTE: This method appends the values to the existing list (if any). Use
setPages(java.util.Collection) or withPages(java.util.Collection) if you want to override the
existing values.
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.
pages - A list of the pages that the warning applies to.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.