Record Class DefaultUploadPartResponse<R>
java.lang.Object
java.lang.Record
io.micronaut.objectstorage.multipart.DefaultUploadPartResponse<R>
- Type Parameters:
R- Cloud vendor-specific upload part response- Record Components:
part- the uploaded part metadatanativeResponse- the native provider response
- All Implemented Interfaces:
UploadPartResponse<R>
public record DefaultUploadPartResponse<R>(@NonNull MultipartPart part, @NonNull R nativeResponse)
extends Record
implements UploadPartResponse<R>
Default implementation of
UploadPartResponse.- Since:
- 3.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultUploadPartResponse(@NonNull MultipartPart part, @NonNull R nativeResponse) Compact constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NonNull R@NonNull MultipartPartgetPart()final inthashCode()Returns a hash code value for this object.@NonNull RReturns the value of thenativeResponserecord component.@NonNull MultipartPartpart()Returns the value of thepartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DefaultUploadPartResponse
Compact constructor.
-
-
Method Details
-
getPart
- Specified by:
getPartin interfaceUploadPartResponse<R>- Returns:
- the uploaded part metadata
-
getNativeResponse
- Specified by:
getNativeResponsein interfaceUploadPartResponse<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). -
part
-
nativeResponse
Returns the value of thenativeResponserecord component.- Returns:
- the value of the
nativeResponserecord component
-