Package com.vaadin.copilot
Record Class CopilotServerClient.AccessControlData
java.lang.Object
java.lang.Record
com.vaadin.copilot.CopilotServerClient.AccessControlData
- Enclosing class:
CopilotServerClient
public static record CopilotServerClient.AccessControlData(String proKey, String machineId, String copilotVersion, CopilotServerClient.AIProvider aiProvider)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAccessControlData(String proKey, String machineId, String copilotVersion, CopilotServerClient.AIProvider aiProvider) Creates an instance of aAccessControlDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaiProviderrecord component.Returns the value of thecopilotVersionrecord component.create()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themachineIdrecord component.proKey()Returns the value of theproKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AccessControlData
public AccessControlData(String proKey, String machineId, String copilotVersion, CopilotServerClient.AIProvider aiProvider) Creates an instance of aAccessControlDatarecord class.- Parameters:
proKey- the value for theproKeyrecord componentmachineId- the value for themachineIdrecord componentcopilotVersion- the value for thecopilotVersionrecord componentaiProvider- the value for theaiProviderrecord component
-
-
Method Details
-
create
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
proKey
Returns the value of theproKeyrecord component.- Returns:
- the value of the
proKeyrecord component
-
machineId
Returns the value of themachineIdrecord component.- Returns:
- the value of the
machineIdrecord component
-
copilotVersion
Returns the value of thecopilotVersionrecord component.- Returns:
- the value of the
copilotVersionrecord component
-
aiProvider
Returns the value of theaiProviderrecord component.- Returns:
- the value of the
aiProviderrecord component
-