com.ionoscloud.s3.messages.Bucket 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;
import org.simpleframework.xml.Root;
/** Helper class to denote bucket information for {@link ListAllMyBucketsResult}. */
@Root(name = "Bucket", strict = false)
public class Bucket {
@Element(name = "Name")
private String name;
@Element(name = "CreationDate")
private ResponseDate creationDate;
public Bucket() {}
/** Returns bucket name. */
public String name() {
return name;
}
/** Returns creation date. */
public ZonedDateTime creationDate() {
return creationDate.zonedDateTime();
}
}