io.apicurio.registry.rest.v2.beans.SearchedArtifact Maven / Gradle / Ivy
package io.apicurio.registry.rest.v2.beans;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.apicurio.registry.types.ArtifactState;
/**
* Models a single artifact from the result set returned when searching for artifacts.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"id",
"name",
"description",
"createdOn",
"createdBy",
"type",
"labels",
"state",
"modifiedOn",
"modifiedBy",
"groupId"
})
@Generated("jsonschema2pojo")
@io.quarkus.runtime.annotations.RegisterForReflection
@lombok.experimental.SuperBuilder
@lombok.AllArgsConstructor
@lombok.NoArgsConstructor
@lombok.EqualsAndHashCode
@lombok.ToString(callSuper = true)
public class SearchedArtifact {
/**
* The ID of a single artifact.
* (Required)
*
*/
@JsonProperty("id")
@JsonPropertyDescription("The ID of a single artifact.")
private String id;
/**
*
*/
@JsonProperty("name")
@JsonPropertyDescription("")
private String name;
/**
*
*/
@JsonProperty("description")
@JsonPropertyDescription("")
private String description;
/**
*
* (Required)
*
*/
@JsonProperty("createdOn")
@JsonPropertyDescription("")
private Date createdOn;
/**
*
* (Required)
*
*/
@JsonProperty("createdBy")
@JsonPropertyDescription("")
private String createdBy;
/**
*
* (Required)
*
*/
@JsonProperty("type")
@JsonPropertyDescription("")
private String type;
/**
*
*/
@JsonProperty("labels")
@JsonPropertyDescription("")
private List labels = new ArrayList();
/**
* Describes the state of an artifact or artifact version. The following states
* are possible:
*
* * ENABLED
* * DISABLED
* * DEPRECATED
*
* (Required)
*
*/
@JsonProperty("state")
@JsonPropertyDescription("Describes the state of an artifact or artifact version. The following states\nare possible:\n\n* ENABLED\n* DISABLED\n* DEPRECATED\n")
private ArtifactState state;
/**
*
*/
@JsonProperty("modifiedOn")
@JsonPropertyDescription("")
private Date modifiedOn;
/**
*
*/
@JsonProperty("modifiedBy")
@JsonPropertyDescription("")
private String modifiedBy;
/**
* An ID of a single artifact group.
*
*/
@JsonProperty("groupId")
@JsonPropertyDescription("An ID of a single artifact group.")
private String groupId;
/**
* The ID of a single artifact.
* (Required)
*
*/
@JsonProperty("id")
public String getId() {
return id;
}
/**
* The ID of a single artifact.
* (Required)
*
*/
@JsonProperty("id")
public void setId(String id) {
this.id = id;
}
/**
*
*/
@JsonProperty("name")
public String getName() {
return name;
}
/**
*
*/
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
/**
*
*/
@JsonProperty("description")
public String getDescription() {
return description;
}
/**
*
*/
@JsonProperty("description")
public void setDescription(String description) {
this.description = description;
}
/**
*
* (Required)
*
*/
@JsonProperty("createdOn")
public Date getCreatedOn() {
return createdOn;
}
/**
*
* (Required)
*
*/
@JsonProperty("createdOn")
public void setCreatedOn(Date createdOn) {
this.createdOn = createdOn;
}
/**
*
* (Required)
*
*/
@JsonProperty("createdBy")
public String getCreatedBy() {
return createdBy;
}
/**
*
* (Required)
*
*/
@JsonProperty("createdBy")
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
/**
*
* (Required)
*
*/
@JsonProperty("type")
public String getType() {
return type;
}
/**
*
* (Required)
*
*/
@JsonProperty("type")
public void setType(String type) {
this.type = type;
}
/**
*
*/
@JsonProperty("labels")
public List getLabels() {
return labels;
}
/**
*
*/
@JsonProperty("labels")
public void setLabels(List labels) {
this.labels = labels;
}
/**
* Describes the state of an artifact or artifact version. The following states
* are possible:
*
* * ENABLED
* * DISABLED
* * DEPRECATED
*
* (Required)
*
*/
@JsonProperty("state")
public ArtifactState getState() {
return state;
}
/**
* Describes the state of an artifact or artifact version. The following states
* are possible:
*
* * ENABLED
* * DISABLED
* * DEPRECATED
*
* (Required)
*
*/
@JsonProperty("state")
public void setState(ArtifactState state) {
this.state = state;
}
/**
*
*/
@JsonProperty("modifiedOn")
public Date getModifiedOn() {
return modifiedOn;
}
/**
*
*/
@JsonProperty("modifiedOn")
public void setModifiedOn(Date modifiedOn) {
this.modifiedOn = modifiedOn;
}
/**
*
*/
@JsonProperty("modifiedBy")
public String getModifiedBy() {
return modifiedBy;
}
/**
*
*/
@JsonProperty("modifiedBy")
public void setModifiedBy(String modifiedBy) {
this.modifiedBy = modifiedBy;
}
/**
* An ID of a single artifact group.
*
*/
@JsonProperty("groupId")
public String getGroupId() {
return groupId;
}
/**
* An ID of a single artifact group.
*
*/
@JsonProperty("groupId")
public void setGroupId(String groupId) {
this.groupId = groupId;
}
}