public class BatchItemError
extends java.lang.Object
implements java.io.Serializable
Contains the batch request error details associated with the request.
| Constructor and Description |
|---|
BatchItemError() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCode()
The error code associated with the batch request error.
|
java.lang.String |
getMessage()
A message with the reason for the batch request error.
|
int |
hashCode() |
void |
setCode(BatchItemErrorCode code)
The error code associated with the batch request error.
|
void |
setCode(java.lang.String code)
The error code associated with the batch request error.
|
void |
setMessage(java.lang.String message)
A message with the reason for the batch request error.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BatchItemError |
withCode(BatchItemErrorCode code)
The error code associated with the batch request error.
|
BatchItemError |
withCode(java.lang.String code)
The error code associated with the batch request error.
|
BatchItemError |
withMessage(java.lang.String message)
A message with the reason for the batch request error.
|
public java.lang.String getCode()
The error code associated with the batch request error.
Constraints:
Allowed Values: AccessDeniedError, ConflictError,
InternalServerError, ResourceNotFoundError, ThrottlingError,
ValidationError
The error code associated with the batch request error.
BatchItemErrorCodepublic void setCode(java.lang.String code)
The error code associated with the batch request error.
Constraints:
Allowed Values: AccessDeniedError, ConflictError,
InternalServerError, ResourceNotFoundError, ThrottlingError,
ValidationError
code - The error code associated with the batch request error.
BatchItemErrorCodepublic BatchItemError withCode(java.lang.String code)
The error code associated with the batch request error.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AccessDeniedError, ConflictError,
InternalServerError, ResourceNotFoundError, ThrottlingError,
ValidationError
code - The error code associated with the batch request error.
BatchItemErrorCodepublic void setCode(BatchItemErrorCode code)
The error code associated with the batch request error.
Constraints:
Allowed Values: AccessDeniedError, ConflictError,
InternalServerError, ResourceNotFoundError, ThrottlingError,
ValidationError
code - The error code associated with the batch request error.
BatchItemErrorCodepublic BatchItemError withCode(BatchItemErrorCode code)
The error code associated with the batch request error.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AccessDeniedError, ConflictError,
InternalServerError, ResourceNotFoundError, ThrottlingError,
ValidationError
code - The error code associated with the batch request error.
BatchItemErrorCodepublic java.lang.String getMessage()
A message with the reason for the batch request error.
A message with the reason for the batch request error.
public void setMessage(java.lang.String message)
A message with the reason for the batch request error.
message - A message with the reason for the batch request error.
public BatchItemError withMessage(java.lang.String message)
A message with the reason for the batch request error.
Returns a reference to this object so that method calls can be chained together.
message - A message with the reason for the batch request error.
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.