public class BatchResultErrorEntry
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
This is used in the responses of batch API to give a detailed description of the result of an action on each entry in the request.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
code
An error code representing why the action failed on this entry.
|
private java.lang.String |
id
The id of an entry in a batch request.
|
private java.lang.String |
message
A message explaining why the action failed on this entry.
|
private java.lang.Boolean |
senderFault
Whether the error happened due to the sender's fault.
|
Constructor and Description |
---|
BatchResultErrorEntry() |
Modifier and Type | Method and Description |
---|---|
BatchResultErrorEntry |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCode()
An error code representing why the action failed on this entry.
|
java.lang.String |
getId()
The id of an entry in a batch request.
|
java.lang.String |
getMessage()
A message explaining why the action failed on this entry.
|
java.lang.Boolean |
getSenderFault()
Whether the error happened due to the sender's fault.
|
int |
hashCode() |
java.lang.Boolean |
isSenderFault()
Whether the error happened due to the sender's fault.
|
void |
setCode(java.lang.String code)
An error code representing why the action failed on this entry.
|
void |
setId(java.lang.String id)
The id of an entry in a batch request.
|
void |
setMessage(java.lang.String message)
A message explaining why the action failed on this entry.
|
void |
setSenderFault(java.lang.Boolean senderFault)
Whether the error happened due to the sender's fault.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BatchResultErrorEntry |
withCode(java.lang.String code)
An error code representing why the action failed on this entry.
|
BatchResultErrorEntry |
withId(java.lang.String id)
The id of an entry in a batch request.
|
BatchResultErrorEntry |
withMessage(java.lang.String message)
A message explaining why the action failed on this entry.
|
BatchResultErrorEntry |
withSenderFault(java.lang.Boolean senderFault)
Whether the error happened due to the sender's fault.
|
private java.lang.String id
The id of an entry in a batch request.
private java.lang.Boolean senderFault
Whether the error happened due to the sender's fault.
private java.lang.String code
An error code representing why the action failed on this entry.
private java.lang.String message
A message explaining why the action failed on this entry.
public void setId(java.lang.String id)
The id of an entry in a batch request.
id
- The id of an entry in a batch request.public java.lang.String getId()
The id of an entry in a batch request.
public BatchResultErrorEntry withId(java.lang.String id)
The id of an entry in a batch request.
id
- The id of an entry in a batch request.public void setSenderFault(java.lang.Boolean senderFault)
Whether the error happened due to the sender's fault.
senderFault
- Whether the error happened due to the sender's fault.public java.lang.Boolean getSenderFault()
Whether the error happened due to the sender's fault.
public BatchResultErrorEntry withSenderFault(java.lang.Boolean senderFault)
Whether the error happened due to the sender's fault.
senderFault
- Whether the error happened due to the sender's fault.public java.lang.Boolean isSenderFault()
Whether the error happened due to the sender's fault.
public void setCode(java.lang.String code)
An error code representing why the action failed on this entry.
code
- An error code representing why the action failed on this entry.public java.lang.String getCode()
An error code representing why the action failed on this entry.
public BatchResultErrorEntry withCode(java.lang.String code)
An error code representing why the action failed on this entry.
code
- An error code representing why the action failed on this entry.public void setMessage(java.lang.String message)
A message explaining why the action failed on this entry.
message
- A message explaining why the action failed on this entry.public java.lang.String getMessage()
A message explaining why the action failed on this entry.
public BatchResultErrorEntry withMessage(java.lang.String message)
A message explaining why the action failed on this entry.
message
- A message explaining why the action failed on this entry.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public BatchResultErrorEntry clone()
clone
in class java.lang.Object