Class ResponsesErrors
- java.lang.Object
-
- com.styra.opa.openapi.models.shared.ResponsesErrors
-
public class ResponsesErrors extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResponsesErrors.Builder
-
Constructor Summary
Constructors Constructor Description ResponsesErrors(java.lang.String code, java.lang.String message)
ResponsesErrors(java.lang.String code, java.lang.String message, java.util.Optional<? extends ResponsesLocation> location)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResponsesErrors.Builder
builder()
java.lang.String
code()
boolean
equals(java.lang.Object o)
int
hashCode()
java.util.Optional<ResponsesLocation>
location()
java.lang.String
message()
java.lang.String
toString()
ResponsesErrors
withCode(java.lang.String code)
ResponsesErrors
withLocation(ResponsesLocation location)
ResponsesErrors
withLocation(java.util.Optional<? extends ResponsesLocation> location)
ResponsesErrors
withMessage(java.lang.String message)
-
-
-
Constructor Detail
-
ResponsesErrors
public ResponsesErrors(java.lang.String code, java.lang.String message, java.util.Optional<? extends ResponsesLocation> location)
-
ResponsesErrors
public ResponsesErrors(java.lang.String code, java.lang.String message)
-
-
Method Detail
-
code
public java.lang.String code()
-
message
public java.lang.String message()
-
location
public java.util.Optional<ResponsesLocation> location()
-
builder
public static final ResponsesErrors.Builder builder()
-
withCode
public ResponsesErrors withCode(java.lang.String code)
-
withMessage
public ResponsesErrors withMessage(java.lang.String message)
-
withLocation
public ResponsesErrors withLocation(ResponsesLocation location)
-
withLocation
public ResponsesErrors withLocation(java.util.Optional<? extends ResponsesLocation> location)
-
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
-
-