Record Class PathItem
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.dataroutes.openapi.PathItem
public record PathItem(String summary, String description, OperationObject get, OperationObject put, OperationObject post, OperationObject delete, OperationObject options, OperationObject head, OperationObject patch, OperationObject trace)
extends Record
Record class that represents an OpenAPI
Path Item Object
-
Constructor Summary
ConstructorsConstructorDescriptionPathItem(String summary, String description, OperationObject get, OperationObject put, OperationObject post, OperationObject delete, OperationObject options, OperationObject head, OperationObject patch, OperationObject trace) Creates an instance of aPathItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondelete()Returns the value of thedeleterecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.static PathItemforHttpMethod(HttpMethod method, String summary, String description, OperationObject operation) get()Returns the value of thegetrecord component.final inthashCode()Returns a hash code value for this object.head()Returns the value of theheadrecord component.options()Returns the value of theoptionsrecord component.patch()Returns the value of thepatchrecord component.post()Returns the value of thepostrecord component.put()Returns the value of theputrecord component.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.trace()Returns the value of thetracerecord component.
-
Constructor Details
-
PathItem
public PathItem(String summary, String description, OperationObject get, OperationObject put, OperationObject post, OperationObject delete, OperationObject options, OperationObject head, OperationObject patch, OperationObject trace) Creates an instance of aPathItemrecord class.- Parameters:
summary- the value for thesummaryrecord componentdescription- the value for thedescriptionrecord componentget- the value for thegetrecord componentput- the value for theputrecord componentpost- the value for thepostrecord componentdelete- the value for thedeleterecord componentoptions- the value for theoptionsrecord componenthead- the value for theheadrecord componentpatch- the value for thepatchrecord componenttrace- the value for thetracerecord component
-
-
Method Details
-
forHttpMethod
public static PathItem forHttpMethod(HttpMethod method, String summary, String description, OperationObject operation) -
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). -
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
-
get
Returns the value of thegetrecord component.- Returns:
- the value of the
getrecord component
-
put
Returns the value of theputrecord component.- Returns:
- the value of the
putrecord component
-
post
Returns the value of thepostrecord component.- Returns:
- the value of the
postrecord component
-
delete
Returns the value of thedeleterecord component.- Returns:
- the value of the
deleterecord component
-
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-
head
Returns the value of theheadrecord component.- Returns:
- the value of the
headrecord component
-
patch
Returns the value of thepatchrecord component.- Returns:
- the value of the
patchrecord component
-
trace
Returns the value of thetracerecord component.- Returns:
- the value of the
tracerecord component
-