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

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


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

    public static final AccessBoundaryPolicyState Empty = new AccessBoundaryPolicyState();

    /**
     * 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 hash of the resource. Used internally during updates.
     * 
     */
    @Import(name="etag")
    private @Nullable Output<String> etag;

    /**
     * @return The hash of the resource. Used internally during updates.
     * 
     */
    public Optional<Output<String>> etag() {
        return Optional.ofNullable(this.etag);
    }

    /**
     * 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")
    private @Nullable Output<String> parent;

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

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

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

    private AccessBoundaryPolicyState() {}

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

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

    public static final class Builder {
        private AccessBoundaryPolicyState $;

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

        public Builder(AccessBoundaryPolicyState defaults) {
            $ = new AccessBoundaryPolicyState(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 etag The hash of the resource. Used internally during updates.
         * 
         * @return builder
         * 
         */
        public Builder etag(@Nullable Output<String> etag) {
            $.etag = etag;
            return this;
        }

        /**
         * @param etag The hash of the resource. Used internally during updates.
         * 
         * @return builder
         * 
         */
        public Builder etag(String etag) {
            return etag(Output.of(etag));
        }

        /**
         * @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(@Nullable 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(@Nullable Output<List<AccessBoundaryPolicyRuleArgs>> rules) {
            $.rules = rules;
            return this;
        }

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

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

        public AccessBoundaryPolicyState build() {
            return $;
        }
    }

}
