@NotThreadSafe public class RpcV2CborErrorShapeMetadata extends Object
SdkRpcV2CborProtocolFactory
Constructor and Description |
---|
RpcV2CborErrorShapeMetadata() |
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode() |
JsonErrorUnmarshaller |
getExceptionUnmarshaller() |
Integer |
getHttpStatusCode() |
Class<? extends RuntimeException> |
getModeledClass() |
RpcV2CborErrorShapeMetadata |
withErrorCode(String errorCode) |
RpcV2CborErrorShapeMetadata |
withExceptionUnmarshaller(JsonErrorUnmarshaller exceptionUnmarshaller) |
RpcV2CborErrorShapeMetadata |
withHttpStatusCode(Integer httpStatusCode) |
RpcV2CborErrorShapeMetadata |
withModeledClass(Class<? extends RuntimeException> modeledClass) |
public String getErrorCode()
public RpcV2CborErrorShapeMetadata withErrorCode(String errorCode)
public Integer getHttpStatusCode()
public RpcV2CborErrorShapeMetadata withHttpStatusCode(Integer httpStatusCode)
public Class<? extends RuntimeException> getModeledClass()
public RpcV2CborErrorShapeMetadata withModeledClass(Class<? extends RuntimeException> modeledClass)
public RpcV2CborErrorShapeMetadata withExceptionUnmarshaller(JsonErrorUnmarshaller exceptionUnmarshaller)
public JsonErrorUnmarshaller getExceptionUnmarshaller()