Record Class BucketMetadataWrite
java.lang.Object
java.lang.Record
io.micronaut.objectstorage.metadata.BucketMetadataWrite
- Record Components:
name- The logical bucket or container name.metadata- User metadata.attributes- Portable custom attributes.
public record BucketMetadataWrite(@NonNull String name, @NonNull Map<String,String> metadata, @NonNull Map<String,String> attributes)
extends Record
Portable bucket or container metadata write model.
This write model represents a full metadata snapshot. Implementations should treat save operations as replace/upsert, not patch/merge.
- Since:
- 3.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Constructor Summary
ConstructorsConstructorDescriptionBucketMetadataWrite(@NonNull String name, @NonNull Map<String, String> metadata) Creates a metadata write with metadata only.BucketMetadataWrite(@NonNull String name, @NonNull Map<String, String> metadata, @NonNull Map<String, String> attributes) Creates an instance of aBucketMetadataWriterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.@NonNull Stringname()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BucketMetadataWrite
public BucketMetadataWrite(@NonNull String name, @NonNull Map<String, String> metadata, @NonNull Map<String, String> attributes) Creates an instance of aBucketMetadataWriterecord class.- Parameters:
name- the value for thenamerecord componentmetadata- the value for themetadatarecord componentattributes- the value for theattributesrecord component
-
BucketMetadataWrite
-
-
Method Details
-
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). -
name
-
metadata
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-