com.ionoscloud.s3.messages.Grantee 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 java.util.Objects;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;
/** Helper class to denote for the person being granted permissions of {@link Grant}. */
@Root(name = "Grantee")
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(value = "URF_UNREAD_FIELD")
public class Grantee {
@Element(name = "DisplayName", required = false)
private String displayName;
@Element(name = "EmailAddress", required = false)
private String emailAddress;
@Element(name = "ID", required = false)
private String id;
@Element(name = "Type")
private GranteeType type;
@Element(name = "URI", required = false)
private String uri;
public Grantee(
@Nonnull GranteeType type,
@Nullable String displayName,
@Nullable String emailAddress,
@Nullable String id,
@Nullable String uri) {
this.type = Objects.requireNonNull(type, "Type must not be null");
this.displayName = displayName;
this.emailAddress = emailAddress;
this.id = id;
this.uri = uri;
}
}