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