org.odpi.openmetadata.accessservices.analyticsmodeling.responses.AnalyticsModelingOMASAPIResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of analytics-modeling-api Show documentation
Show all versions of analytics-modeling-api Show documentation
Shared beans for the Analytics Modeling Open Metadata Access Service (OMAS).
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.analyticsmodeling.responses;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import java.util.List;
import org.odpi.openmetadata.accessservices.analyticsmodeling.model.ResponseContainer;
import org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase;
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
/**
* The class is base for all responses of Analytics Modeling OMAS.
*
* Response data is stored in data field as list of a response containers.
*
*/
@JsonAutoDetect(getterVisibility=PUBLIC_ONLY, setterVisibility=PUBLIC_ONLY, fieldVisibility=NONE)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown=true)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "class")
@JsonSubTypes
({
@JsonSubTypes.Type(value = ErrorResponse.class, name = "ErrorResponse"),
@JsonSubTypes.Type(value = DatabasesResponse.class, name = "DatabasesResponse"),
@JsonSubTypes.Type(value = SchemasResponse.class, name = "SchemasResponse"),
@JsonSubTypes.Type(value = SchemaTablesResponse.class, name = "SchemaTablesResponse"),
@JsonSubTypes.Type(value = ModuleResponse.class, name = "ModuleResponse")
})
public class AnalyticsModelingOMASAPIResponse extends FFDCResponseBase {
private static final long serialVersionUID = 1L;
private List extends ResponseContainer> data;
/**
* Get data of the response.
* @return data of the response.
*/
public List extends ResponseContainer> getData() {
return data;
}
/**
* Set response data.
* @param data response data.
*/
protected void setData(List extends ResponseContainer> data) {
this.data = data;
}
@Override
public String toString() {
return "AnalyticsModelingOMASAPIResponse{" +
" data =" + data +
'}';
}
}