package pro.javatar.pipeline.builder.model

import com.cloudbees.groovy.cps.NonCPS
import pro.javatar.pipeline.util.Logger

class Maven implements Serializable {

    String repositoryId = "nexus"

    String repositoryUrl = "nexus"

    String params

    Maven() {
        Logger.debug("Maven:default constructor")
    }

    String getRepositoryId() {
        return repositoryId
    }

    void setRepositoryId(String repositoryId) {
        this.repositoryId = repositoryId
    }

    Maven withRepositoryId(String repositoryId) {
        this.repositoryId = repositoryId
        return this
    }

    String getRepositoryUrl() {
        return repositoryUrl
    }

    void setRepositoryUrl(String repositoryUrl) {
        this.repositoryUrl = repositoryUrl
    }

    Maven withRepositoryUrl(String repositoryUrl) {
        this.repositoryUrl = repositoryUrl
        return this
    }

    String getParams() {
        return params
    }

    void setParams(String params) {
        this.params = params
    }

    Maven withParams(String params) {
        this.params = params
        return this
    }

    @NonCPS
    @Override
    public String toString() {
        return "Maven{" +
                "repositoryId='" + repositoryId + '\'' +
                ", repositoryUrl='" + repositoryUrl + '\'' +
                ", params='" + params + '\'' +
                '}';
    }
}
