Package com.pain001.sdk
Record Class CheckResponse
java.lang.Object
java.lang.Record
com.pain001.sdk.CheckResponse
- Record Components:
messageType- the detected message typepassed- whether no rung reported an errorerrors- the number of error findingswarnings- the number of warning findingsrungs- the rungs that ran, in orderfindings- every finding
public record CheckResponse(String messageType, boolean passed, int errors, int warnings, List<String> rungs, List<CheckFinding> findings)
extends Record
POST /api/v1/check: the verdict, the rungs that ran and every finding.-
Constructor Summary
ConstructorsConstructorDescriptionCheckResponse(String messageType, boolean passed, int errors, int warnings, List<String> rungs, List<CheckFinding> findings) Copies the lists so the record stays immutable. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.interrors()Returns the value of theerrorsrecord component.findings()Returns the value of thefindingsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themessageTyperecord component.booleanpassed()Returns the value of thepassedrecord component.rungs()Returns the value of therungsrecord component.final StringtoString()Returns a string representation of this record class.intwarnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
CheckResponse
public CheckResponse(String messageType, boolean passed, int errors, int warnings, List<String> rungs, List<CheckFinding> findings) Copies the lists so the record stays immutable.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
messageType
Returns the value of themessageTyperecord component.- Returns:
- the value of the
messageTyperecord component
-
passed
public boolean passed()Returns the value of thepassedrecord component.- Returns:
- the value of the
passedrecord component
-
errors
public int errors()Returns the value of theerrorsrecord component.- Returns:
- the value of the
errorsrecord component
-
warnings
public int warnings()Returns the value of thewarningsrecord component.- Returns:
- the value of the
warningsrecord component
-
rungs
Returns the value of therungsrecord component.- Returns:
- the value of the
rungsrecord component
-
findings
Returns the value of thefindingsrecord component.- Returns:
- the value of the
findingsrecord component
-