com.ionoscloud.s3.messages.BucketMetadata 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;
/** Helper class to denote bucket information for {@link EventMetadata}. */
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(
value = "UwF",
justification = "Everything in this class is initialized by JSON unmarshalling.")
public class BucketMetadata {
@JsonProperty private String name;
@JsonProperty private Identity ownerIdentity;
@JsonProperty private String arn;
public String name() {
return name;
}
public String owner() {
if (ownerIdentity == null) {
return null;
}
return ownerIdentity.principalId();
}
public String arn() {
return arn;
}
}