io.apicurio.registry.rest.v3.beans.CreateVersion Maven / Gradle / Ivy
The newest version!
package io.apicurio.registry.rest.v3.beans;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
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;
/**
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"version",
"content",
"name",
"description",
"labels",
"branches",
"isDraft"
})
@Generated("jsonschema2pojo")
@io.quarkus.runtime.annotations.RegisterForReflection
@lombok.experimental.SuperBuilder
@lombok.AllArgsConstructor
@lombok.NoArgsConstructor
@lombok.EqualsAndHashCode
@lombok.ToString(callSuper = true)
public class CreateVersion {
/**
* A single version of an artifact. Can be provided by the client when creating a new version,
* or it can be server-generated. The value can be any string unique to the artifact, but it is
* recommended to use a simple integer or a semver value.
*
*/
@JsonProperty("version")
@JsonPropertyDescription("A single version of an artifact. Can be provided by the client when creating a new version,\nor it can be server-generated. The value can be any string unique to the artifact, but it is\nrecommended to use a simple integer or a semver value.")
private String version;
/**
*
* (Required)
*
*/
@JsonProperty("content")
@JsonPropertyDescription("")
private VersionContent content;
/**
*
*/
@JsonProperty("name")
@JsonPropertyDescription("")
private String name;
/**
*
*/
@JsonProperty("description")
@JsonPropertyDescription("")
private String description;
/**
* User-defined name-value pairs. Name and value must be strings.
*
*/
@JsonProperty("labels")
@JsonPropertyDescription("User-defined name-value pairs. Name and value must be strings.")
private Map labels;
/**
*
*/
@JsonProperty("branches")
@JsonPropertyDescription("")
private List branches = new ArrayList();
/**
*
*/
@JsonProperty("isDraft")
@JsonPropertyDescription("")
private Boolean isDraft;
/**
* A single version of an artifact. Can be provided by the client when creating a new version,
* or it can be server-generated. The value can be any string unique to the artifact, but it is
* recommended to use a simple integer or a semver value.
*
*/
@JsonProperty("version")
public String getVersion() {
return version;
}
/**
* A single version of an artifact. Can be provided by the client when creating a new version,
* or it can be server-generated. The value can be any string unique to the artifact, but it is
* recommended to use a simple integer or a semver value.
*
*/
@JsonProperty("version")
public void setVersion(String version) {
this.version = version;
}
/**
*
* (Required)
*
*/
@JsonProperty("content")
public VersionContent getContent() {
return content;
}
/**
*
* (Required)
*
*/
@JsonProperty("content")
public void setContent(VersionContent content) {
this.content = content;
}
/**
*
*/
@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;
}
/**
* User-defined name-value pairs. Name and value must be strings.
*
*/
@JsonProperty("labels")
public Map getLabels() {
return labels;
}
/**
* User-defined name-value pairs. Name and value must be strings.
*
*/
@JsonProperty("labels")
public void setLabels(Map labels) {
this.labels = labels;
}
/**
*
*/
@JsonProperty("branches")
public List getBranches() {
return branches;
}
/**
*
*/
@JsonProperty("branches")
public void setBranches(List branches) {
this.branches = branches;
}
/**
*
*/
@JsonProperty("isDraft")
public Boolean getIsDraft() {
return isDraft;
}
/**
*
*/
@JsonProperty("isDraft")
public void setIsDraft(Boolean isDraft) {
this.isDraft = isDraft;
}
}