public StorageGatewayError addErrorDetailsEntry(String key, String value) {
        if (null == this.errorDetails) {
            this.errorDetails = new java.util.HashMap<String, String>();
        }
        if (this.errorDetails.containsKey(key))
            throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
        this.errorDetails.put(key, value);
        return this;
    }
Add a single ErrorDetails entry

@see StorageGatewayError#withErrorDetails
@returns a reference to this object so that method calls can be chained together.
aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/model/StorageGatewayError.java