// *** 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.gcp.iam;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.iam.inputs.DenyPolicyRuleArgs;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DenyPolicyArgs Empty = new DenyPolicyArgs();

    /**
     * The display name of the rule.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output<String> displayName;

    /**
     * @return The display name of the rule.
     * 
     */
    public Optional<Output<String>> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * The name of the policy.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return The name of the policy.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The attachment point is identified by its URL-encoded full resource name.
     * 
     */
    @Import(name="parent", required=true)
    private Output<String> parent;

    /**
     * @return The attachment point is identified by its URL-encoded full resource name.
     * 
     */
    public Output<String> parent() {
        return this.parent;
    }

    /**
     * Rules to be applied.
     * Structure is documented below.
     * 
     */
    @Import(name="rules", required=true)
    private Output<List<DenyPolicyRuleArgs>> rules;

    /**
     * @return Rules to be applied.
     * Structure is documented below.
     * 
     */
    public Output<List<DenyPolicyRuleArgs>> rules() {
        return this.rules;
    }

    private DenyPolicyArgs() {}

    private DenyPolicyArgs(DenyPolicyArgs $) {
        this.displayName = $.displayName;
        this.name = $.name;
        this.parent = $.parent;
        this.rules = $.rules;
    }

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

    public static final class Builder {
        private DenyPolicyArgs $;

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

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

        /**
         * @param displayName The display name of the rule.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output<String> displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName The display name of the rule.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param name The name of the policy.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the policy.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param parent The attachment point is identified by its URL-encoded full resource name.
         * 
         * @return builder
         * 
         */
        public Builder parent(Output<String> parent) {
            $.parent = parent;
            return this;
        }

        /**
         * @param parent The attachment point is identified by its URL-encoded full resource name.
         * 
         * @return builder
         * 
         */
        public Builder parent(String parent) {
            return parent(Output.of(parent));
        }

        /**
         * @param rules Rules to be applied.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder rules(Output<List<DenyPolicyRuleArgs>> rules) {
            $.rules = rules;
            return this;
        }

        /**
         * @param rules Rules to be applied.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder rules(List<DenyPolicyRuleArgs> rules) {
            return rules(Output.of(rules));
        }

        /**
         * @param rules Rules to be applied.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder rules(DenyPolicyRuleArgs... rules) {
            return rules(List.of(rules));
        }

        public DenyPolicyArgs build() {
            $.parent = Objects.requireNonNull($.parent, "expected parameter 'parent' to be non-null");
            $.rules = Objects.requireNonNull($.rules, "expected parameter 'rules' to be non-null");
            return $;
        }
    }

}
