Record Class BasicResponse
java.lang.Object
java.lang.Record
com.kingsrook.qqq.middleware.javalin.specs.BasicResponse
-
Constructor Summary
ConstructorsConstructorDescriptionBasicResponse(io.javalin.http.HttpStatus status, String description, String schemaRefName) ConstructorBasicResponse(io.javalin.http.HttpStatus status, String description, String schemaRefName, Map<String, Example> examples) ConstructorBasicResponse(String contentType, io.javalin.http.HttpStatus status, String description, String schemaRefName, Map<String, Example> examples) Creates an instance of aBasicResponserecord class.BasicResponse(String description, String schemaRefName) ConstructorConstructor -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentTyperecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.examples()Returns the value of theexamplesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theschemaRefNamerecord component.io.javalin.http.HttpStatusstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BasicResponse
-
BasicResponse
-
BasicResponse
-
BasicResponse
-
BasicResponse
public BasicResponse(String contentType, io.javalin.http.HttpStatus status, String description, String schemaRefName, Map<String, Example> examples) Creates an instance of aBasicResponserecord class.- Parameters:
contentType- the value for thecontentTyperecord componentstatus- the value for thestatusrecord componentdescription- the value for thedescriptionrecord componentschemaRefName- the value for theschemaRefNamerecord componentexamples- the value for theexamplesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
status
public io.javalin.http.HttpStatus status()Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
schemaRefName
Returns the value of theschemaRefNamerecord component.- Returns:
- the value of the
schemaRefNamerecord component
-
examples
-