Record Class Operation
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.apionly.transcriberj.model.Operation
- Record Components:
path- the path it is under, such as/v1/users/{username}method- its methodoperationId-operationId, ornull-tags, ornullsummary-summary, ornulldescription-description, ornullparameters- its ownparameters, not those of its path item; ornullrequestBody-requestBody, ornullresponses-responsesin declaration order, ornullother- every other key --security,deprecatedand the like -- as parsed
public record Operation(String path, HttpMethod method, String operationId, List<String> tags, String summary, String description, List<Parameter> parameters, RequestBody requestBody, List<Response> responses, Map<String,Object> other)
extends Record
One operation: a method on a path.
-
Constructor Summary
Constructors -
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.method()Returns the value of themethodrecord component.Returns the value of theoperationIdrecord component.other()Returns the value of theotherrecord component.Returns the value of theparametersrecord component.path()Returns the value of thepathrecord 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
-
Operation
public Operation(String path, HttpMethod method, String operationId, List<String> tags, String summary, String description, List<Parameter> parameters, RequestBody requestBody, List<Response> responses, Map<String, Object> other) Creates an instance of aOperationrecord class.- Parameters:
path- the value for thepathrecord componentmethod- the value for themethodrecord componentoperationId- the value for theoperationIdrecord componenttags- the value for thetagsrecord componentsummary- the value for thesummaryrecord componentdescription- the value for thedescriptionrecord componentparameters- the value for theparametersrecord componentrequestBody- the value for therequestBodyrecord componentresponses- the value for theresponsesrecord componentother- the value for theotherrecord component
-
-
Method Details
-
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). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
operationId
Returns the value of theoperationIdrecord component.- Returns:
- the value of the
operationIdrecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord 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
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
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
-
other
Returns the value of theotherrecord component.- Returns:
- the value of the
otherrecord component
-