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

cd.go.contrib.plugins.configrepo.groovy.dsl.AbstractFetchArtifactTask Maven / Gradle / Ivy

Go to download

Groovy DSL for GoCD pipeline definitions, for use with the gocd-groovy-dsl-plugin

There is a newer version: 2.2.0-713
Show newest version
// Generated by delombok at Thu May 16 19:58:20 PDT 2024
/*
 * Copyright 2022 Thoughtworks, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cd.go.contrib.plugins.configrepo.groovy.dsl;

import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.NotEmpty;

public abstract class AbstractFetchArtifactTask extends Task {
    @JsonProperty("artifact_origin")
    protected String artifactOrigin = "gocd";
    @JsonProperty("pipeline")
    protected String pipeline;
    @JsonProperty("stage")
    @NotEmpty
    protected String stage;
    @JsonProperty("job")
    @NotEmpty
    protected String job;

    protected AbstractFetchArtifactTask() {
        super("fetch");
    }

    @java.lang.SuppressWarnings("all")
    public String getArtifactOrigin() {
        return this.artifactOrigin;
    }

    @java.lang.SuppressWarnings("all")
    public String getPipeline() {
        return this.pipeline;
    }

    @java.lang.SuppressWarnings("all")
    public String getStage() {
        return this.stage;
    }

    @java.lang.SuppressWarnings("all")
    public String getJob() {
        return this.job;
    }

    @JsonProperty("artifact_origin")
    @java.lang.SuppressWarnings("all")
    public void setArtifactOrigin(final String artifactOrigin) {
        this.artifactOrigin = artifactOrigin;
    }

    @JsonProperty("pipeline")
    @java.lang.SuppressWarnings("all")
    public void setPipeline(final String pipeline) {
        this.pipeline = pipeline;
    }

    @JsonProperty("stage")
    @java.lang.SuppressWarnings("all")
    public void setStage(final String stage) {
        this.stage = stage;
    }

    @JsonProperty("job")
    @java.lang.SuppressWarnings("all")
    public void setJob(final String job) {
        this.job = job;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof AbstractFetchArtifactTask)) return false;
        final AbstractFetchArtifactTask other = (AbstractFetchArtifactTask) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        if (!super.equals(o)) return false;
        final java.lang.Object this$artifactOrigin = this.getArtifactOrigin();
        final java.lang.Object other$artifactOrigin = other.getArtifactOrigin();
        if (this$artifactOrigin == null ? other$artifactOrigin != null : !this$artifactOrigin.equals(other$artifactOrigin)) return false;
        final java.lang.Object this$pipeline = this.getPipeline();
        final java.lang.Object other$pipeline = other.getPipeline();
        if (this$pipeline == null ? other$pipeline != null : !this$pipeline.equals(other$pipeline)) return false;
        final java.lang.Object this$stage = this.getStage();
        final java.lang.Object other$stage = other.getStage();
        if (this$stage == null ? other$stage != null : !this$stage.equals(other$stage)) return false;
        final java.lang.Object this$job = this.getJob();
        final java.lang.Object other$job = other.getJob();
        if (this$job == null ? other$job != null : !this$job.equals(other$job)) return false;
        return true;
    }

    @java.lang.SuppressWarnings("all")
    protected boolean canEqual(final java.lang.Object other) {
        return other instanceof AbstractFetchArtifactTask;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final java.lang.Object $artifactOrigin = this.getArtifactOrigin();
        result = result * PRIME + ($artifactOrigin == null ? 43 : $artifactOrigin.hashCode());
        final java.lang.Object $pipeline = this.getPipeline();
        result = result * PRIME + ($pipeline == null ? 43 : $pipeline.hashCode());
        final java.lang.Object $stage = this.getStage();
        result = result * PRIME + ($stage == null ? 43 : $stage.hashCode());
        final java.lang.Object $job = this.getJob();
        result = result * PRIME + ($job == null ? 43 : $job.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
        return "AbstractFetchArtifactTask(super=" + super.toString() + ", artifactOrigin=" + this.getArtifactOrigin() + ", pipeline=" + this.getPipeline() + ", stage=" + this.getStage() + ", job=" + this.getJob() + ")";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy