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