io.fabric8.openshift.api.model.BuildRequest Maven / Gradle / Ivy
package io.fabric8.openshift.api.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.fabric8.kubernetes.api.model.Doneable;
import io.fabric8.kubernetes.api.model.EnvVar;
import io.fabric8.kubernetes.api.model.HasMetadata;
import io.fabric8.kubernetes.api.model.ObjectMeta;
import io.fabric8.kubernetes.api.model.ObjectReference;
import io.fabric8.kubernetes.api.model.validators.CheckObjectMeta;
import io.sundr.builder.annotations.Buildable;
import io.sundr.builder.annotations.Inline;
import lombok.EqualsAndHashCode;
import lombok.ToString;
/**
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
"apiVersion",
"binary",
"env",
"from",
"kind",
"lastVersion",
"metadata",
"revision",
"triggeredByImage"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@ToString
@EqualsAndHashCode
@Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done"))
public class BuildRequest implements HasMetadata
{
/**
*
* (Required)
*
*/
@NotNull
@JsonProperty("apiVersion")
private String apiVersion = "v1";
/**
*
*
*/
@JsonProperty("binary")
@Valid
private BinaryBuildSource binary;
/**
*
*
*/
@JsonProperty("env")
@Valid
private List env = new ArrayList();
/**
*
*
*/
@JsonProperty("from")
@Valid
private ObjectReference from;
/**
*
* (Required)
*
*/
@NotNull
@JsonProperty("kind")
private String kind = "BuildRequest";
/**
*
*
*/
@JsonProperty("lastVersion")
private Integer lastVersion;
/**
*
*
*/
@JsonProperty("metadata")
@Valid
@CheckObjectMeta(regexp = "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", max = 253)
private ObjectMeta metadata;
/**
*
*
*/
@JsonProperty("revision")
@Valid
private SourceRevision revision;
/**
*
*
*/
@JsonProperty("triggeredByImage")
@Valid
private ObjectReference triggeredByImage;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public BuildRequest() {
}
/**
*
* @param lastVersion
* @param metadata
* @param apiVersion
* @param triggeredByImage
* @param kind
* @param binary
* @param from
* @param env
* @param revision
*/
public BuildRequest(String apiVersion, BinaryBuildSource binary, List env, ObjectReference from, String kind, Integer lastVersion, ObjectMeta metadata, SourceRevision revision, ObjectReference triggeredByImage) {
this.apiVersion = apiVersion;
this.binary = binary;
this.env = env;
this.from = from;
this.kind = kind;
this.lastVersion = lastVersion;
this.metadata = metadata;
this.revision = revision;
this.triggeredByImage = triggeredByImage;
}
/**
*
* (Required)
*
* @return
* The apiVersion
*/
@JsonProperty("apiVersion")
public String getApiVersion() {
return apiVersion;
}
/**
*
* (Required)
*
* @param apiVersion
* The apiVersion
*/
@JsonProperty("apiVersion")
public void setApiVersion(String apiVersion) {
this.apiVersion = apiVersion;
}
/**
*
*
* @return
* The binary
*/
@JsonProperty("binary")
public BinaryBuildSource getBinary() {
return binary;
}
/**
*
*
* @param binary
* The binary
*/
@JsonProperty("binary")
public void setBinary(BinaryBuildSource binary) {
this.binary = binary;
}
/**
*
*
* @return
* The env
*/
@JsonProperty("env")
public List getEnv() {
return env;
}
/**
*
*
* @param env
* The env
*/
@JsonProperty("env")
public void setEnv(List env) {
this.env = env;
}
/**
*
*
* @return
* The from
*/
@JsonProperty("from")
public ObjectReference getFrom() {
return from;
}
/**
*
*
* @param from
* The from
*/
@JsonProperty("from")
public void setFrom(ObjectReference from) {
this.from = from;
}
/**
*
* (Required)
*
* @return
* The kind
*/
@JsonProperty("kind")
public String getKind() {
return kind;
}
/**
*
* (Required)
*
* @param kind
* The kind
*/
@JsonProperty("kind")
public void setKind(String kind) {
this.kind = kind;
}
/**
*
*
* @return
* The lastVersion
*/
@JsonProperty("lastVersion")
public Integer getLastVersion() {
return lastVersion;
}
/**
*
*
* @param lastVersion
* The lastVersion
*/
@JsonProperty("lastVersion")
public void setLastVersion(Integer lastVersion) {
this.lastVersion = lastVersion;
}
/**
*
*
* @return
* The metadata
*/
@JsonProperty("metadata")
public ObjectMeta getMetadata() {
return metadata;
}
/**
*
*
* @param metadata
* The metadata
*/
@JsonProperty("metadata")
public void setMetadata(ObjectMeta metadata) {
this.metadata = metadata;
}
/**
*
*
* @return
* The revision
*/
@JsonProperty("revision")
public SourceRevision getRevision() {
return revision;
}
/**
*
*
* @param revision
* The revision
*/
@JsonProperty("revision")
public void setRevision(SourceRevision revision) {
this.revision = revision;
}
/**
*
*
* @return
* The triggeredByImage
*/
@JsonProperty("triggeredByImage")
public ObjectReference getTriggeredByImage() {
return triggeredByImage;
}
/**
*
*
* @param triggeredByImage
* The triggeredByImage
*/
@JsonProperty("triggeredByImage")
public void setTriggeredByImage(ObjectReference triggeredByImage) {
this.triggeredByImage = triggeredByImage;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy