io.alauda.kubernetes.api.model.PipelineTemplateTask Maven / Gradle / Ivy
package io.alauda.kubernetes.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 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.alauda.kubernetes.api.model.Doneable;
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",
"kind",
"metadata",
"agent",
"approve",
"environments",
"name",
"options",
"relation",
"type"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@ToString
@EqualsAndHashCode
@Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.alauda.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done"))
public class PipelineTemplateTask implements KubernetesResource
{
/**
*
*
*/
@JsonProperty("agent")
@Valid
private JenkinsAgent agent;
/**
*
*
*/
@JsonProperty("approve")
@Valid
private PipelineTaskApprove approve;
/**
*
*
*/
@JsonProperty("environments")
@Valid
private List environments = new ArrayList();
/**
*
*
*/
@JsonProperty("kind")
private String kind;
/**
*
*
*/
@JsonProperty("name")
private String name;
/**
*
*
*/
@JsonProperty("options")
@Valid
private PipelineTaskOption options;
/**
*
*
*/
@JsonProperty("relation")
@Valid
private List relation = new ArrayList();
/**
*
*
*/
@JsonProperty("type")
private String type;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public PipelineTemplateTask() {
}
/**
*
* @param agent
* @param environments
* @param approve
* @param kind
* @param name
* @param options
* @param type
* @param relation
*/
public PipelineTemplateTask(JenkinsAgent agent, PipelineTaskApprove approve, List environments, String kind, String name, PipelineTaskOption options, List relation, String type) {
this.agent = agent;
this.approve = approve;
this.environments = environments;
this.kind = kind;
this.name = name;
this.options = options;
this.relation = relation;
this.type = type;
}
/**
*
*
* @return
* The agent
*/
@JsonProperty("agent")
public JenkinsAgent getAgent() {
return agent;
}
/**
*
*
* @param agent
* The agent
*/
@JsonProperty("agent")
public void setAgent(JenkinsAgent agent) {
this.agent = agent;
}
/**
*
*
* @return
* The approve
*/
@JsonProperty("approve")
public PipelineTaskApprove getApprove() {
return approve;
}
/**
*
*
* @param approve
* The approve
*/
@JsonProperty("approve")
public void setApprove(PipelineTaskApprove approve) {
this.approve = approve;
}
/**
*
*
* @return
* The environments
*/
@JsonProperty("environments")
public List getEnvironments() {
return environments;
}
/**
*
*
* @param environments
* The environments
*/
@JsonProperty("environments")
public void setEnvironments(List environments) {
this.environments = environments;
}
/**
*
*
* @return
* The kind
*/
@JsonProperty("kind")
public String getKind() {
return kind;
}
/**
*
*
* @param kind
* The kind
*/
@JsonProperty("kind")
public void setKind(String kind) {
this.kind = kind;
}
/**
*
*
* @return
* The name
*/
@JsonProperty("name")
public String getName() {
return name;
}
/**
*
*
* @param name
* The name
*/
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
/**
*
*
* @return
* The options
*/
@JsonProperty("options")
public PipelineTaskOption getOptions() {
return options;
}
/**
*
*
* @param options
* The options
*/
@JsonProperty("options")
public void setOptions(PipelineTaskOption options) {
this.options = options;
}
/**
*
*
* @return
* The relation
*/
@JsonProperty("relation")
public List getRelation() {
return relation;
}
/**
*
*
* @param relation
* The relation
*/
@JsonProperty("relation")
public void setRelation(List relation) {
this.relation = relation;
}
/**
*
*
* @return
* The type
*/
@JsonProperty("type")
public String getType() {
return type;
}
/**
*
*
* @param type
* The type
*/
@JsonProperty("type")
public void setType(String type) {
this.type = type;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
}