Record Class DefaultCreateMultipartUploadResponse<R>
java.lang.Object
java.lang.Record
io.micronaut.objectstorage.multipart.DefaultCreateMultipartUploadResponse<R>
- Type Parameters:
R- Cloud vendor-specific create multipart upload response- Record Components:
upload- the multipart upload handlenativeResponse- the native provider response
- All Implemented Interfaces:
CreateMultipartUploadResponse<R>
public record DefaultCreateMultipartUploadResponse<R>(@NonNull MultipartUploadHandle upload, @NonNull R nativeResponse)
extends Record
implements CreateMultipartUploadResponse<R>
Default implementation of
CreateMultipartUploadResponse.- Since:
- 3.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCreateMultipartUploadResponse(@NonNull MultipartUploadHandle upload, @NonNull R nativeResponse) Compact constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NonNull R@NonNull MultipartUploadHandlefinal inthashCode()Returns a hash code value for this object.@NonNull RReturns the value of thenativeResponserecord component.final StringtoString()Returns a string representation of this record class.@NonNull MultipartUploadHandleupload()Returns the value of theuploadrecord component.
-
Constructor Details
-
DefaultCreateMultipartUploadResponse
public DefaultCreateMultipartUploadResponse(@NonNull MultipartUploadHandle upload, @NonNull R nativeResponse) Compact constructor.
-
-
Method Details
-
getUpload
- Specified by:
getUploadin interfaceCreateMultipartUploadResponse<R>- Returns:
- the multipart upload handle
-
getNativeResponse
- Specified by:
getNativeResponsein interfaceCreateMultipartUploadResponse<R>- Returns:
- the native provider response
-
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). -
upload
-
nativeResponse
Returns the value of thenativeResponserecord component.- Returns:
- the value of the
nativeResponserecord component
-