@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchItemError extends Object implements Serializable, Cloneable, StructuredPojo
Contains the batch request error details associated with the request.
Constructor and Description |
---|
BatchItemError() |
Modifier and Type | Method and Description |
---|---|
BatchItemError |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The error code associated with the batch request error.
|
String |
getMessage()
A message with the reason for the batch request error.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCode(String code)
The error code associated with the batch request error.
|
void |
setMessage(String message)
A message with the reason for the batch request error.
|
String |
toString()
Returns a string representation of this object.
|
BatchItemError |
withCode(BatchItemErrorCode code)
The error code associated with the batch request error.
|
BatchItemError |
withCode(String code)
The error code associated with the batch request error.
|
BatchItemError |
withMessage(String message)
A message with the reason for the batch request error.
|
public void setCode(String code)
The error code associated with the batch request error.
code
- The error code associated with the batch request error.BatchItemErrorCode
public String getCode()
The error code associated with the batch request error.
BatchItemErrorCode
public BatchItemError withCode(String code)
The error code associated with the batch request error.
code
- The error code associated with the batch request error.BatchItemErrorCode
public BatchItemError withCode(BatchItemErrorCode code)
The error code associated with the batch request error.
code
- The error code associated with the batch request error.BatchItemErrorCode
public void setMessage(String message)
A message with the reason for the batch request error.
message
- A message with the reason for the batch request error.public String getMessage()
A message with the reason for the batch request error.
public BatchItemError withMessage(String message)
A message with the reason for the batch request error.
message
- A message with the reason for the batch request error.public String toString()
toString
in class Object
Object.toString()
public BatchItemError clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.