From 40b054fcdc6299556efad6a307b7f5916ffb20d1 Mon Sep 17 00:00:00 2001 From: CaptainMiao <7985073+DonHoe@users.noreply.github.com> Date: Thu, 7 Mar 2024 15:10:15 +0800 Subject: [PATCH] Add the userTags field to the Item.java (#1540) --- api/src/main/java/io/minio/messages/Item.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/src/main/java/io/minio/messages/Item.java b/api/src/main/java/io/minio/messages/Item.java index 2238c90fc..7bca672ca 100644 --- a/api/src/main/java/io/minio/messages/Item.java +++ b/api/src/main/java/io/minio/messages/Item.java @@ -57,6 +57,9 @@ public abstract class Item { @Element(name = "UserMetadata", required = false) private Metadata userMetadata; + @Element(name = "UserTags", required = false) + private String userTags; + private boolean isDir = false; private String encodingType = null; @@ -111,6 +114,10 @@ public Map userMetadata() { return (userMetadata == null) ? null : userMetadata.get(); } + public String userTags() { + return userTags; + } + /** Returns whether this version ID is latest. */ public boolean isLatest() { return isLatest;