Record Class ClientOrchestrator.ScheduleOpResult
java.lang.Object
java.lang.Record
com.botwithus.bot.api.script.ClientOrchestrator.ScheduleOpResult
- Enclosing interface:
ClientOrchestrator
public static record ClientOrchestrator.ScheduleOpResult(boolean success, String clientName, String scriptName, String scheduleId, String message)
extends Record
Result of a schedule operation.
scheduleId is non-null on
successful schedule creations and on cancellations of an identified
schedule; null otherwise.-
Constructor Summary
ConstructorsConstructorDescriptionScheduleOpResult(boolean success, String clientName, String scriptName, String scheduleId, String message) Creates an instance of aScheduleOpResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientNamerecord 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.Returns the value of thescheduleIdrecord component.Returns the value of thescriptNamerecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScheduleOpResult
public ScheduleOpResult(boolean success, String clientName, String scriptName, String scheduleId, String message) Creates an instance of aScheduleOpResultrecord class.- Parameters:
success- the value for thesuccessrecord componentclientName- the value for theclientNamerecord componentscriptName- the value for thescriptNamerecord componentscheduleId- the value for thescheduleIdrecord 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. -
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
clientName
Returns the value of theclientNamerecord component.- Returns:
- the value of the
clientNamerecord component
-
scriptName
Returns the value of thescriptNamerecord component.- Returns:
- the value of the
scriptNamerecord component
-
scheduleId
Returns the value of thescheduleIdrecord component.- Returns:
- the value of the
scheduleIdrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-