com.ionoscloud.s3.messages.SourceSelectionCriteria 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 javax.annotation.Nullable;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;
/** Helper class to denote source selection criteria information for {@link ReplicationRule}. */
@Root(name = "SourceSelectionCriteria")
public class SourceSelectionCriteria {
@Element(name = "ReplicaModifications", required = false)
private ReplicaModifications replicaModifications;
@Element(name = "SseKmsEncryptedObjects", required = false)
private SseKmsEncryptedObjects sseKmsEncryptedObjects;
public SourceSelectionCriteria(
@Nullable @Element(name = "SseKmsEncryptedObjects", required = false)
SseKmsEncryptedObjects sseKmsEncryptedObjects,
@Nullable @Element(name = "ReplicaModifications", required = false)
ReplicaModifications replicaModifications) {
this.sseKmsEncryptedObjects = sseKmsEncryptedObjects;
this.replicaModifications = replicaModifications;
}
public SourceSelectionCriteria(@Nullable SseKmsEncryptedObjects sseKmsEncryptedObjects) {
this(sseKmsEncryptedObjects, null);
}
public ReplicaModifications replicaModifications() {
return this.replicaModifications;
}
public SseKmsEncryptedObjects sseKmsEncryptedObjects() {
return this.sseKmsEncryptedObjects;
}
}