Record Class OasObject
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.dataroutes.openapi.OasObject
public record OasObject(String openapi, InfoObject info, ExternalDocumentationObject externalDocs, Map<String,PathItem> paths, ComponentsObject components, List<GroupObject> groups)
extends Record
This record class is the root of an OpenAPI specification. This class and other record types in this package
are designed to naturally
Gson
-serialize into a valid
OpenAPI specification document in JSON. Please see the
OpenAPI reference documentation-
Constructor Summary
ConstructorsConstructorDescriptionOasObject
(String openapi, InfoObject info, ExternalDocumentationObject externalDocs, Map<String, PathItem> paths, ComponentsObject components, List<GroupObject> groups) Creates an instance of aOasObject
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponents
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexternalDocs
record component.groups()
Returns the value of thegroups
record component.final int
hashCode()
Returns a hash code value for this object.info()
Returns the value of theinfo
record component.openapi()
Returns the value of theopenapi
record component.paths()
Returns the value of thepaths
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
OasObject
public OasObject(String openapi, InfoObject info, ExternalDocumentationObject externalDocs, Map<String, PathItem> paths, ComponentsObject components, List<GroupObject> groups) Creates an instance of aOasObject
record class.- Parameters:
openapi
- the value for theopenapi
record componentinfo
- the value for theinfo
record componentexternalDocs
- the value for theexternalDocs
record componentpaths
- the value for thepaths
record componentcomponents
- the value for thecomponents
record componentgroups
- the value for thegroups
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
openapi
Returns the value of theopenapi
record component.- Returns:
- the value of the
openapi
record component
-
info
Returns the value of theinfo
record component.- Returns:
- the value of the
info
record component
-
externalDocs
Returns the value of theexternalDocs
record component.- Returns:
- the value of the
externalDocs
record component
-
paths
Returns the value of thepaths
record component.- Returns:
- the value of the
paths
record component
-
components
Returns the value of thecomponents
record component.- Returns:
- the value of the
components
record component
-
groups
Returns the value of thegroups
record component.- Returns:
- the value of the
groups
record component
-