Class ServerErrorWithStatusCode.Builder
- java.lang.Object
-
- com.styra.opa.openapi.models.shared.ServerErrorWithStatusCode.Builder
-
- Enclosing class:
- ServerErrorWithStatusCode
public static final class ServerErrorWithStatusCode.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerErrorWithStatusCode
build()
ServerErrorWithStatusCode.Builder
code(java.lang.String code)
ServerErrorWithStatusCode.Builder
decisionId(java.lang.String decisionId)
ServerErrorWithStatusCode.Builder
decisionId(java.util.Optional<java.lang.String> decisionId)
ServerErrorWithStatusCode.Builder
errors(java.util.List<ResponsesErrors> errors)
ServerErrorWithStatusCode.Builder
errors(java.util.Optional<? extends java.util.List<ResponsesErrors>> errors)
ServerErrorWithStatusCode.Builder
httpStatusCode(java.lang.String httpStatusCode)
ServerErrorWithStatusCode.Builder
httpStatusCode(java.util.Optional<java.lang.String> httpStatusCode)
ServerErrorWithStatusCode.Builder
message(java.lang.String message)
-
-
-
Method Detail
-
httpStatusCode
public ServerErrorWithStatusCode.Builder httpStatusCode(java.lang.String httpStatusCode)
-
httpStatusCode
public ServerErrorWithStatusCode.Builder httpStatusCode(java.util.Optional<java.lang.String> httpStatusCode)
-
code
public ServerErrorWithStatusCode.Builder code(java.lang.String code)
-
message
public ServerErrorWithStatusCode.Builder message(java.lang.String message)
-
errors
public ServerErrorWithStatusCode.Builder errors(java.util.List<ResponsesErrors> errors)
-
errors
public ServerErrorWithStatusCode.Builder errors(java.util.Optional<? extends java.util.List<ResponsesErrors>> errors)
-
decisionId
public ServerErrorWithStatusCode.Builder decisionId(java.lang.String decisionId)
-
decisionId
public ServerErrorWithStatusCode.Builder decisionId(java.util.Optional<java.lang.String> decisionId)
-
build
public ServerErrorWithStatusCode build()
-
-