Record Class ApiController.StopResponse
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.web.controller.ApiController.StopResponse
- Enclosing class:
ApiController
public static record ApiController.StopResponse(String scope, String targetId, boolean accepted, int affectedRuns, String message)
extends Record
API payload for stop request result.
-
Constructor Summary
ConstructorsConstructorDescriptionStopResponse(String scope, String targetId, boolean accepted, int affectedRuns, String message) Creates an instance of aStopResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepted()Returns the value of theacceptedrecord component.intReturns the value of theaffectedRunsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.scope()Returns the value of thescoperecord component.targetId()Returns the value of thetargetIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StopResponse
public StopResponse(String scope, String targetId, boolean accepted, int affectedRuns, String message) Creates an instance of aStopResponserecord class.- Parameters:
scope- the value for thescoperecord componenttargetId- the value for thetargetIdrecord componentaccepted- the value for theacceptedrecord componentaffectedRuns- the value for theaffectedRunsrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-
targetId
Returns the value of thetargetIdrecord component.- Returns:
- the value of the
targetIdrecord component
-
accepted
public boolean accepted()Returns the value of theacceptedrecord component.- Returns:
- the value of the
acceptedrecord component
-
affectedRuns
public int affectedRuns()Returns the value of theaffectedRunsrecord component.- Returns:
- the value of the
affectedRunsrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-