org.odpi.openmetadata.accessservices.analyticsmodeling.responses.ModuleResponse 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 java.util.Arrays;
import java.util.List;
import org.odpi.openmetadata.accessservices.analyticsmodeling.model.ResponseContainerModule;
/**
* Response for request of the Analytics Modeling module.
*
*/
public class ModuleResponse extends AnalyticsModelingOMASAPIResponse {
private List data;
/**
* Set module definition.
* @param module definition.
*/
public void setModule(ResponseContainerModule module) {
data = Arrays.asList(module);
}
/**
* Get module definition.
* @return module definition.
*/
public ResponseContainerModule getModule() {
return (data == null || data.isEmpty()) ? null : data.get(0);
}
}