Class ServerError
- java.lang.Object
-
- com.styra.opa.openapi.models.shared.ServerError
-
public class ServerError extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerError.Builder
-
Constructor Summary
Constructors Constructor Description ServerError(java.lang.String code, java.lang.String message)
ServerError(java.lang.String code, java.lang.String message, java.util.Optional<? extends java.util.List<Errors>> errors, java.util.Optional<java.lang.String> decisionId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerError.Builder
builder()
java.lang.String
code()
java.util.Optional<java.lang.String>
decisionId()
boolean
equals(java.lang.Object o)
java.util.Optional<java.util.List<Errors>>
errors()
int
hashCode()
java.lang.String
message()
java.lang.String
toString()
ServerError
withCode(java.lang.String code)
ServerError
withDecisionId(java.lang.String decisionId)
ServerError
withDecisionId(java.util.Optional<java.lang.String> decisionId)
ServerError
withErrors(java.util.List<Errors> errors)
ServerError
withErrors(java.util.Optional<? extends java.util.List<Errors>> errors)
ServerError
withMessage(java.lang.String message)
-
-
-
Constructor Detail
-
ServerError
public ServerError(java.lang.String code, java.lang.String message, java.util.Optional<? extends java.util.List<Errors>> errors, java.util.Optional<java.lang.String> decisionId)
-
ServerError
public ServerError(java.lang.String code, java.lang.String message)
-
-
Method Detail
-
code
public java.lang.String code()
-
message
public java.lang.String message()
-
errors
public java.util.Optional<java.util.List<Errors>> errors()
-
decisionId
public java.util.Optional<java.lang.String> decisionId()
-
builder
public static final ServerError.Builder builder()
-
withCode
public ServerError withCode(java.lang.String code)
-
withMessage
public ServerError withMessage(java.lang.String message)
-
withErrors
public ServerError withErrors(java.util.List<Errors> errors)
-
withErrors
public ServerError withErrors(java.util.Optional<? extends java.util.List<Errors>> errors)
-
withDecisionId
public ServerError withDecisionId(java.lang.String decisionId)
-
withDecisionId
public ServerError withDecisionId(java.util.Optional<java.lang.String> decisionId)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-