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

com.pulumi.github.inputs.ActionsOrganizationPermissionsState 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 com.pulumi.github.inputs.ActionsOrganizationPermissionsAllowedActionsConfigArgs;
import com.pulumi.github.inputs.ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ActionsOrganizationPermissionsState Empty = new ActionsOrganizationPermissionsState();

    /**
     * The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`.
     * 
     */
    @Import(name="allowedActions")
    private @Nullable Output allowedActions;

    /**
     * @return The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`.
     * 
     */
    public Optional> allowedActions() {
        return Optional.ofNullable(this.allowedActions);
    }

    /**
     * Sets the actions that are allowed in an organization. Only available when `allowed_actions` = `selected`. See Allowed Actions Config below for details.
     * 
     */
    @Import(name="allowedActionsConfig")
    private @Nullable Output allowedActionsConfig;

    /**
     * @return Sets the actions that are allowed in an organization. Only available when `allowed_actions` = `selected`. See Allowed Actions Config below for details.
     * 
     */
    public Optional> allowedActionsConfig() {
        return Optional.ofNullable(this.allowedActionsConfig);
    }

    /**
     * The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
     * 
     */
    @Import(name="enabledRepositories")
    private @Nullable Output enabledRepositories;

    /**
     * @return The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
     * 
     */
    public Optional> enabledRepositories() {
        return Optional.ofNullable(this.enabledRepositories);
    }

    /**
     * Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabled_repositories` = `selected`. See Enabled Repositories Config below for details.
     * 
     */
    @Import(name="enabledRepositoriesConfig")
    private @Nullable Output enabledRepositoriesConfig;

    /**
     * @return Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabled_repositories` = `selected`. See Enabled Repositories Config below for details.
     * 
     */
    public Optional> enabledRepositoriesConfig() {
        return Optional.ofNullable(this.enabledRepositoriesConfig);
    }

    private ActionsOrganizationPermissionsState() {}

    private ActionsOrganizationPermissionsState(ActionsOrganizationPermissionsState $) {
        this.allowedActions = $.allowedActions;
        this.allowedActionsConfig = $.allowedActionsConfig;
        this.enabledRepositories = $.enabledRepositories;
        this.enabledRepositoriesConfig = $.enabledRepositoriesConfig;
    }

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

    public static final class Builder {
        private ActionsOrganizationPermissionsState $;

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

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

        /**
         * @param allowedActions The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`.
         * 
         * @return builder
         * 
         */
        public Builder allowedActions(@Nullable Output allowedActions) {
            $.allowedActions = allowedActions;
            return this;
        }

        /**
         * @param allowedActions The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`.
         * 
         * @return builder
         * 
         */
        public Builder allowedActions(String allowedActions) {
            return allowedActions(Output.of(allowedActions));
        }

        /**
         * @param allowedActionsConfig Sets the actions that are allowed in an organization. Only available when `allowed_actions` = `selected`. See Allowed Actions Config below for details.
         * 
         * @return builder
         * 
         */
        public Builder allowedActionsConfig(@Nullable Output allowedActionsConfig) {
            $.allowedActionsConfig = allowedActionsConfig;
            return this;
        }

        /**
         * @param allowedActionsConfig Sets the actions that are allowed in an organization. Only available when `allowed_actions` = `selected`. See Allowed Actions Config below for details.
         * 
         * @return builder
         * 
         */
        public Builder allowedActionsConfig(ActionsOrganizationPermissionsAllowedActionsConfigArgs allowedActionsConfig) {
            return allowedActionsConfig(Output.of(allowedActionsConfig));
        }

        /**
         * @param enabledRepositories The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
         * 
         * @return builder
         * 
         */
        public Builder enabledRepositories(@Nullable Output enabledRepositories) {
            $.enabledRepositories = enabledRepositories;
            return this;
        }

        /**
         * @param enabledRepositories The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
         * 
         * @return builder
         * 
         */
        public Builder enabledRepositories(String enabledRepositories) {
            return enabledRepositories(Output.of(enabledRepositories));
        }

        /**
         * @param enabledRepositoriesConfig Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabled_repositories` = `selected`. See Enabled Repositories Config below for details.
         * 
         * @return builder
         * 
         */
        public Builder enabledRepositoriesConfig(@Nullable Output enabledRepositoriesConfig) {
            $.enabledRepositoriesConfig = enabledRepositoriesConfig;
            return this;
        }

        /**
         * @param enabledRepositoriesConfig Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabled_repositories` = `selected`. See Enabled Repositories Config below for details.
         * 
         * @return builder
         * 
         */
        public Builder enabledRepositoriesConfig(ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs enabledRepositoriesConfig) {
            return enabledRepositoriesConfig(Output.of(enabledRepositoriesConfig));
        }

        public ActionsOrganizationPermissionsState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy