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

io.alauda.kubernetes.api.model.PipelineConfigSpec 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",
    "hooks",
    "jenkinsBinding",
    "parameters",
    "runLimits",
    "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 PipelineConfigSpec implements KubernetesResource
{

    /**
     * 
     * 
     */
    @JsonProperty("hooks")
    @Valid
    private List hooks = new ArrayList();
    /**
     * 
     * 
     */
    @JsonProperty("jenkinsBinding")
    @Valid
    private LocalObjectReference jenkinsBinding;
    /**
     * 
     * 
     */
    @JsonProperty("parameters")
    @Valid
    private List parameters = new ArrayList();
    /**
     * 
     * 
     */
    @JsonProperty("runLimits")
    @Valid
    private PipelineRunLimits runLimits;
    /**
     * 
     * 
     */
    @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 PipelineConfigSpec() {
    }

    /**
     * 
     * @param runLimits
     * @param jenkinsBinding
     * @param source
     * @param strategy
     * @param triggers
     * @param hooks
     * @param parameters
     * @param runPolicy
     */
    public PipelineConfigSpec(List hooks, LocalObjectReference jenkinsBinding, List parameters, PipelineRunLimits runLimits, String runPolicy, PipelineSource source, PipelineStrategy strategy, List triggers) {
        this.hooks = hooks;
        this.jenkinsBinding = jenkinsBinding;
        this.parameters = parameters;
        this.runLimits = runLimits;
        this.runPolicy = runPolicy;
        this.source = source;
        this.strategy = strategy;
        this.triggers = triggers;
    }

    /**
     * 
     * 
     * @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 runLimits
     */
    @JsonProperty("runLimits")
    public PipelineRunLimits getRunLimits() {
        return runLimits;
    }

    /**
     * 
     * 
     * @param runLimits
     *     The runLimits
     */
    @JsonProperty("runLimits")
    public void setRunLimits(PipelineRunLimits runLimits) {
        this.runLimits = runLimits;
    }

    /**
     * 
     * 
     * @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