Record Class UnifiedOpenAPI.Operation
java.lang.Object
java.lang.Record
io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPI.Operation
- Enclosing class:
- UnifiedOpenAPI
public static record UnifiedOpenAPI.Operation(String operationId, List<UnifiedOpenAPI.Parameter> parameters, UnifiedOpenAPI.RequestBody requestBody)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOperation(String operationId, List<UnifiedOpenAPI.Parameter> parameters, UnifiedOpenAPI.RequestBody requestBody) Creates an instance of aOperationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanReturns the value of theoperationIdrecord component.Returns the value of theparametersrecord component.Returns the value of therequestBodyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Operation
public Operation(String operationId, List<UnifiedOpenAPI.Parameter> parameters, UnifiedOpenAPI.RequestBody requestBody) Creates an instance of aOperationrecord class.- Parameters:
operationId- the value for theoperationIdrecord componentparameters- the value for theparametersrecord componentrequestBody- the value for therequestBodyrecord component
-
-
Method Details
-
hasParameters
public boolean hasParameters() -
hasRequestBody
public boolean hasRequestBody() -
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
-
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
-