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

org.sourcelab.github.client.request.RerunJobsFromWorkflowOptions Maven / Gradle / Ivy

The newest version!
package org.sourcelab.github.client.request;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class RerunJobsFromWorkflowOptions {
    private final String owner;
    private final String repo;
    private final Set jobIds;
    private final Boolean enableDebugLogging;

    /**
     * Create builder instance.
     * @return Create builder instance.
     */
    public static RerunJobsFromWorkflowOptionsBuilder newBuilder() {
        return new RerunJobsFromWorkflowOptionsBuilder();
    }

    /**
     * Constructor.
     */
    public RerunJobsFromWorkflowOptions(final String owner, final String repo, final Collection jobIds, final Boolean enableDebugLogging) {
        this.owner = owner;
        this.repo = repo;
        this.jobIds = Collections.unmodifiableSet(new HashSet<>(jobIds));
        this.enableDebugLogging = enableDebugLogging;
    }

    public String getOwner() {
        return owner;
    }

    public String getRepo() {
        return repo;
    }

    public List getJobIds() {
        return new ArrayList<>(jobIds);
    }

    public Boolean getEnableDebugLogging() {
        return enableDebugLogging;
    }

    @Override
    public String toString() {
        return "RerunJobFromWorkflowOptions{"
            + "\n\towner='" + owner + '\''
            + "\n\trepo='" + repo + '\''
            + "\n\tjobIds=" + jobIds
            + "\n\tenableDebugLogging=" + enableDebugLogging
            + "\n}";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy