Package com.pain001.sdk
Record Class FaceResponse
java.lang.Object
java.lang.Record
com.pain001.sdk.FaceResponse
- Record Components:
face- the face nameversion- the source pain.001 editionpayload- the body in the target's shape, as raw JSONlossReport- what the projection carried and what it did not
public record FaceResponse(String face, String version, com.fasterxml.jackson.databind.JsonNode payload, LossReport lossReport)
extends Record
POST /api/v1/faces/{face}: the target payload and its loss report.-
Constructor Summary
ConstructorsConstructorDescriptionFaceResponse(String face, String version, com.fasterxml.jackson.databind.JsonNode payload, LossReport lossReport) Creates an instance of aFaceResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.face()Returns the value of thefacerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelossReportrecord component.com.fasterxml.jackson.databind.JsonNodepayload()Returns the value of thepayloadrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
FaceResponse
public FaceResponse(String face, String version, com.fasterxml.jackson.databind.JsonNode payload, LossReport lossReport) Creates an instance of aFaceResponserecord class.- Parameters:
face- the value for thefacerecord componentversion- the value for theversionrecord componentpayload- the value for thepayloadrecord componentlossReport- the value for thelossReportrecord 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). -
face
Returns the value of thefacerecord component.- Returns:
- the value of the
facerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
payload
public com.fasterxml.jackson.databind.JsonNode payload()Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-
lossReport
Returns the value of thelossReportrecord component.- Returns:
- the value of the
lossReportrecord component
-