com.ionoscloud.s3.messages.AccessControlList 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.Collections;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nonnull;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;
/** Helper class to denote access control list of {@link S3OutputLocation}. */
@Root(name = "AccessControlList")
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(value = "URF_UNREAD_FIELD")
public class AccessControlList {
@ElementList(name = "Grant", inline = true)
private List grants;
public AccessControlList(@Nonnull List grants) {
Objects.requireNonNull(grants, "Grants must not be null");
if (grants.size() == 0) {
throw new IllegalArgumentException("Grants must not be empty");
}
this.grants = Collections.unmodifiableList(grants);
}
}