Module org.elasticsearch.server
Package org.elasticsearch.inference
Record Class InferenceService.DefaultConfigId
java.lang.Object
java.lang.Record
org.elasticsearch.inference.InferenceService.DefaultConfigId
- Enclosing interface:
InferenceService
public static record InferenceService.DefaultConfigId(String inferenceId, MinimalServiceSettings settings, InferenceService service)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultConfigId(String inferenceId, MinimalServiceSettings settings, InferenceService service) Creates an instance of aDefaultConfigIdrecord 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.Returns the value of theinferenceIdrecord component.service()Returns the value of theservicerecord component.settings()Returns the value of thesettingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DefaultConfigId
public DefaultConfigId(String inferenceId, MinimalServiceSettings settings, InferenceService service) Creates an instance of aDefaultConfigIdrecord class.- Parameters:
inferenceId- the value for theinferenceIdrecord componentsettings- the value for thesettingsrecord componentservice- the value for theservicerecord component
-
-
Method Details
-
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). -
inferenceId
Returns the value of theinferenceIdrecord component.- Returns:
- the value of the
inferenceIdrecord component
-
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-
service
Returns the value of theservicerecord component.- Returns:
- the value of the
servicerecord component
-