com.gooddata.project.ProjectValidations Maven / Gradle / Ivy
package com.gooddata.project;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.HashSet;
import java.util.Set;
import static java.util.Arrays.asList;
/**
* Possible validations for project.
* Helper dto, to fetch available validations or start validations.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
class ProjectValidations {
public static final String URI = "/gdc/md/{projectId}/validate";
private final Set validations;
ProjectValidations(ProjectValidationType... validations) {
this(new HashSet<>(asList(validations)));
}
@JsonCreator
ProjectValidations(@JsonProperty("availableValidations") final Set validations) {
this.validations = validations;
}
@JsonProperty("validateProject")
public Set getValidations() {
return validations;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy