Record Class OpenApiOperation
java.lang.Object
java.lang.Record
dev.rafex.ether.http.openapi.model.OpenApiOperation
public record OpenApiOperation(String operationId, String summary, String description, List<String> tags, List<OpenApiParameter> parameters, Map<String,OpenApiResponse> responses, OpenApiRequestBody requestBody)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOpenApiOperation(String operationId, String summary, String description, List<String> tags, List<OpenApiParameter> parameters, Map<String, OpenApiResponse> responses, OpenApiRequestBody requestBody) Creates an instance of aOpenApiOperationrecord 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.static OpenApiOperationReturns 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.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OpenApiOperation
public OpenApiOperation(String operationId, String summary, String description, List<String> tags, List<OpenApiParameter> parameters, Map<String, OpenApiResponse> responses, OpenApiRequestBody requestBody) Creates an instance of aOpenApiOperationrecord class.- Parameters:
operationId- the value for theoperationIdrecord componentsummary- the value for thesummaryrecord componentdescription- the value for thedescriptionrecord componenttags- the value for thetagsrecord componentparameters- the value for theparametersrecord componentresponses- the value for theresponsesrecord componentrequestBody- the value for therequestBodyrecord component
-
-
Method Details
-
of
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
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
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
responses
Returns the value of theresponsesrecord component.- Returns:
- the value of the
responsesrecord component
-
requestBody
Returns the value of therequestBodyrecord component.- Returns:
- the value of the
requestBodyrecord component
-