
com.contentful.java.cda.CDAEntry 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;
/**
* The class represents a basic entry in the space.
*/
public class CDAEntry extends LocalizedResource {
private static final long serialVersionUID = 5902790363045498307L;
protected CDAContentType contentType;
@SerializedName("metadata")
private CDAMetadata metadata;
/**
* @return the metadata set.
*/
public CDAMetadata metadata() {
return metadata;
}
/**
* @return the contentType set.
*/
public CDAContentType contentType() {
return contentType;
}
/**
* Set the contentType of this entry.
* @param contentType the type to be set.
*/
protected void setContentType(CDAContentType contentType) {
this.contentType = contentType;
}
public CDAMetadata getMetadata() {
return metadata;
}
public void setMetadata(CDAMetadata metadata) {
this.metadata = metadata;
}
/**
* Create a human readable string of this object.
* @return a string, containing the id of this content type.
*/
@Override public String toString() {
return "CDAEntry{"
+ "id='" + id() + '\''
+ "metadata='" + metadata() + '\''
+ '}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy