Record Class DashScopeApiSpec.UploadRequest
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.spec.DashScopeApiSpec.UploadRequest
- Enclosing class:
- DashScopeApiSpec
public static record DashScopeApiSpec.UploadRequest(String categoryId, String fileName, long fileLength, String fileMD5)
extends Record
Data center.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionUploadRequest(String categoryId, String fileName, long fileLength, String fileMD5) Creates an instance of aUploadRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecategoryIdrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefileLengthrecord component.fileMD5()Returns the value of thefileMD5record component.fileName()Returns the value of thefileNamerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UploadRequest
Creates an instance of aUploadRequestrecord class.- Parameters:
categoryId- the value for thecategoryIdrecord componentfileName- the value for thefileNamerecord componentfileLength- the value for thefileLengthrecord componentfileMD5- the value for thefileMD5record 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
categoryId
Returns the value of thecategoryIdrecord component.- Returns:
- the value of the
categoryIdrecord component
-
fileName
Returns the value of thefileNamerecord component.- Returns:
- the value of the
fileNamerecord component
-
fileLength
public long fileLength()Returns the value of thefileLengthrecord component.- Returns:
- the value of the
fileLengthrecord component
-
fileMD5
Returns the value of thefileMD5record component.- Returns:
- the value of the
fileMD5record component
-