All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.odpi.openmetadata.accessservices.analyticsmodeling.responses.AnalyticsModelingOMASAPIResponse Maven / Gradle / Ivy

There is a newer version: 3.15
Show newest version
/* 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 data; /** * Get data of the response. * @return data of the response. */ public List getData() { return data; } /** * Set response data. * @param data response data. */ protected void setData(List data) { this.data = data; } @Override public String toString() { return "AnalyticsModelingOMASAPIResponse{" + " data =" + data + '}'; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy