Record Class LaunchOutcome.Attached
java.lang.Object
java.lang.Record
com.botwithus.bot.api.script.LaunchOutcome.Attached
- Record Components:
connectionName- the host's name for the connection, asClientProviderknows it
- All Implemented Interfaces:
LaunchOutcome
- Enclosing interface:
LaunchOutcome
public static record LaunchOutcome.Attached(String connectionName)
extends Record
implements LaunchOutcome
The client was injected and the host attached to it.
-
Nested Class Summary
Nested classes/interfaces inherited from interface LaunchOutcome
LaunchOutcome.Attached, LaunchOutcome.AttachFailed, LaunchOutcome.Failed -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Attached
Creates an instance of aAttachedrecord class.- Parameters:
connectionName- the value for theconnectionNamerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
connectionName
Returns the value of theconnectionNamerecord component.- Returns:
- the value of the
connectionNamerecord component
-