Class ErrorResponse.Builder
- java.lang.Object
-
- pl.gsmservice.gateway.models.errors.ErrorResponse.Builder
-
- Enclosing class:
- ErrorResponse
public static final class ErrorResponse.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorResponsebuild()ErrorResponse.Buildercode(java.lang.String code)An API specific error code aiding the provider team understand the error based on their own potential taxonomy or registryErrorResponse.Buildercode(java.util.Optional<java.lang.String> code)An API specific error code aiding the provider team understand the error based on their own potential taxonomy or registryErrorResponse.Builderdetail(java.lang.String detail)A human-readable explanation specific to this occurrence of the problemErrorResponse.Builderdetail(java.util.Optional<java.lang.String> detail)A human-readable explanation specific to this occurrence of the problemErrorResponse.Builderinstance(java.lang.String instance)A URI reference that identifies the specific occurrence of the problemErrorResponse.Builderinstance(java.util.Optional<java.lang.String> instance)A URI reference that identifies the specific occurrence of the problemErrorResponse.Builderstatus(long status)The HTTP status code generated by the origin server for this occurrence of the problemErrorResponse.Builderstatus(java.util.Optional<java.lang.Long> status)The HTTP status code generated by the origin server for this occurrence of the problemErrorResponse.Buildertitle(java.lang.String title)A short, human-readable summary of the problem typeErrorResponse.Buildertitle(java.util.Optional<java.lang.String> title)A short, human-readable summary of the problem typeErrorResponse.Buildertype(java.lang.String type)A URI reference that identifies the problem typeErrorResponse.Buildertype(java.util.Optional<java.lang.String> type)A URI reference that identifies the problem type
-
-
-
Method Detail
-
type
public ErrorResponse.Builder type(java.lang.String type)
A URI reference that identifies the problem type
-
type
public ErrorResponse.Builder type(java.util.Optional<java.lang.String> type)
A URI reference that identifies the problem type
-
status
public ErrorResponse.Builder status(long status)
The HTTP status code generated by the origin server for this occurrence of the problem
-
status
public ErrorResponse.Builder status(java.util.Optional<java.lang.Long> status)
The HTTP status code generated by the origin server for this occurrence of the problem
-
title
public ErrorResponse.Builder title(java.lang.String title)
A short, human-readable summary of the problem type
-
title
public ErrorResponse.Builder title(java.util.Optional<java.lang.String> title)
A short, human-readable summary of the problem type
-
detail
public ErrorResponse.Builder detail(java.lang.String detail)
A human-readable explanation specific to this occurrence of the problem
-
detail
public ErrorResponse.Builder detail(java.util.Optional<java.lang.String> detail)
A human-readable explanation specific to this occurrence of the problem
-
code
public ErrorResponse.Builder code(java.lang.String code)
An API specific error code aiding the provider team understand the error based on their own potential taxonomy or registry
-
code
public ErrorResponse.Builder code(java.util.Optional<java.lang.String> code)
An API specific error code aiding the provider team understand the error based on their own potential taxonomy or registry
-
instance
public ErrorResponse.Builder instance(java.lang.String instance)
A URI reference that identifies the specific occurrence of the problem
-
instance
public ErrorResponse.Builder instance(java.util.Optional<java.lang.String> instance)
A URI reference that identifies the specific occurrence of the problem
-
build
public ErrorResponse build()
-
-