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

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

There is a newer version: 6.3.0
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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.github.inputs.EnterpriseActionsPermissionsAllowedActionsConfigArgs;
import com.pulumi.github.inputs.EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final EnterpriseActionsPermissionsState Empty = new EnterpriseActionsPermissionsState();

    /**
     * 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 enterprise. 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 enterprise. 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 organizations in the enterprise that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
     * 
     */
    @Import(name="enabledOrganizations")
    private @Nullable Output enabledOrganizations;

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

    /**
     * Sets the list of selected organizations that are enabled for GitHub Actions in an enterprise. Only available when `enabled_organizations` = `selected`. See Enabled Organizations Config below for details.
     * 
     */
    @Import(name="enabledOrganizationsConfig")
    private @Nullable Output enabledOrganizationsConfig;

    /**
     * @return Sets the list of selected organizations that are enabled for GitHub Actions in an enterprise. Only available when `enabled_organizations` = `selected`. See Enabled Organizations Config below for details.
     * 
     */
    public Optional> enabledOrganizationsConfig() {
        return Optional.ofNullable(this.enabledOrganizationsConfig);
    }

    /**
     * The slug of the enterprise.
     * 
     */
    @Import(name="enterpriseSlug")
    private @Nullable Output enterpriseSlug;

    /**
     * @return The slug of the enterprise.
     * 
     */
    public Optional> enterpriseSlug() {
        return Optional.ofNullable(this.enterpriseSlug);
    }

    private EnterpriseActionsPermissionsState() {}

    private EnterpriseActionsPermissionsState(EnterpriseActionsPermissionsState $) {
        this.allowedActions = $.allowedActions;
        this.allowedActionsConfig = $.allowedActionsConfig;
        this.enabledOrganizations = $.enabledOrganizations;
        this.enabledOrganizationsConfig = $.enabledOrganizationsConfig;
        this.enterpriseSlug = $.enterpriseSlug;
    }

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

    public static final class Builder {
        private EnterpriseActionsPermissionsState $;

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

        public Builder(EnterpriseActionsPermissionsState defaults) {
            $ = new EnterpriseActionsPermissionsState(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 enterprise. 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 enterprise. Only available when `allowed_actions` = `selected`. See Allowed Actions Config below for details.
         * 
         * @return builder
         * 
         */
        public Builder allowedActionsConfig(EnterpriseActionsPermissionsAllowedActionsConfigArgs allowedActionsConfig) {
            return allowedActionsConfig(Output.of(allowedActionsConfig));
        }

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

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

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

        /**
         * @param enabledOrganizationsConfig Sets the list of selected organizations that are enabled for GitHub Actions in an enterprise. Only available when `enabled_organizations` = `selected`. See Enabled Organizations Config below for details.
         * 
         * @return builder
         * 
         */
        public Builder enabledOrganizationsConfig(EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs enabledOrganizationsConfig) {
            return enabledOrganizationsConfig(Output.of(enabledOrganizationsConfig));
        }

        /**
         * @param enterpriseSlug The slug of the enterprise.
         * 
         * @return builder
         * 
         */
        public Builder enterpriseSlug(@Nullable Output enterpriseSlug) {
            $.enterpriseSlug = enterpriseSlug;
            return this;
        }

        /**
         * @param enterpriseSlug The slug of the enterprise.
         * 
         * @return builder
         * 
         */
        public Builder enterpriseSlug(String enterpriseSlug) {
            return enterpriseSlug(Output.of(enterpriseSlug));
        }

        public EnterpriseActionsPermissionsState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy