Record Class ResponseContent
java.lang.Object
java.lang.Record
org.infinispan.rest.framework.openapi.ResponseContent
- All Implemented Interfaces:
JsonSerialization
-
Constructor Summary
ConstructorsConstructorDescriptionResponseContent(String description, io.netty.handler.codec.http.HttpResponseStatus status, Map<MediaType, Schema> responses) Creates an instance of aResponseContentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theresponsesrecord component.io.netty.handler.codec.http.HttpResponseStatusstatus()Returns the value of thestatusrecord component.toJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResponseContent
public ResponseContent(String description, io.netty.handler.codec.http.HttpResponseStatus status, Map<MediaType, Schema> responses) Creates an instance of aResponseContentrecord class.- Parameters:
description- the value for thedescriptionrecord componentstatus- the value for thestatusrecord componentresponses- the value for theresponsesrecord component
-
-
Method Details
-
toJson
- Specified by:
toJsonin interfaceJsonSerialization
-
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). -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
status
public io.netty.handler.codec.http.HttpResponseStatus status()Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
responses
-