Record Class Parameter
java.lang.Object
java.lang.Record
org.infinispan.rest.framework.openapi.Parameter
- Record Components:
name- A required case-sensitive property.in-required-
- All Implemented Interfaces:
JsonSerialization
public record Parameter(String name, ParameterIn in, boolean required, Schema schema, String description)
extends Record
implements JsonSerialization
Describe the parameters of a single operation.
The parameter is uniquely identified by the name and location.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParameter(String name, ParameterIn in, boolean required, Schema schema, String description) Creates an instance of aParameterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.in()Returns the value of theinrecord component.name()Returns the value of thenamerecord component.booleanrequired()Returns the value of therequiredrecord component.schema()Returns the value of theschemarecord component.toJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Parameter
Creates an instance of aParameterrecord class.
-
-
Method Details
-
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. -
hashCode
-
toJson
- Specified by:
toJsonin interfaceJsonSerialization
-
toString
-
name
-
in
-
required
-
schema
Returns the value of theschemarecord component.- Returns:
- the value of the
schemarecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-