org.odpi.openmetadata.accessservices.assetlineage.model.FindEntitiesParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of asset-lineage-api Show documentation
Show all versions of asset-lineage-api Show documentation
API classes for the Asset Lineage Open Metadata Access Service (OMAS).
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.assetlineage.model;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchClassifications;
import java.util.Date;
import java.util.List;
public class FindEntitiesParameters {
private Long updatedAfter;
private List entitySubtypeGUIDs;
private List limitResultsByStatus;
private SearchClassifications searchClassifications;
private String sequencingProperty;
private SequencingOrder sequencingOrder;
private FindEntitiesParameters(Long updatedAfter, List entitySubtypeGUIDs, List limitResultsByStatus, SearchClassifications searchClassifications, String sequencingProperty, SequencingOrder sequencingOrder) {
this.updatedAfter = updatedAfter;
this.entitySubtypeGUIDs = entitySubtypeGUIDs;
this.limitResultsByStatus = limitResultsByStatus;
this.searchClassifications = searchClassifications;
this.sequencingProperty = sequencingProperty;
this.sequencingOrder = sequencingOrder;
}
public Long getUpdatedAfter() {
return updatedAfter;
}
public List getEntitySubtypeGUIDs() {
return entitySubtypeGUIDs;
}
public List getLimitResultsByStatus() {
return limitResultsByStatus;
}
public SearchClassifications getSearchClassifications() {
return searchClassifications;
}
public String getSequencingProperty() {
return sequencingProperty;
}
public SequencingOrder getSequencingOrder() {
return sequencingOrder;
}
public static class Builder {
private Long updatedAfter;
private List entitySubtypeGUIDs;
private List limitResultsByStatus;
private SearchClassifications searchClassifications;
private String sequencingProperty;
private SequencingOrder sequencingOrder;
public Builder withEntitySubtypeGUIDs(List entitySubtypeGUIDs) {
this.entitySubtypeGUIDs = entitySubtypeGUIDs;
return this;
}
public Builder withLimitResultsByStatus(List limitResultsByStatus) {
this.limitResultsByStatus = limitResultsByStatus;
return this;
}
public Builder withSearchClassifications(SearchClassifications searchClassifications) {
this.searchClassifications = searchClassifications;
return this;
}
public Builder withSequencingProperty(String sequencingProperty) {
this.sequencingProperty = sequencingProperty;
return this;
}
public Builder withSequencingOrder(SequencingOrder sequencingOrder) {
this.sequencingOrder = sequencingOrder;
return this;
}
public Builder withUpdatedAfter(Date updatedAfterDate) {
if(updatedAfterDate == null) {
this.updatedAfter = 0L;
} else {
this.updatedAfter = updatedAfterDate.toInstant().toEpochMilli();
}
return this;
}
public FindEntitiesParameters build() {
return new FindEntitiesParameters(updatedAfter, entitySubtypeGUIDs, limitResultsByStatus, searchClassifications,
sequencingProperty, sequencingOrder);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy