com.ionoscloud.s3.messages.DateDays 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.time.ZonedDateTime;
import org.simpleframework.xml.Element;
/** Base class for {@link Transition} and {@link Expiration}. */
public abstract class DateDays {
@Element(name = "Date", required = false)
protected ResponseDate date;
@Element(name = "Days", required = false)
protected Integer days;
public ZonedDateTime date() {
return (date != null) ? date.zonedDateTime() : null;
}
public Integer days() {
return days;
}
}