All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.alauda.kubernetes.api.model.PipelineSpec Maven / Gradle / Ivy

There is a newer version: 0.2.12
Show newest version

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",
    "cause",
    "hooks",
    "jenkinsBinding",
    "parameters",
    "pipelineConfig",
    "runPolicy",
    "source",
    "strategy",
    "triggers"
})
@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 PipelineSpec implements KubernetesResource
{

    /**
     * 
     * 
     */
    @JsonProperty("cause")
    @Valid
    private PipelineCause cause;
    /**
     * 
     * 
     */
    @JsonProperty("hooks")
    @Valid
    private List hooks = new ArrayList();
    /**
     * 
     * 
     */
    @JsonProperty("jenkinsBinding")
    @Valid
    private LocalObjectReference jenkinsBinding;
    /**
     * 
     * 
     */
    @JsonProperty("parameters")
    @Valid
    private List parameters = new ArrayList();
    /**
     * 
     * 
     */
    @JsonProperty("pipelineConfig")
    @Valid
    private LocalObjectReference pipelineConfig;
    /**
     * 
     * 
     */
    @JsonProperty("runPolicy")
    private String runPolicy;
    /**
     * 
     * 
     */
    @JsonProperty("source")
    @Valid
    private PipelineSource source;
    /**
     * 
     * 
     */
    @JsonProperty("strategy")
    @Valid
    private PipelineStrategy strategy;
    /**
     * 
     * 
     */
    @JsonProperty("triggers")
    @Valid
    private List triggers = new ArrayList();
    @JsonIgnore
    private Map additionalProperties = new HashMap();

    /**
     * No args constructor for use in serialization
     * 
     */
    public PipelineSpec() {
    }

    /**
     * 
     * @param pipelineConfig
     * @param cause
     * @param jenkinsBinding
     * @param source
     * @param strategy
     * @param triggers
     * @param hooks
     * @param parameters
     * @param runPolicy
     */
    public PipelineSpec(PipelineCause cause, List hooks, LocalObjectReference jenkinsBinding, List parameters, LocalObjectReference pipelineConfig, String runPolicy, PipelineSource source, PipelineStrategy strategy, List triggers) {
        this.cause = cause;
        this.hooks = hooks;
        this.jenkinsBinding = jenkinsBinding;
        this.parameters = parameters;
        this.pipelineConfig = pipelineConfig;
        this.runPolicy = runPolicy;
        this.source = source;
        this.strategy = strategy;
        this.triggers = triggers;
    }

    /**
     * 
     * 
     * @return
     *     The cause
     */
    @JsonProperty("cause")
    public PipelineCause getCause() {
        return cause;
    }

    /**
     * 
     * 
     * @param cause
     *     The cause
     */
    @JsonProperty("cause")
    public void setCause(PipelineCause cause) {
        this.cause = cause;
    }

    /**
     * 
     * 
     * @return
     *     The hooks
     */
    @JsonProperty("hooks")
    public List getHooks() {
        return hooks;
    }

    /**
     * 
     * 
     * @param hooks
     *     The hooks
     */
    @JsonProperty("hooks")
    public void setHooks(List hooks) {
        this.hooks = hooks;
    }

    /**
     * 
     * 
     * @return
     *     The jenkinsBinding
     */
    @JsonProperty("jenkinsBinding")
    public LocalObjectReference getJenkinsBinding() {
        return jenkinsBinding;
    }

    /**
     * 
     * 
     * @param jenkinsBinding
     *     The jenkinsBinding
     */
    @JsonProperty("jenkinsBinding")
    public void setJenkinsBinding(LocalObjectReference jenkinsBinding) {
        this.jenkinsBinding = jenkinsBinding;
    }

    /**
     * 
     * 
     * @return
     *     The parameters
     */
    @JsonProperty("parameters")
    public List getParameters() {
        return parameters;
    }

    /**
     * 
     * 
     * @param parameters
     *     The parameters
     */
    @JsonProperty("parameters")
    public void setParameters(List parameters) {
        this.parameters = parameters;
    }

    /**
     * 
     * 
     * @return
     *     The pipelineConfig
     */
    @JsonProperty("pipelineConfig")
    public LocalObjectReference getPipelineConfig() {
        return pipelineConfig;
    }

    /**
     * 
     * 
     * @param pipelineConfig
     *     The pipelineConfig
     */
    @JsonProperty("pipelineConfig")
    public void setPipelineConfig(LocalObjectReference pipelineConfig) {
        this.pipelineConfig = pipelineConfig;
    }

    /**
     * 
     * 
     * @return
     *     The runPolicy
     */
    @JsonProperty("runPolicy")
    public String getRunPolicy() {
        return runPolicy;
    }

    /**
     * 
     * 
     * @param runPolicy
     *     The runPolicy
     */
    @JsonProperty("runPolicy")
    public void setRunPolicy(String runPolicy) {
        this.runPolicy = runPolicy;
    }

    /**
     * 
     * 
     * @return
     *     The source
     */
    @JsonProperty("source")
    public PipelineSource getSource() {
        return source;
    }

    /**
     * 
     * 
     * @param source
     *     The source
     */
    @JsonProperty("source")
    public void setSource(PipelineSource source) {
        this.source = source;
    }

    /**
     * 
     * 
     * @return
     *     The strategy
     */
    @JsonProperty("strategy")
    public PipelineStrategy getStrategy() {
        return strategy;
    }

    /**
     * 
     * 
     * @param strategy
     *     The strategy
     */
    @JsonProperty("strategy")
    public void setStrategy(PipelineStrategy strategy) {
        this.strategy = strategy;
    }

    /**
     * 
     * 
     * @return
     *     The triggers
     */
    @JsonProperty("triggers")
    public List getTriggers() {
        return triggers;
    }

    /**
     * 
     * 
     * @param triggers
     *     The triggers
     */
    @JsonProperty("triggers")
    public void setTriggers(List triggers) {
        this.triggers = triggers;
    }

    @JsonAnyGetter
    public Map getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy