Record Class UnifiedOpenAPI
java.lang.Object
java.lang.Record
io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPI
public record UnifiedOpenAPI(String swagger, List<UnifiedOpenAPI.Server> servers, String host, String basePath, List<String> schemes, Map<String,UnifiedOpenAPI.PathItem> paths, UnifiedOpenAPI.Components components, Map<String,UnifiedOpenAPI.Schema> definitions)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionUnifiedOpenAPI(String swagger, List<UnifiedOpenAPI.Server> servers, String host, String basePath, List<String> schemes, Map<String, UnifiedOpenAPI.PathItem> paths, UnifiedOpenAPI.Components components, Map<String, UnifiedOpenAPI.Schema> definitions) Creates an instance of aUnifiedOpenAPIrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbasePath()Returns the value of thebasePathrecord component.Returns the value of thecomponentsrecord component.Returns the value of thedefinitionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.paths()Returns the value of thepathsrecord component.resolveSchema(String ref) Resolves a schema reference to a Schema object.schemes()Returns the value of theschemesrecord component.servers()Returns the value of theserversrecord component.swagger()Returns the value of theswaggerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UnifiedOpenAPI
public UnifiedOpenAPI(String swagger, List<UnifiedOpenAPI.Server> servers, String host, String basePath, List<String> schemes, Map<String, UnifiedOpenAPI.PathItem> paths, UnifiedOpenAPI.Components components, Map<String, UnifiedOpenAPI.Schema> definitions) Creates an instance of aUnifiedOpenAPIrecord class.- Parameters:
swagger- the value for theswaggerrecord componentservers- the value for theserversrecord componenthost- the value for thehostrecord componentbasePath- the value for thebasePathrecord componentschemes- the value for theschemesrecord componentpaths- the value for thepathsrecord componentcomponents- the value for thecomponentsrecord componentdefinitions- the value for thedefinitionsrecord component
-
-
Method Details
-
swaggerVersion
-
getServers
-
resolveSchema
Resolves a schema reference to a Schema object.It does not resolve nested references.
-
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). -
swagger
Returns the value of theswaggerrecord component.- Returns:
- the value of the
swaggerrecord component
-
servers
Returns the value of theserversrecord component.- Returns:
- the value of the
serversrecord component
-
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
basePath
Returns the value of thebasePathrecord component.- Returns:
- the value of the
basePathrecord component
-
schemes
Returns the value of theschemesrecord component.- Returns:
- the value of the
schemesrecord 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
-
definitions
Returns the value of thedefinitionsrecord component.- Returns:
- the value of the
definitionsrecord component
-