Record Class UploadPartRequest
java.lang.Object
java.lang.Record
io.micronaut.objectstorage.multipart.UploadPartRequest
- Record Components:
upload- the multipart upload handlepartNumber- the positive part numberuploadRequest- the payload upload request
public record UploadPartRequest(@NonNull MultipartUploadHandle upload, int partNumber, @NonNull UploadRequest uploadRequest)
extends Record
Multipart part upload request.
The supplied UploadRequest must target the same key as the multipart upload handle.
- Since:
- 3.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionUploadPartRequest(@NonNull MultipartUploadHandle upload, int partNumber, @NonNull UploadRequest uploadRequest) Compact constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.int@NonNull MultipartUploadHandle@NonNull UploadRequestfinal inthashCode()Returns a hash code value for this object.intReturns the value of thepartNumberrecord component.final StringtoString()Returns a string representation of this record class.@NonNull MultipartUploadHandleupload()Returns the value of theuploadrecord component.@NonNull UploadRequestReturns the value of theuploadRequestrecord component.
-
Constructor Details
-
UploadPartRequest
public UploadPartRequest(@NonNull MultipartUploadHandle upload, int partNumber, @NonNull UploadRequest uploadRequest) Compact constructor.
-
-
Method Details
-
getUpload
- Returns:
- the multipart upload handle
-
getPartNumber
public int getPartNumber()- Returns:
- the positive part number
-
getUploadRequest
- Returns:
- the payload upload request
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
upload
-
partNumber
public int partNumber()Returns the value of thepartNumberrecord component.- Returns:
- the value of the
partNumberrecord component
-
uploadRequest
Returns the value of theuploadRequestrecord component.- Returns:
- the value of the
uploadRequestrecord component
-