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.
BatchItemErrorCode
public 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.
BatchItemErrorCode
public 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.
BatchItemErrorCode
public 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.
BatchItemErrorCode
public 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.
BatchItemErrorCode
public 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.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.