Record Class CreateFineTuningJobRequest
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.CreateFineTuningJobRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static final record
-
Constructor Summary
ConstructorsConstructorDescriptionCreateFineTuningJobRequest
(String model, String trainingFile, Optional<CreateFineTuningJobRequest.Hyperparameters> hyperparameters, Optional<String> suffix, Optional<String> validationFile) Creates an instance of aCreateFineTuningJobRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehyperparameters
record component.model()
Returns the value of themodel
record component.suffix()
Returns the value of thesuffix
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetrainingFile
record component.Returns the value of thevalidationFile
record component.
-
Constructor Details
-
CreateFineTuningJobRequest
public CreateFineTuningJobRequest(String model, String trainingFile, Optional<CreateFineTuningJobRequest.Hyperparameters> hyperparameters, Optional<String> suffix, Optional<String> validationFile) Creates an instance of aCreateFineTuningJobRequest
record class.- Parameters:
model
- the value for themodel
record componenttrainingFile
- the value for thetrainingFile
record componenthyperparameters
- the value for thehyperparameters
record componentsuffix
- the value for thesuffix
record componentvalidationFile
- the value for thevalidationFile
record component
-
-
Method Details
-
newBuilder
-
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)
. -
model
Returns the value of themodel
record component.- Returns:
- the value of the
model
record component
-
trainingFile
Returns the value of thetrainingFile
record component.- Returns:
- the value of the
trainingFile
record component
-
hyperparameters
Returns the value of thehyperparameters
record component.- Returns:
- the value of the
hyperparameters
record component
-
suffix
Returns the value of thesuffix
record component.- Returns:
- the value of the
suffix
record component
-
validationFile
Returns the value of thevalidationFile
record component.- Returns:
- the value of the
validationFile
record component
-