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

com.capitalone.dashboard.jenkins.Artifact Maven / Gradle / Ivy

The newest version!
package com.capitalone.dashboard.jenkins;

public class Artifact {
  private String relativePath;
  private String fileName;

  private Artifact() {
    // required for converter
  }

  private Artifact(Builder builder) {
    this.relativePath = builder.relativePath;
    this.fileName = builder.fileName;
  }

  public String getFileName() {
    return fileName;
  }

  public String getRelativePath() {
    return relativePath;
  }

  @SuppressWarnings("PMD.AccessorClassGeneration")
  public static Builder newBuilder() {
    return new Builder();
  }

  public static class Builder {

    public String fileName;
    public String relativePath;

    public Builder path(String relativePath) {
      this.relativePath = relativePath;
      return this;
    }

    public Builder fileName(String fileName) {
      this.fileName = fileName;
      return this;
    }

    @SuppressWarnings("PMD.AccessorClassGeneration")
    public Artifact build() {
      return new Artifact(this);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy