Record Class ResponsesObject
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.dataroutes.openapi.ResponsesObject
public record ResponsesObject(ResponseObject defaultResponse, Map<Integer,ResponseObject> httpCodes)
extends Record
Record class that represents an OpenAPI
Responses Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Specialized serializer to accommodate the specification's format of this object doesn't naturally work with GSON -
Constructor Summary
ConstructorsConstructorDescriptionResponsesObject
(ResponseObject defaultResponse, Map<Integer, ResponseObject> httpCodes) Creates an instance of aResponsesObject
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultResponse
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehttpCodes
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ResponsesObject
Creates an instance of aResponsesObject
record class.- Parameters:
defaultResponse
- the value for thedefaultResponse
record componenthttpCodes
- the value for thehttpCodes
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)
. -
defaultResponse
Returns the value of thedefaultResponse
record component.- Returns:
- the value of the
defaultResponse
record component
-
httpCodes
Returns the value of thehttpCodes
record component.- Returns:
- the value of the
httpCodes
record component
-