public class BatchResultErrorEntry
extends java.lang.Object
implements java.io.Serializable
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.
Constructor and Description |
---|
BatchResultErrorEntry() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String getId()
The id of an entry in a batch request.
The id of an entry in a batch request.
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 BatchResultErrorEntry withId(java.lang.String id)
The id of an entry in a batch request.
Returns a reference to this object so that method calls can be chained together.
id
- The id of an entry in a batch request.
public java.lang.Boolean isSenderFault()
Whether the error happened due to the sender's fault.
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.
Whether the error happened due to the sender's fault.
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 BatchResultErrorEntry withSenderFault(java.lang.Boolean senderFault)
Whether the error happened due to the sender's fault.
Returns a reference to this object so that method calls can be chained together.
senderFault
- Whether the error happened due to the sender's fault.
public java.lang.String getCode()
An error code representing why the action failed on this entry.
An error code representing why the action failed on this entry.
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 BatchResultErrorEntry withCode(java.lang.String code)
An error code representing why the action failed on this entry.
Returns a reference to this object so that method calls can be chained together.
code
- An error code representing why the action failed on this entry.
public java.lang.String getMessage()
A message explaining why the action failed on this entry.
A message explaining 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 BatchResultErrorEntry withMessage(java.lang.String message)
A message explaining why the action failed on this entry.
Returns a reference to this object so that method calls can be chained together.
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 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.