com.ionoscloud.s3.messages.ObjectMetadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ionos-cloud-sdk-s3 Show documentation
Show all versions of ionos-cloud-sdk-s3 Show documentation
IONOS Java SDK for Amazon S3 Compatible Cloud Storage
The newest version!
package com.ionoscloud.s3.messages;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
/** Helper class to denote object information for {@link EventMetadata}. */
public class ObjectMetadata {
@JsonProperty private String key;
@JsonProperty private long size;
@JsonProperty private String eTag;
@JsonProperty private String versionId;
@JsonProperty private String sequencer;
@JsonProperty private Map userMetadata;
public String key() {
return key;
}
public long size() {
return size;
}
public String etag() {
return eTag;
}
public String versionId() {
return versionId;
}
public String sequencer() {
return sequencer;
}
public Map userMetadata() {
return Collections.unmodifiableMap(userMetadata == null ? new HashMap<>() : userMetadata);
}
}