Record Class OperationObject
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.dataroutes.openapi.OperationObject
public record OperationObject(List<String> tags, String summary, String description, ExternalDocumentationObject externalDocs, List<ParameterObject> parameters, RequestBodyObject requestBody, ResponsesObject responses, boolean deprecated)
extends Record
A record object that represents an OpenAPI
Operation Object.
An Operation Object describes a single API operation on a path. These are typically created by route authors
using the OpenApiOperationBuilder
created using
RouteGroup.RouteMounter.openApi(Consumer)
-
Constructor Summary
ConstructorsConstructorDescriptionOperationObject
(List<String> tags, String summary, String description, ExternalDocumentationObject externalDocs, List<ParameterObject> parameters, RequestBodyObject requestBody, ResponsesObject responses, boolean deprecated) Creates an instance of aOperationObject
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of thedeprecated
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexternalDocs
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theparameters
record component.Returns the value of therequestBody
record component.Returns the value of theresponses
record component.summary()
Returns the value of thesummary
record component.tags()
Returns the value of thetags
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
OperationObject
public OperationObject(List<String> tags, String summary, String description, ExternalDocumentationObject externalDocs, List<ParameterObject> parameters, RequestBodyObject requestBody, ResponsesObject responses, boolean deprecated) Creates an instance of aOperationObject
record class.- Parameters:
tags
- the value for thetags
record componentsummary
- the value for thesummary
record componentdescription
- the value for thedescription
record componentexternalDocs
- the value for theexternalDocs
record componentparameters
- the value for theparameters
record componentrequestBody
- the value for therequestBody
record componentresponses
- the value for theresponses
record componentdeprecated
- the value for thedeprecated
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
tags
Returns the value of thetags
record component.- Returns:
- the value of the
tags
record component
-
summary
Returns the value of thesummary
record component.- Returns:
- the value of the
summary
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
externalDocs
Returns the value of theexternalDocs
record component.- Returns:
- the value of the
externalDocs
record component
-
parameters
Returns the value of theparameters
record component.- Returns:
- the value of the
parameters
record component
-
requestBody
Returns the value of therequestBody
record component.- Returns:
- the value of the
requestBody
record component
-
responses
Returns the value of theresponses
record component.- Returns:
- the value of the
responses
record component
-
deprecated
public boolean deprecated()Returns the value of thedeprecated
record component.- Returns:
- the value of the
deprecated
record component
-