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

com.pulumi.azurenative.authorization.inputs.ResourceSelectorArgs 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.inputs.SelectorArgs;
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 resource selector to filter policies by resource properties.
 * 
 */
public final class ResourceSelectorArgs extends com.pulumi.resources.ResourceArgs {

    public static final ResourceSelectorArgs Empty = new ResourceSelectorArgs();

    /**
     * The name of the resource selector.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the resource selector.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * 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);
    }

    private ResourceSelectorArgs() {}

    private ResourceSelectorArgs(ResourceSelectorArgs $) {
        this.name = $.name;
        this.selectors = $.selectors;
    }

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

    public static final class Builder {
        private ResourceSelectorArgs $;

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

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

        /**
         * @param name The name of the resource selector.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

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

        /**
         * @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));
        }

        public ResourceSelectorArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy