
com.contentful.java.cda.CDAArray Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for Contentful's Content Delivery API.
package com.contentful.java.cda;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Collection of CDA resources.
*/
public class CDAArray extends ArrayResource {
private static final long serialVersionUID = 6596224363025698245L;
int total;
int skip;
int limit;
Includes includes;
private List errors;
/**
* @return total number of resources (linked excluded).
*/
public int total() {
return total;
}
/**
* @return number of resources to be skipped.
*/
public int skip() {
return skip;
}
/**
* @return limit attribute. How many max resources got requested?
*/
public int limit() {
return limit;
}
/**
* @return a list of errors if any present
*/
public List getErrors() {
return errors;
}
public void setErrors(List errors) {
this.errors = errors;
}
static class Includes {
@SerializedName("Asset") List assets;
@SerializedName("Entry") List entries;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy