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 aOasObjectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalDocsrecord component.groups()Returns the value of thegroupsrecord component.final inthashCode()Returns a hash code value for this object.info()Returns the value of theinforecord component.openapi()Returns the value of theopenapirecord component.paths()Returns the value of thepathsrecord component.final StringtoString()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 aOasObjectrecord class.- Parameters:
openapi- the value for theopenapirecord componentinfo- the value for theinforecord componentexternalDocs- the value for theexternalDocsrecord componentpaths- the value for thepathsrecord componentcomponents- the value for thecomponentsrecord componentgroups- the value for thegroupsrecord 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 theopenapirecord component.- Returns:
- the value of the
openapirecord component
-
info
Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-
externalDocs
Returns the value of theexternalDocsrecord component.- Returns:
- the value of the
externalDocsrecord component
-
paths
Returns the value of thepathsrecord component.- Returns:
- the value of the
pathsrecord component
-
components
Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-
groups
Returns the value of thegroupsrecord component.- Returns:
- the value of the
groupsrecord component
-