All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ionoscloud.s3.messages.ListVersionsResult Maven / Gradle / Ivy

The newest version!
package com.ionoscloud.s3.messages;

import java.util.List;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Namespace;
import org.simpleframework.xml.Root;

/**
 * Object representation of response XML of ListObjectVersions
 * API.
 */
@Root(name = "ListVersionsResult", strict = false)
@Namespace(reference = "http://s3.amazonaws.com/doc/2006-03-01/")
public class ListVersionsResult extends ListObjectsResult {
  @Element(name = "KeyMarker", required = false)
  private String keyMarker;

  @Element(name = "NextKeyMarker", required = false)
  private String nextKeyMarker;

  @Element(name = "VersionIdMarker", required = false)
  private String versionIdMarker;

  @Element(name = "NextVersionIdMarker", required = false)
  private String nextVersionIdMarker;

  @ElementList(name = "Version", inline = true, required = false)
  private List contents;

  @ElementList(name = "DeleteMarker", inline = true, required = false)
  private List deleteMarkers;

  public String keyMarker() {
    return decodeIfNeeded(keyMarker);
  }

  public String nextKeyMarker() {
    return decodeIfNeeded(nextKeyMarker);
  }

  public String versionIdMarker() {
    return versionIdMarker;
  }

  public String nextVersionIdMarker() {
    return nextVersionIdMarker;
  }

  @Override
  public List contents() {
    return emptyIfNull(contents);
  }

  @Override
  public List deleteMarkers() {
    return emptyIfNull(deleteMarkers);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy