org.gs4tr.gcc.restclient.model.ContentLocales Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gcc-restclient Show documentation
Show all versions of gcc-restclient Show documentation
GlobalLink Connect Cloud java is a library to connect your system to GlobalLink Connect Cloud REST API.
package org.gs4tr.gcc.restclient.model;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
public class ContentLocales {
@JsonProperty("content_id")
private String contentId;
@JsonProperty("target_locale")
private List targetLocales;
public ContentLocales(String contentId, List targetLocales) {
this.contentId = contentId;
this.targetLocales = targetLocales;
if (targetLocales == null || targetLocales.size() <= 0) {
throw new IllegalArgumentException("At least one target locale is required");
}
}
}