Record Class ModelRequest<ModelInput_ extends ModelInput, ModelConfigurationOverrides_ extends ModelConfigOverrides>
java.lang.Object
java.lang.Record
ai.timefold.solver.service.definition.api.domain.ModelRequest<ModelInput_, ModelConfigurationOverrides_>
public record ModelRequest<ModelInput_ extends ModelInput, ModelConfigurationOverrides_ extends ModelConfigOverrides>(Configuration<ModelConfigurationOverrides_ extends ModelConfigOverrides> configuration, ModelInput_ extends ModelInput modelInput)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionModelRequest(Configuration<ModelConfigurationOverrides_> configuration, ModelInput_ modelInput) Creates an instance of aModelRequestrecord class.ModelRequest(ModelInput_ modelInput) Returns a newModelRequestinstance with null configuration. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigurationrecord component.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 themodelInputrecord component.final StringtoString()Returns a string representation of this record class.withConfiguration(Configuration<ModelConfigurationOverrides_> configuration) Returns a copy of this instance with given configuration.
-
Constructor Details
-
ModelRequest
Returns a newModelRequestinstance with null configuration.- Parameters:
modelInput- the model input to be included in the request
-
ModelRequest
public ModelRequest(Configuration<ModelConfigurationOverrides_> configuration, ModelInput_ modelInput) Creates an instance of aModelRequestrecord class.- Parameters:
configuration- the value for theconfigurationrecord componentmodelInput- the value for themodelInputrecord component
-
-
Method Details
-
withConfiguration
public ModelRequest<ModelInput_, ModelConfigurationOverrides_> withConfiguration(Configuration<ModelConfigurationOverrides_> configuration) Returns a copy of this instance with given configuration.- Parameters:
configuration- the model request configuration to set in the created copy- Returns:
- a copy of this instance with given configuration, never null
-
getModelConfig
-
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). -
configuration
Returns the value of theconfigurationrecord component.- Returns:
- the value of the
configurationrecord component
-
modelInput
Returns the value of themodelInputrecord component.- Returns:
- the value of the
modelInputrecord component
-