Class ServerErrorWithStatusCode
- java.lang.Object
-
- com.styra.opa.openapi.models.shared.ServerErrorWithStatusCode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerErrorWithStatusCode.Builder
-
Constructor Summary
Constructors Constructor Description ServerErrorWithStatusCode(java.lang.String code, java.lang.String message)
ServerErrorWithStatusCode(java.util.Optional<java.lang.String> httpStatusCode, java.lang.String code, java.lang.String message, java.util.Optional<? extends java.util.List<ResponsesErrors>> errors, java.util.Optional<java.lang.String> decisionId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerErrorWithStatusCode.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<ResponsesErrors>>
errors()
int
hashCode()
java.lang.String
httpStatusCode()
java.lang.String
message()
java.lang.String
toString()
ServerErrorWithStatusCode
withCode(java.lang.String code)
ServerErrorWithStatusCode
withDecisionId(java.lang.String decisionId)
ServerErrorWithStatusCode
withDecisionId(java.util.Optional<java.lang.String> decisionId)
ServerErrorWithStatusCode
withErrors(java.util.List<ResponsesErrors> errors)
ServerErrorWithStatusCode
withErrors(java.util.Optional<? extends java.util.List<ResponsesErrors>> errors)
ServerErrorWithStatusCode
withHttpStatusCode(java.lang.String httpStatusCode)
ServerErrorWithStatusCode
withHttpStatusCode(java.util.Optional<java.lang.String> httpStatusCode)
ServerErrorWithStatusCode
withMessage(java.lang.String message)
-
-
-
Constructor Detail
-
ServerErrorWithStatusCode
public ServerErrorWithStatusCode(java.util.Optional<java.lang.String> httpStatusCode, java.lang.String code, java.lang.String message, java.util.Optional<? extends java.util.List<ResponsesErrors>> errors, java.util.Optional<java.lang.String> decisionId)
-
ServerErrorWithStatusCode
public ServerErrorWithStatusCode(java.lang.String code, java.lang.String message)
-
-
Method Detail
-
httpStatusCode
public java.lang.String httpStatusCode()
- Specified by:
httpStatusCode
in interfaceResponses
-
code
public java.lang.String code()
-
message
public java.lang.String message()
-
errors
public java.util.Optional<java.util.List<ResponsesErrors>> errors()
-
decisionId
public java.util.Optional<java.lang.String> decisionId()
-
builder
public static final ServerErrorWithStatusCode.Builder builder()
-
withHttpStatusCode
public ServerErrorWithStatusCode withHttpStatusCode(java.lang.String httpStatusCode)
-
withHttpStatusCode
public ServerErrorWithStatusCode withHttpStatusCode(java.util.Optional<java.lang.String> httpStatusCode)
-
withCode
public ServerErrorWithStatusCode withCode(java.lang.String code)
-
withMessage
public ServerErrorWithStatusCode withMessage(java.lang.String message)
-
withErrors
public ServerErrorWithStatusCode withErrors(java.util.List<ResponsesErrors> errors)
-
withErrors
public ServerErrorWithStatusCode withErrors(java.util.Optional<? extends java.util.List<ResponsesErrors>> errors)
-
withDecisionId
public ServerErrorWithStatusCode withDecisionId(java.lang.String decisionId)
-
withDecisionId
public ServerErrorWithStatusCode 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
-
-