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

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

There is a newer version: 0.2.12
Show newest version

package io.alauda.kubernetes.api.model;

import java.util.HashMap;
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",
    "codeRepository",
    "git",
    "secret",
    "sourceType",
    "svn"
})
@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 PipelineSource implements KubernetesResource
{

    /**
     * 
     * 
     */
    @JsonProperty("codeRepository")
    @Valid
    private CodeRepositoryRef codeRepository;
    /**
     * 
     * 
     */
    @JsonProperty("git")
    @Valid
    private PipelineSourceGit git;
    /**
     * 
     * 
     */
    @JsonProperty("secret")
    @Valid
    private SecretKeySetRef secret;
    /**
     * 
     * 
     */
    @JsonProperty("sourceType")
    private String sourceType;
    /**
     * 
     * 
     */
    @JsonProperty("svn")
    @Valid
    private PipelineSourceSvn svn;
    @JsonIgnore
    private Map additionalProperties = new HashMap();

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

    /**
     * 
     * @param git
     * @param sourceType
     * @param svn
     * @param codeRepository
     * @param secret
     */
    public PipelineSource(CodeRepositoryRef codeRepository, PipelineSourceGit git, SecretKeySetRef secret, String sourceType, PipelineSourceSvn svn) {
        this.codeRepository = codeRepository;
        this.git = git;
        this.secret = secret;
        this.sourceType = sourceType;
        this.svn = svn;
    }

    /**
     * 
     * 
     * @return
     *     The codeRepository
     */
    @JsonProperty("codeRepository")
    public CodeRepositoryRef getCodeRepository() {
        return codeRepository;
    }

    /**
     * 
     * 
     * @param codeRepository
     *     The codeRepository
     */
    @JsonProperty("codeRepository")
    public void setCodeRepository(CodeRepositoryRef codeRepository) {
        this.codeRepository = codeRepository;
    }

    /**
     * 
     * 
     * @return
     *     The git
     */
    @JsonProperty("git")
    public PipelineSourceGit getGit() {
        return git;
    }

    /**
     * 
     * 
     * @param git
     *     The git
     */
    @JsonProperty("git")
    public void setGit(PipelineSourceGit git) {
        this.git = git;
    }

    /**
     * 
     * 
     * @return
     *     The secret
     */
    @JsonProperty("secret")
    public SecretKeySetRef getSecret() {
        return secret;
    }

    /**
     * 
     * 
     * @param secret
     *     The secret
     */
    @JsonProperty("secret")
    public void setSecret(SecretKeySetRef secret) {
        this.secret = secret;
    }

    /**
     * 
     * 
     * @return
     *     The sourceType
     */
    @JsonProperty("sourceType")
    public String getSourceType() {
        return sourceType;
    }

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

    /**
     * 
     * 
     * @return
     *     The svn
     */
    @JsonProperty("svn")
    public PipelineSourceSvn getSvn() {
        return svn;
    }

    /**
     * 
     * 
     * @param svn
     *     The svn
     */
    @JsonProperty("svn")
    public void setSvn(PipelineSourceSvn svn) {
        this.svn = svn;
    }

    @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