Class BatchReadException
- java.lang.Object
-
- software.amazon.awssdk.services.clouddirectory.model.BatchReadException
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BatchReadException.Builder,BatchReadException>
@Generated("software.amazon.awssdk:codegen") public final class BatchReadException extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BatchReadException.Builder,BatchReadException>
The batch read exception structure, which contains the exception type and message.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBatchReadException.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BatchReadException.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringmessage()An exception message that is associated with the failure.List<SdkField<?>>sdkFields()static Class<? extends BatchReadException.Builder>serializableBuilderClass()BatchReadException.BuildertoBuilder()StringtoString()Returns a string representation of this object.BatchReadExceptionTypetype()A type of exception, such asInvalidArnException.StringtypeAsString()A type of exception, such asInvalidArnException.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
type
public final BatchReadExceptionType type()
A type of exception, such as
InvalidArnException.If the service returns an enum value that is not available in the current SDK version,
typewill returnBatchReadExceptionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- A type of exception, such as
InvalidArnException. - See Also:
BatchReadExceptionType
-
typeAsString
public final String typeAsString()
A type of exception, such as
InvalidArnException.If the service returns an enum value that is not available in the current SDK version,
typewill returnBatchReadExceptionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- A type of exception, such as
InvalidArnException. - See Also:
BatchReadExceptionType
-
message
public final String message()
An exception message that is associated with the failure.
- Returns:
- An exception message that is associated with the failure.
-
toBuilder
public BatchReadException.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<BatchReadException.Builder,BatchReadException>
-
builder
public static BatchReadException.Builder builder()
-
serializableBuilderClass
public static Class<? extends BatchReadException.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-