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

com.pulumi.github.ActionsRunnerGroupArgs Maven / Gradle / Ivy

There is a newer version: 6.4.0-alpha.1731735876
Show newest version
// *** 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;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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 ActionsRunnerGroupArgs extends com.pulumi.resources.ResourceArgs {

    public static final ActionsRunnerGroupArgs Empty = new ActionsRunnerGroupArgs();

    /**
     * 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);
    }

    /**
     * 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);
    }

    /**
     * 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", required=true)
    private 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 Output visibility() {
        return this.visibility;
    }

    private ActionsRunnerGroupArgs() {}

    private ActionsRunnerGroupArgs(ActionsRunnerGroupArgs $) {
        this.allowsPublicRepositories = $.allowsPublicRepositories;
        this.name = $.name;
        this.restrictedToWorkflows = $.restrictedToWorkflows;
        this.selectedRepositoryIds = $.selectedRepositoryIds;
        this.selectedWorkflows = $.selectedWorkflows;
        this.visibility = $.visibility;
    }

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

    public static final class Builder {
        private ActionsRunnerGroupArgs $;

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

        public Builder(ActionsRunnerGroupArgs defaults) {
            $ = new ActionsRunnerGroupArgs(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 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 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(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 ActionsRunnerGroupArgs build() {
            if ($.visibility == null) {
                throw new MissingRequiredPropertyException("ActionsRunnerGroupArgs", "visibility");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy