@Generated(value="software.amazon.awssdk:codegen") public class StorageGatewayError extends Object implements StructuredPojo, ToCopyableBuilder<StorageGatewayError.Builder,StorageGatewayError>
Provides additional information about an error that was returned by the service as an or. See the
errorCode
and errorDetails
members for more information about the error.
Modifier and Type | Class and Description |
---|---|
static interface |
StorageGatewayError.Builder |
Modifier and Type | Method and Description |
---|---|
static StorageGatewayError.Builder |
builder() |
boolean |
equals(Object obj) |
ErrorCode |
errorCode()
Additional information about the error.
|
String |
errorCodeString()
Additional information about the error.
|
Map<String,String> |
errorDetails()
Human-readable text that provides detail about the error that occurred.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
static Class<? extends StorageGatewayError.Builder> |
serializableBuilderClass() |
StorageGatewayError.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public ErrorCode errorCode()
Additional information about the error.
If the service returns an enum value that is not available in the current SDK version, errorCode
will
return ErrorCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
errorCodeString()
.
ErrorCode
public String errorCodeString()
Additional information about the error.
If the service returns an enum value that is not available in the current SDK version, errorCode
will
return ErrorCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
errorCodeString()
.
ErrorCode
public Map<String,String> errorDetails()
Human-readable text that provides detail about the error that occurred.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public StorageGatewayError.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<StorageGatewayError.Builder,StorageGatewayError>
public static StorageGatewayError.Builder builder()
public static Class<? extends StorageGatewayError.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.