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

com.pulumi.azurenative.authorization.inputs.OverrideArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.azurenative.authorization.inputs;

import com.pulumi.azurenative.authorization.enums.OverrideKind;
import com.pulumi.azurenative.authorization.inputs.SelectorArgs;
import com.pulumi.core.Either;
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;


/**
 * The policy property value override.
 * 
 */
public final class OverrideArgs extends com.pulumi.resources.ResourceArgs {

    public static final OverrideArgs Empty = new OverrideArgs();

    /**
     * The override kind.
     * 
     */
    @Import(name="kind")
    private @Nullable Output> kind;

    /**
     * @return The override kind.
     * 
     */
    public Optional>> kind() {
        return Optional.ofNullable(this.kind);
    }

    /**
     * The list of the selector expressions.
     * 
     */
    @Import(name="selectors")
    private @Nullable Output> selectors;

    /**
     * @return The list of the selector expressions.
     * 
     */
    public Optional>> selectors() {
        return Optional.ofNullable(this.selectors);
    }

    /**
     * The value to override the policy property.
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return The value to override the policy property.
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    private OverrideArgs() {}

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

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

    public static final class Builder {
        private OverrideArgs $;

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

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

        /**
         * @param kind The override kind.
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output> kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind The override kind.
         * 
         * @return builder
         * 
         */
        public Builder kind(Either kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param kind The override kind.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Either.ofLeft(kind));
        }

        /**
         * @param kind The override kind.
         * 
         * @return builder
         * 
         */
        public Builder kind(OverrideKind kind) {
            return kind(Either.ofRight(kind));
        }

        /**
         * @param selectors The list of the selector expressions.
         * 
         * @return builder
         * 
         */
        public Builder selectors(@Nullable Output> selectors) {
            $.selectors = selectors;
            return this;
        }

        /**
         * @param selectors The list of the selector expressions.
         * 
         * @return builder
         * 
         */
        public Builder selectors(List selectors) {
            return selectors(Output.of(selectors));
        }

        /**
         * @param selectors The list of the selector expressions.
         * 
         * @return builder
         * 
         */
        public Builder selectors(SelectorArgs... selectors) {
            return selectors(List.of(selectors));
        }

        /**
         * @param value The value to override the policy property.
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output value) {
            $.value = value;
            return this;
        }

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

        public OverrideArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy