Record Class Operation
java.lang.Object
java.lang.Record
org.infinispan.rest.framework.openapi.Operation
- All Implemented Interfaces:
JsonSerialization
public record Operation(String operationId, String summary, String description, boolean deprecated, ResourceDescription group, List<Parameter> parameters, RequestBody requestBody, Collection<ResponseContent> responses)
extends Record
implements JsonSerialization
-
Constructor Summary
ConstructorsConstructorDescriptionOperation(String operationId, String summary, String description, boolean deprecated, ResourceDescription group, List<Parameter> parameters, RequestBody requestBody, Collection<ResponseContent> responses) Creates an instance of aOperationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedeprecatedrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theoperationIdrecord component.Returns the value of theparametersrecord component.Returns the value of therequestBodyrecord component.Returns the value of theresponsesrecord component.summary()Returns the value of thesummaryrecord component.toJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Operation
public Operation(String operationId, String summary, String description, boolean deprecated, ResourceDescription group, List<Parameter> parameters, RequestBody requestBody, Collection<ResponseContent> responses) Creates an instance of aOperationrecord class.- Parameters:
operationId- the value for theoperationIdrecord componentsummary- the value for thesummaryrecord componentdescription- the value for thedescriptionrecord componentdeprecated- the value for thedeprecatedrecord componentgroup- the value for thegrouprecord componentparameters- the value for theparametersrecord componentrequestBody- the value for therequestBodyrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
operationId
Returns the value of theoperationIdrecord component.- Returns:
- the value of the
operationIdrecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
deprecated
public boolean deprecated()Returns the value of thedeprecatedrecord component.- Returns:
- the value of the
deprecatedrecord component
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
parameters
-
requestBody
Returns the value of therequestBodyrecord component.- Returns:
- the value of the
requestBodyrecord component
-
responses
Returns the value of theresponsesrecord component.- Returns:
- the value of the
responsesrecord component
-