io.apicurio.registry.utils.impexp.v3.ArtifactVersionEntity Maven / Gradle / Ivy
package io.apicurio.registry.utils.impexp.v3;
import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.apicurio.registry.types.VersionState;
import io.apicurio.registry.utils.impexp.Entity;
import io.apicurio.registry.utils.impexp.EntityType;
import io.quarkus.runtime.annotations.RegisterForReflection;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.util.Map;
import static lombok.AccessLevel.PRIVATE;
@Builder
@NoArgsConstructor
@AllArgsConstructor(access = PRIVATE)
@ToString
@RegisterForReflection
@JsonIgnoreProperties({ "isLatest" })
public class ArtifactVersionEntity extends Entity {
public long globalId;
public String groupId;
public String artifactId;
public String version;
@JsonAlias({ "versionId" })
public int versionOrder;
public VersionState state;
public String name;
public String description;
public String owner;
public Map labels;
public long createdOn;
public String modifiedBy;
public long modifiedOn;
public long contentId;
/**
* @see Entity#getEntityType()
*/
@Override
public EntityType getEntityType() {
return EntityType.ArtifactVersion;
}
}