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

com.pulumi.github.inputs.ActionsRunnerGroupState Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.github.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ActionsRunnerGroupState extends com.pulumi.resources.ResourceArgs {

    public static final ActionsRunnerGroupState Empty = new ActionsRunnerGroupState();

    /**
     * Whether public repositories can be added to the runner group. Defaults to false.
     * 
     */
    @Import(name="allowsPublicRepositories")
    private @Nullable Output allowsPublicRepositories;

    /**
     * @return Whether public repositories can be added to the runner group. Defaults to false.
     * 
     */
    public Optional> allowsPublicRepositories() {
        return Optional.ofNullable(this.allowsPublicRepositories);
    }

    /**
     * Whether this is the default runner group
     * 
     */
    @Import(name="default")
    private @Nullable Output default_;

    /**
     * @return Whether this is the default runner group
     * 
     */
    public Optional> default_() {
        return Optional.ofNullable(this.default_);
    }

    /**
     * An etag representing the runner group object
     * 
     */
    @Import(name="etag")
    private @Nullable Output etag;

    /**
     * @return An etag representing the runner group object
     * 
     */
    public Optional> etag() {
        return Optional.ofNullable(this.etag);
    }

    /**
     * Whether the runner group is inherited from the enterprise level
     * 
     */
    @Import(name="inherited")
    private @Nullable Output inherited;

    /**
     * @return Whether the runner group is inherited from the enterprise level
     * 
     */
    public Optional> inherited() {
        return Optional.ofNullable(this.inherited);
    }

    /**
     * Name of the runner group
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the runner group
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array. Defaults to false.
     * 
     */
    @Import(name="restrictedToWorkflows")
    private @Nullable Output restrictedToWorkflows;

    /**
     * @return If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array. Defaults to false.
     * 
     */
    public Optional> restrictedToWorkflows() {
        return Optional.ofNullable(this.restrictedToWorkflows);
    }

    /**
     * The GitHub API URL for the runner group's runners
     * 
     */
    @Import(name="runnersUrl")
    private @Nullable Output runnersUrl;

    /**
     * @return The GitHub API URL for the runner group's runners
     * 
     */
    public Optional> runnersUrl() {
        return Optional.ofNullable(this.runnersUrl);
    }

    /**
     * GitHub API URL for the runner group's repositories
     * 
     */
    @Import(name="selectedRepositoriesUrl")
    private @Nullable Output selectedRepositoriesUrl;

    /**
     * @return GitHub API URL for the runner group's repositories
     * 
     */
    public Optional> selectedRepositoriesUrl() {
        return Optional.ofNullable(this.selectedRepositoriesUrl);
    }

    /**
     * IDs of the repositories which should be added to the runner group
     * 
     */
    @Import(name="selectedRepositoryIds")
    private @Nullable Output> selectedRepositoryIds;

    /**
     * @return IDs of the repositories which should be added to the runner group
     * 
     */
    public Optional>> selectedRepositoryIds() {
        return Optional.ofNullable(this.selectedRepositoryIds);
    }

    /**
     * List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true.
     * 
     */
    @Import(name="selectedWorkflows")
    private @Nullable Output> selectedWorkflows;

    /**
     * @return List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true.
     * 
     */
    public Optional>> selectedWorkflows() {
        return Optional.ofNullable(this.selectedWorkflows);
    }

    /**
     * Visibility of a runner group. Whether the runner group can include `all`, `selected`, or `private` repositories. A value of `private` is not currently supported due to limitations in the GitHub API.
     * 
     */
    @Import(name="visibility")
    private @Nullable Output visibility;

    /**
     * @return Visibility of a runner group. Whether the runner group can include `all`, `selected`, or `private` repositories. A value of `private` is not currently supported due to limitations in the GitHub API.
     * 
     */
    public Optional> visibility() {
        return Optional.ofNullable(this.visibility);
    }

    private ActionsRunnerGroupState() {}

    private ActionsRunnerGroupState(ActionsRunnerGroupState $) {
        this.allowsPublicRepositories = $.allowsPublicRepositories;
        this.default_ = $.default_;
        this.etag = $.etag;
        this.inherited = $.inherited;
        this.name = $.name;
        this.restrictedToWorkflows = $.restrictedToWorkflows;
        this.runnersUrl = $.runnersUrl;
        this.selectedRepositoriesUrl = $.selectedRepositoriesUrl;
        this.selectedRepositoryIds = $.selectedRepositoryIds;
        this.selectedWorkflows = $.selectedWorkflows;
        this.visibility = $.visibility;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(ActionsRunnerGroupState defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private ActionsRunnerGroupState $;

        public Builder() {
            $ = new ActionsRunnerGroupState();
        }

        public Builder(ActionsRunnerGroupState defaults) {
            $ = new ActionsRunnerGroupState(Objects.requireNonNull(defaults));
        }

        /**
         * @param allowsPublicRepositories Whether public repositories can be added to the runner group. Defaults to false.
         * 
         * @return builder
         * 
         */
        public Builder allowsPublicRepositories(@Nullable Output allowsPublicRepositories) {
            $.allowsPublicRepositories = allowsPublicRepositories;
            return this;
        }

        /**
         * @param allowsPublicRepositories Whether public repositories can be added to the runner group. Defaults to false.
         * 
         * @return builder
         * 
         */
        public Builder allowsPublicRepositories(Boolean allowsPublicRepositories) {
            return allowsPublicRepositories(Output.of(allowsPublicRepositories));
        }

        /**
         * @param default_ Whether this is the default runner group
         * 
         * @return builder
         * 
         */
        public Builder default_(@Nullable Output default_) {
            $.default_ = default_;
            return this;
        }

        /**
         * @param default_ Whether this is the default runner group
         * 
         * @return builder
         * 
         */
        public Builder default_(Boolean default_) {
            return default_(Output.of(default_));
        }

        /**
         * @param etag An etag representing the runner group object
         * 
         * @return builder
         * 
         */
        public Builder etag(@Nullable Output etag) {
            $.etag = etag;
            return this;
        }

        /**
         * @param etag An etag representing the runner group object
         * 
         * @return builder
         * 
         */
        public Builder etag(String etag) {
            return etag(Output.of(etag));
        }

        /**
         * @param inherited Whether the runner group is inherited from the enterprise level
         * 
         * @return builder
         * 
         */
        public Builder inherited(@Nullable Output inherited) {
            $.inherited = inherited;
            return this;
        }

        /**
         * @param inherited Whether the runner group is inherited from the enterprise level
         * 
         * @return builder
         * 
         */
        public Builder inherited(Boolean inherited) {
            return inherited(Output.of(inherited));
        }

        /**
         * @param name Name of the runner group
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the runner group
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param restrictedToWorkflows If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array. Defaults to false.
         * 
         * @return builder
         * 
         */
        public Builder restrictedToWorkflows(@Nullable Output restrictedToWorkflows) {
            $.restrictedToWorkflows = restrictedToWorkflows;
            return this;
        }

        /**
         * @param restrictedToWorkflows If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array. Defaults to false.
         * 
         * @return builder
         * 
         */
        public Builder restrictedToWorkflows(Boolean restrictedToWorkflows) {
            return restrictedToWorkflows(Output.of(restrictedToWorkflows));
        }

        /**
         * @param runnersUrl The GitHub API URL for the runner group's runners
         * 
         * @return builder
         * 
         */
        public Builder runnersUrl(@Nullable Output runnersUrl) {
            $.runnersUrl = runnersUrl;
            return this;
        }

        /**
         * @param runnersUrl The GitHub API URL for the runner group's runners
         * 
         * @return builder
         * 
         */
        public Builder runnersUrl(String runnersUrl) {
            return runnersUrl(Output.of(runnersUrl));
        }

        /**
         * @param selectedRepositoriesUrl GitHub API URL for the runner group's repositories
         * 
         * @return builder
         * 
         */
        public Builder selectedRepositoriesUrl(@Nullable Output selectedRepositoriesUrl) {
            $.selectedRepositoriesUrl = selectedRepositoriesUrl;
            return this;
        }

        /**
         * @param selectedRepositoriesUrl GitHub API URL for the runner group's repositories
         * 
         * @return builder
         * 
         */
        public Builder selectedRepositoriesUrl(String selectedRepositoriesUrl) {
            return selectedRepositoriesUrl(Output.of(selectedRepositoriesUrl));
        }

        /**
         * @param selectedRepositoryIds IDs of the repositories which should be added to the runner group
         * 
         * @return builder
         * 
         */
        public Builder selectedRepositoryIds(@Nullable Output> selectedRepositoryIds) {
            $.selectedRepositoryIds = selectedRepositoryIds;
            return this;
        }

        /**
         * @param selectedRepositoryIds IDs of the repositories which should be added to the runner group
         * 
         * @return builder
         * 
         */
        public Builder selectedRepositoryIds(List selectedRepositoryIds) {
            return selectedRepositoryIds(Output.of(selectedRepositoryIds));
        }

        /**
         * @param selectedRepositoryIds IDs of the repositories which should be added to the runner group
         * 
         * @return builder
         * 
         */
        public Builder selectedRepositoryIds(Integer... selectedRepositoryIds) {
            return selectedRepositoryIds(List.of(selectedRepositoryIds));
        }

        /**
         * @param selectedWorkflows List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true.
         * 
         * @return builder
         * 
         */
        public Builder selectedWorkflows(@Nullable Output> selectedWorkflows) {
            $.selectedWorkflows = selectedWorkflows;
            return this;
        }

        /**
         * @param selectedWorkflows List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true.
         * 
         * @return builder
         * 
         */
        public Builder selectedWorkflows(List selectedWorkflows) {
            return selectedWorkflows(Output.of(selectedWorkflows));
        }

        /**
         * @param selectedWorkflows List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true.
         * 
         * @return builder
         * 
         */
        public Builder selectedWorkflows(String... selectedWorkflows) {
            return selectedWorkflows(List.of(selectedWorkflows));
        }

        /**
         * @param visibility Visibility of a runner group. Whether the runner group can include `all`, `selected`, or `private` repositories. A value of `private` is not currently supported due to limitations in the GitHub API.
         * 
         * @return builder
         * 
         */
        public Builder visibility(@Nullable Output visibility) {
            $.visibility = visibility;
            return this;
        }

        /**
         * @param visibility Visibility of a runner group. Whether the runner group can include `all`, `selected`, or `private` repositories. A value of `private` is not currently supported due to limitations in the GitHub API.
         * 
         * @return builder
         * 
         */
        public Builder visibility(String visibility) {
            return visibility(Output.of(visibility));
        }

        public ActionsRunnerGroupState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy