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

com.pulumi.github.inputs.ActionsRepositoryPermissionsAllowedActionsConfigArgs 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.inputs;

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


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

    public static final ActionsRepositoryPermissionsAllowedActionsConfigArgs Empty = new ActionsRepositoryPermissionsAllowedActionsConfigArgs();

    /**
     * Whether GitHub-owned actions are allowed in the repository.
     * 
     */
    @Import(name="githubOwnedAllowed", required=true)
    private Output githubOwnedAllowed;

    /**
     * @return Whether GitHub-owned actions are allowed in the repository.
     * 
     */
    public Output githubOwnedAllowed() {
        return this.githubOwnedAllowed;
    }

    /**
     * Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat{@literal @}*, monalisa/octocat{@literal @}v2, monalisa/*."
     * 
     */
    @Import(name="patternsAlloweds")
    private @Nullable Output> patternsAlloweds;

    /**
     * @return Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat{@literal @}*, monalisa/octocat{@literal @}v2, monalisa/*."
     * 
     */
    public Optional>> patternsAlloweds() {
        return Optional.ofNullable(this.patternsAlloweds);
    }

    /**
     * Whether actions in GitHub Marketplace from verified creators are allowed. Set to true to allow all GitHub Marketplace actions by verified creators.
     * 
     */
    @Import(name="verifiedAllowed")
    private @Nullable Output verifiedAllowed;

    /**
     * @return Whether actions in GitHub Marketplace from verified creators are allowed. Set to true to allow all GitHub Marketplace actions by verified creators.
     * 
     */
    public Optional> verifiedAllowed() {
        return Optional.ofNullable(this.verifiedAllowed);
    }

    private ActionsRepositoryPermissionsAllowedActionsConfigArgs() {}

    private ActionsRepositoryPermissionsAllowedActionsConfigArgs(ActionsRepositoryPermissionsAllowedActionsConfigArgs $) {
        this.githubOwnedAllowed = $.githubOwnedAllowed;
        this.patternsAlloweds = $.patternsAlloweds;
        this.verifiedAllowed = $.verifiedAllowed;
    }

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

    public static final class Builder {
        private ActionsRepositoryPermissionsAllowedActionsConfigArgs $;

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

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

        /**
         * @param githubOwnedAllowed Whether GitHub-owned actions are allowed in the repository.
         * 
         * @return builder
         * 
         */
        public Builder githubOwnedAllowed(Output githubOwnedAllowed) {
            $.githubOwnedAllowed = githubOwnedAllowed;
            return this;
        }

        /**
         * @param githubOwnedAllowed Whether GitHub-owned actions are allowed in the repository.
         * 
         * @return builder
         * 
         */
        public Builder githubOwnedAllowed(Boolean githubOwnedAllowed) {
            return githubOwnedAllowed(Output.of(githubOwnedAllowed));
        }

        /**
         * @param patternsAlloweds Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat{@literal @}*, monalisa/octocat{@literal @}v2, monalisa/*."
         * 
         * @return builder
         * 
         */
        public Builder patternsAlloweds(@Nullable Output> patternsAlloweds) {
            $.patternsAlloweds = patternsAlloweds;
            return this;
        }

        /**
         * @param patternsAlloweds Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat{@literal @}*, monalisa/octocat{@literal @}v2, monalisa/*."
         * 
         * @return builder
         * 
         */
        public Builder patternsAlloweds(List patternsAlloweds) {
            return patternsAlloweds(Output.of(patternsAlloweds));
        }

        /**
         * @param patternsAlloweds Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat{@literal @}*, monalisa/octocat{@literal @}v2, monalisa/*."
         * 
         * @return builder
         * 
         */
        public Builder patternsAlloweds(String... patternsAlloweds) {
            return patternsAlloweds(List.of(patternsAlloweds));
        }

        /**
         * @param verifiedAllowed Whether actions in GitHub Marketplace from verified creators are allowed. Set to true to allow all GitHub Marketplace actions by verified creators.
         * 
         * @return builder
         * 
         */
        public Builder verifiedAllowed(@Nullable Output verifiedAllowed) {
            $.verifiedAllowed = verifiedAllowed;
            return this;
        }

        /**
         * @param verifiedAllowed Whether actions in GitHub Marketplace from verified creators are allowed. Set to true to allow all GitHub Marketplace actions by verified creators.
         * 
         * @return builder
         * 
         */
        public Builder verifiedAllowed(Boolean verifiedAllowed) {
            return verifiedAllowed(Output.of(verifiedAllowed));
        }

        public ActionsRepositoryPermissionsAllowedActionsConfigArgs build() {
            if ($.githubOwnedAllowed == null) {
                throw new MissingRequiredPropertyException("ActionsRepositoryPermissionsAllowedActionsConfigArgs", "githubOwnedAllowed");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy