Record Class CreateUploadRequest
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.CreateUploadRequest
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreateUploadRequest
(String filename, String purpose, int bytes, String mimeType) Creates an instance of aCreateUploadRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
bytes()
Returns the value of thebytes
record component.final boolean
Indicates whether some other object is "equal to" this one.filename()
Returns the value of thefilename
record component.final int
hashCode()
Returns a hash code value for this object.mimeType()
Returns the value of themimeType
record component.static CreateUploadRequest.Builder
purpose()
Returns the value of thepurpose
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CreateUploadRequest
Creates an instance of aCreateUploadRequest
record class.- Parameters:
filename
- the value for thefilename
record componentpurpose
- the value for thepurpose
record componentbytes
- the value for thebytes
record componentmimeType
- the value for themimeType
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
filename
Returns the value of thefilename
record component.- Returns:
- the value of the
filename
record component
-
purpose
Returns the value of thepurpose
record component.- Returns:
- the value of the
purpose
record component
-
bytes
public int bytes()Returns the value of thebytes
record component.- Returns:
- the value of the
bytes
record component
-
mimeType
Returns the value of themimeType
record component.- Returns:
- the value of the
mimeType
record component
-