ProjectSpec.java

70 lines | 1.613 kB Blame History Raw Download
/*
 * Copyright 2017 LinkedIn Corp.
 *
 * 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 azkaban.project;

import java.io.Serializable;
import java.net.URI;
import java.util.Map;


public class ProjectSpec implements Serializable {

  private String version;
  private PreExecutionSpec preExec;

  public String getVersion() {
    return this.version;
  }

  public void setVersion(final String version) {
    this.version = version;
  }

  public PreExecutionSpec getPreExec() {
    return this.preExec;
  }

  public void setPreExec(final PreExecutionSpec preExec) {
    this.preExec = preExec;
  }

  @Override
  public String toString() {
    return "ProjectSpec{" + "version='" + this.version + '\'' + ", preExec=" + this.preExec + '}';
  }

  public static class PreExecutionSpec implements Serializable {

    private Map<String, URI> fetch;

    public Map<String, URI> getFetch() {
      return this.fetch;
    }

    public void setFetch(final Map<String, URI> fetch) {
      this.fetch = fetch;
    }

    @Override
    public String toString() {
      return "PreExecutionSpec{" + "fetch=" + this.fetch + '}';
    }
  }

}