Record Class CreateMultipartUploadRequest
java.lang.Object
java.lang.Record
io.micronaut.objectstorage.multipart.CreateMultipartUploadRequest
- Record Components:
key- the target object keycontentType- the optional content typemetadata- the optional object metadata
-
Constructor Summary
ConstructorsConstructorDescriptionCreateMultipartUploadRequest(@NonNull String key) CreateMultipartUploadRequest(@NonNull String key, @Nullable String contentType) CreateMultipartUploadRequest(@NonNull String key, @Nullable String contentType, @NonNull Map<String, String> metadata) Creates an instance of aCreateMultipartUploadRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thecontentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.@NonNull StringgetKey()final inthashCode()Returns a hash code value for this object.@NonNull Stringkey()Returns the value of thekeyrecord component.metadata()Returns the value of themetadatarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreateMultipartUploadRequest
- Parameters:
key- the target object key
-
CreateMultipartUploadRequest
-
CreateMultipartUploadRequest
public CreateMultipartUploadRequest(@NonNull String key, @Nullable String contentType, @NonNull Map<String, String> metadata) Creates an instance of aCreateMultipartUploadRequestrecord class.- Parameters:
key- the value for thekeyrecord componentcontentType- the value for thecontentTyperecord componentmetadata- the value for themetadatarecord component
-
-
Method Details
-
getKey
- Returns:
- the target object key
-
getContentType
-
getMetadata
-
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). -
key
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
metadata
-