Record Class HostLocalServerOptions
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.HostLocalServerOptions
-
Constructor Summary
ConstructorsConstructorDescriptionHostLocalServerOptions(String hostname, Long port, String token, Boolean requireConnectionToken) Creates an instance of aHostLocalServerOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hostname()Returns the value of thehostnamerecord component.port()Returns the value of theportrecord component.Returns the value of therequireConnectionTokenrecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HostLocalServerOptions
public HostLocalServerOptions(String hostname, Long port, String token, Boolean requireConnectionToken) Creates an instance of aHostLocalServerOptionsrecord class.- Parameters:
hostname- the value for thehostnamerecord componentport- the value for theportrecord componenttoken- the value for thetokenrecord componentrequireConnectionToken- the value for therequireConnectionTokenrecord 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). -
hostname
Returns the value of thehostnamerecord component.- Returns:
- the value of the
hostnamerecord component
-
port
Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
requireConnectionToken
Returns the value of therequireConnectionTokenrecord component.- Returns:
- the value of the
requireConnectionTokenrecord component
-