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

com.pulumi.github.outputs.ActionsOrganizationPermissionsAllowedActionsConfig 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.outputs;

import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class ActionsOrganizationPermissionsAllowedActionsConfig {
    /**
     * @return Whether GitHub-owned actions are allowed in the organization.
     * 
     */
    private Boolean githubOwnedAllowed;
    /**
     * @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/*."
     * 
     */
    private @Nullable List patternsAlloweds;
    /**
     * @return Whether actions in GitHub Marketplace from verified creators are allowed. Set to true to allow all GitHub Marketplace actions by verified creators.
     * 
     */
    private @Nullable Boolean verifiedAllowed;

    private ActionsOrganizationPermissionsAllowedActionsConfig() {}
    /**
     * @return Whether GitHub-owned actions are allowed in the organization.
     * 
     */
    public Boolean githubOwnedAllowed() {
        return this.githubOwnedAllowed;
    }
    /**
     * @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 List patternsAlloweds() {
        return this.patternsAlloweds == null ? List.of() : this.patternsAlloweds;
    }
    /**
     * @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);
    }

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

    public static Builder builder(ActionsOrganizationPermissionsAllowedActionsConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean githubOwnedAllowed;
        private @Nullable List patternsAlloweds;
        private @Nullable Boolean verifiedAllowed;
        public Builder() {}
        public Builder(ActionsOrganizationPermissionsAllowedActionsConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.githubOwnedAllowed = defaults.githubOwnedAllowed;
    	      this.patternsAlloweds = defaults.patternsAlloweds;
    	      this.verifiedAllowed = defaults.verifiedAllowed;
        }

        @CustomType.Setter
        public Builder githubOwnedAllowed(Boolean githubOwnedAllowed) {
            if (githubOwnedAllowed == null) {
              throw new MissingRequiredPropertyException("ActionsOrganizationPermissionsAllowedActionsConfig", "githubOwnedAllowed");
            }
            this.githubOwnedAllowed = githubOwnedAllowed;
            return this;
        }
        @CustomType.Setter
        public Builder patternsAlloweds(@Nullable List patternsAlloweds) {

            this.patternsAlloweds = patternsAlloweds;
            return this;
        }
        public Builder patternsAlloweds(String... patternsAlloweds) {
            return patternsAlloweds(List.of(patternsAlloweds));
        }
        @CustomType.Setter
        public Builder verifiedAllowed(@Nullable Boolean verifiedAllowed) {

            this.verifiedAllowed = verifiedAllowed;
            return this;
        }
        public ActionsOrganizationPermissionsAllowedActionsConfig build() {
            final var _resultValue = new ActionsOrganizationPermissionsAllowedActionsConfig();
            _resultValue.githubOwnedAllowed = githubOwnedAllowed;
            _resultValue.patternsAlloweds = patternsAlloweds;
            _resultValue.verifiedAllowed = verifiedAllowed;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy