@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchReadException extends Object implements Serializable, Cloneable, StructuredPojo
The batch read exception structure, which contains the exception type and message.
| Constructor and Description | 
|---|
BatchReadException()  | 
| Modifier and Type | Method and Description | 
|---|---|
BatchReadException | 
clone()  | 
boolean | 
equals(Object obj)  | 
String | 
getMessage()
 An exception message that is associated with the failure. 
 | 
String | 
getType()
 A type of exception, such as  
InvalidArnException. | 
int | 
hashCode()  | 
void | 
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given  
ProtocolMarshaller. | 
void | 
setMessage(String message)
 An exception message that is associated with the failure. 
 | 
void | 
setType(BatchReadExceptionType type)
 A type of exception, such as  
InvalidArnException. | 
void | 
setType(String type)
 A type of exception, such as  
InvalidArnException. | 
String | 
toString()
Returns a string representation of this object. 
 | 
BatchReadException | 
withMessage(String message)
 An exception message that is associated with the failure. 
 | 
BatchReadException | 
withType(BatchReadExceptionType type)
 A type of exception, such as  
InvalidArnException. | 
BatchReadException | 
withType(String type)
 A type of exception, such as  
InvalidArnException. | 
public void setType(String type)
 A type of exception, such as InvalidArnException.
 
type - A type of exception, such as InvalidArnException.BatchReadExceptionTypepublic String getType()
 A type of exception, such as InvalidArnException.
 
InvalidArnException.BatchReadExceptionTypepublic BatchReadException withType(String type)
 A type of exception, such as InvalidArnException.
 
type - A type of exception, such as InvalidArnException.BatchReadExceptionTypepublic void setType(BatchReadExceptionType type)
 A type of exception, such as InvalidArnException.
 
type - A type of exception, such as InvalidArnException.BatchReadExceptionTypepublic BatchReadException withType(BatchReadExceptionType type)
 A type of exception, such as InvalidArnException.
 
type - A type of exception, such as InvalidArnException.BatchReadExceptionTypepublic void setMessage(String message)
An exception message that is associated with the failure.
message - An exception message that is associated with the failure.public String getMessage()
An exception message that is associated with the failure.
public BatchReadException withMessage(String message)
An exception message that is associated with the failure.
message - An exception message that is associated with the failure.public String toString()
toString in class ObjectObject.toString()public BatchReadException clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.