Record Class DefaultCompleteMultipartUploadResponse<R>
java.lang.Object
java.lang.Record
io.micronaut.objectstorage.multipart.DefaultCompleteMultipartUploadResponse<R>
- Type Parameters:
R- Cloud vendor-specific complete multipart upload response- Record Components:
upload- the multipart upload handleeTag- the final object entity tagnativeResponse- the native provider response
- All Implemented Interfaces:
CompleteMultipartUploadResponse<R>
public record DefaultCompleteMultipartUploadResponse<R>(@NonNull MultipartUploadHandle upload, @NonNull String eTag, @NonNull R nativeResponse)
extends Record
implements CompleteMultipartUploadResponse<R>
Default implementation of
CompleteMultipartUploadResponse.- Since:
- 3.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCompleteMultipartUploadResponse(@NonNull MultipartUploadHandle upload, @NonNull String eTag, @NonNull R nativeResponse) Compact constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NonNull StringeTag()Returns the value of theeTagrecord component.@NonNull StringgetETag()@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
-
DefaultCompleteMultipartUploadResponse
public DefaultCompleteMultipartUploadResponse(@NonNull MultipartUploadHandle upload, @NonNull String eTag, @NonNull R nativeResponse) Compact constructor.
-
-
Method Details
-
getUpload
- Specified by:
getUploadin interfaceCompleteMultipartUploadResponse<R>- Returns:
- the multipart upload handle
-
getETag
- Specified by:
getETagin interfaceCompleteMultipartUploadResponse<R>- Returns:
- the final object entity tag
-
getNativeResponse
- Specified by:
getNativeResponsein interfaceCompleteMultipartUploadResponse<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
-
eTag
-
nativeResponse
Returns the value of thenativeResponserecord component.- Returns:
- the value of the
nativeResponserecord component
-