com.ionoscloud.s3.messages.Encryption 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 encryption information of {@link S3OutputLocation}. */
@Root(name = "Encryption")
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(value = "URF_UNREAD_FIELD")
public class Encryption {
@Element(name = "EncryptionType")
private SseAlgorithm encryptionType;
@Element(name = "KMSContext", required = false)
private String kmsContext;
@Element(name = "KMSKeyId", required = false)
private String kmsKeyId;
public Encryption(
@Nonnull SseAlgorithm encryptionType,
@Nullable String kmsContext,
@Nullable String kmsKeyId) {
this.encryptionType =
Objects.requireNonNull(encryptionType, "Encryption type must not be null");
this.kmsContext = kmsContext;
this.kmsKeyId = kmsKeyId;
}
}