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

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


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

    public static final ResourcePolicyAssignmentOverrideArgs Empty = new ResourcePolicyAssignmentOverrideArgs();

    /**
     * One or more `override_selector` as defined below.
     * 
     */
    @Import(name="selectors")
    private @Nullable Output<List<ResourcePolicyAssignmentOverrideSelectorArgs>> selectors;

    /**
     * @return One or more `override_selector` as defined below.
     * 
     */
    public Optional<Output<List<ResourcePolicyAssignmentOverrideSelectorArgs>>> selectors() {
        return Optional.ofNullable(this.selectors);
    }

    /**
     * Specifies the value to override the policy property. Possible values for `policyEffect` override listed [policy effects](https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effects).
     * 
     */
    @Import(name="value", required=true)
    private Output<String> value;

    /**
     * @return Specifies the value to override the policy property. Possible values for `policyEffect` override listed [policy effects](https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effects).
     * 
     */
    public Output<String> value() {
        return this.value;
    }

    private ResourcePolicyAssignmentOverrideArgs() {}

    private ResourcePolicyAssignmentOverrideArgs(ResourcePolicyAssignmentOverrideArgs $) {
        this.selectors = $.selectors;
        this.value = $.value;
    }

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

    public static final class Builder {
        private ResourcePolicyAssignmentOverrideArgs $;

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

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

        /**
         * @param selectors One or more `override_selector` as defined below.
         * 
         * @return builder
         * 
         */
        public Builder selectors(@Nullable Output<List<ResourcePolicyAssignmentOverrideSelectorArgs>> selectors) {
            $.selectors = selectors;
            return this;
        }

        /**
         * @param selectors One or more `override_selector` as defined below.
         * 
         * @return builder
         * 
         */
        public Builder selectors(List<ResourcePolicyAssignmentOverrideSelectorArgs> selectors) {
            return selectors(Output.of(selectors));
        }

        /**
         * @param selectors One or more `override_selector` as defined below.
         * 
         * @return builder
         * 
         */
        public Builder selectors(ResourcePolicyAssignmentOverrideSelectorArgs... selectors) {
            return selectors(List.of(selectors));
        }

        /**
         * @param value Specifies the value to override the policy property. Possible values for `policyEffect` override listed [policy effects](https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effects).
         * 
         * @return builder
         * 
         */
        public Builder value(Output<String> value) {
            $.value = value;
            return this;
        }

        /**
         * @param value Specifies the value to override the policy property. Possible values for `policyEffect` override listed [policy effects](https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effects).
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

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

}
