Record Class RequestBody
java.lang.Object
java.lang.Record
org.infinispan.rest.framework.openapi.RequestBody
- All Implemented Interfaces:
JsonSerialization
-
Constructor Summary
ConstructorsConstructorDescriptionRequestBody(String description, boolean required, Map<MediaType, Schema> schemas) Creates an instance of aRequestBodyrecord 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.booleanrequired()Returns the value of therequiredrecord component.schemas()Returns the value of theschemasrecord component.toJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RequestBody
Creates an instance of aRequestBodyrecord class.- Parameters:
description- the value for thedescriptionrecord componentrequired- the value for therequiredrecord componentschemas- the value for theschemasrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
required
public boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-
schemas
-