Record Class ParameterObject
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.dataroutes.openapi.ParameterObject
public record ParameterObject(String ref, String name, ParameterObject.In in, String description, boolean required, boolean deprecated, ParameterObject.Style style, boolean explode, boolean allowReserved, com.inductiveautomation.ignition.common.gson.JsonObject schema)
extends Record
Record class that represents an OpenAPI Parameter Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionParameterObject(String ref, String name, ParameterObject.In in, String description, boolean required, boolean deprecated, ParameterObject.Style style, boolean explode, boolean allowReserved, com.inductiveautomation.ignition.common.gson.JsonObject schema) Creates an instance of aParameterObjectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowReservedrecord component.booleanReturns the value of thedeprecatedrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanexplode()Returns the value of theexploderecord component.final inthashCode()Returns a hash code value for this object.in()Returns the value of theinrecord component.name()Returns the value of thenamerecord component.static ParameterObjectpath(String name, String description, boolean required, com.inductiveautomation.ignition.common.gson.JsonObject schema) Create a parameter query object.static ParameterObjectquery(String name, String description, boolean required, boolean allowReserved, com.inductiveautomation.ignition.common.gson.JsonObject schema) Create a query parameter object.ref()Returns the value of therefrecord component.static ParameterObjectCreate a parameter object that is a reference to another parameter object.booleanrequired()Returns the value of therequiredrecord component.com.inductiveautomation.ignition.common.gson.JsonObjectschema()Returns the value of theschemarecord component.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParameterObject
public ParameterObject(String ref, String name, ParameterObject.In in, String description, boolean required, boolean deprecated, ParameterObject.Style style, boolean explode, boolean allowReserved, com.inductiveautomation.ignition.common.gson.JsonObject schema) Creates an instance of aParameterObjectrecord class.- Parameters:
ref- the value for therefrecord componentname- the value for thenamerecord componentin- the value for theinrecord componentdescription- the value for thedescriptionrecord componentrequired- the value for therequiredrecord componentdeprecated- the value for thedeprecatedrecord componentstyle- the value for thestylerecord componentexplode- the value for theexploderecord componentallowReserved- the value for theallowReservedrecord componentschema- the value for theschemarecord component
-
-
Method Details
-
ref
Create a parameter object that is a reference to another parameter object. All other fields will be null / defaults -
query
public static ParameterObject query(String name, String description, boolean required, boolean allowReserved, com.inductiveautomation.ignition.common.gson.JsonObject schema) Create a query parameter object. This will set In to "query", style to "form", and explode to true. -
path
public static ParameterObject path(String name, String description, boolean required, com.inductiveautomation.ignition.common.gson.JsonObject schema) Create a parameter query object. This will set In to "path", style to "simple", and explode to false. -
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 '=='. -
ref
Returns the value of therefrecord component.- Returns:
- the value of the
refrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
in
Returns the value of theinrecord component.- Returns:
- the value of the
inrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
required
public boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-
deprecated
public boolean deprecated()Returns the value of thedeprecatedrecord component.- Returns:
- the value of the
deprecatedrecord component
-
style
Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-
explode
public boolean explode()Returns the value of theexploderecord component.- Returns:
- the value of the
exploderecord component
-
allowReserved
public boolean allowReserved()Returns the value of theallowReservedrecord component.- Returns:
- the value of the
allowReservedrecord component
-
schema
public com.inductiveautomation.ignition.common.gson.JsonObject schema()Returns the value of theschemarecord component.- Returns:
- the value of the
schemarecord component
-