com.ionoscloud.s3.messages.ReplicationTime 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 org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;
/** Helper class to denote replication time information for {@link ReplicationDestination}. */
@Root(name = "ReplicationTime")
public class ReplicationTime {
@Element(name = "Time")
private ReplicationTimeValue time;
@Element(name = "Status")
private Status status;
public ReplicationTime(
@Nonnull @Element(name = "Time") ReplicationTimeValue time,
@Nonnull @Element(name = "Status") Status status) {
this.time = Objects.requireNonNull(time, "Time must not be null");
this.status = Objects.requireNonNull(status, "Status must not be null");
}
public ReplicationTimeValue time() {
return this.time;
}
public Status status() {
return this.status;
}
}