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

com.pulumi.vsphere.inputs.GetDynamicArgs Maven / Gradle / Ivy

There is a newer version: 4.13.0-alpha.1731738919
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.vsphere.inputs;

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 GetDynamicArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetDynamicArgs Empty = new GetDynamicArgs();

    /**
     * A list of tag IDs that must be present on an object to
     * be a match.
     * 
     */
    @Import(name="filters", required=true)
    private Output> filters;

    /**
     * @return A list of tag IDs that must be present on an object to
     * be a match.
     * 
     */
    public Output> filters() {
        return this.filters;
    }

    /**
     * A regular expression that will be used to match
     * the object's name.
     * 
     */
    @Import(name="nameRegex")
    private @Nullable Output nameRegex;

    /**
     * @return A regular expression that will be used to match
     * the object's name.
     * 
     */
    public Optional> nameRegex() {
        return Optional.ofNullable(this.nameRegex);
    }

    /**
     * The managed object type the returned object must match.
     * The managed object types can be found in the managed object type section
     * [here](https://developer.vmware.com/apis/968/vsphere).
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return The managed object type the returned object must match.
     * The managed object types can be found in the managed object type section
     * [here](https://developer.vmware.com/apis/968/vsphere).
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private GetDynamicArgs() {}

    private GetDynamicArgs(GetDynamicArgs $) {
        this.filters = $.filters;
        this.nameRegex = $.nameRegex;
        this.type = $.type;
    }

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

    public static final class Builder {
        private GetDynamicArgs $;

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

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

        /**
         * @param filters A list of tag IDs that must be present on an object to
         * be a match.
         * 
         * @return builder
         * 
         */
        public Builder filters(Output> filters) {
            $.filters = filters;
            return this;
        }

        /**
         * @param filters A list of tag IDs that must be present on an object to
         * be a match.
         * 
         * @return builder
         * 
         */
        public Builder filters(List filters) {
            return filters(Output.of(filters));
        }

        /**
         * @param filters A list of tag IDs that must be present on an object to
         * be a match.
         * 
         * @return builder
         * 
         */
        public Builder filters(String... filters) {
            return filters(List.of(filters));
        }

        /**
         * @param nameRegex A regular expression that will be used to match
         * the object's name.
         * 
         * @return builder
         * 
         */
        public Builder nameRegex(@Nullable Output nameRegex) {
            $.nameRegex = nameRegex;
            return this;
        }

        /**
         * @param nameRegex A regular expression that will be used to match
         * the object's name.
         * 
         * @return builder
         * 
         */
        public Builder nameRegex(String nameRegex) {
            return nameRegex(Output.of(nameRegex));
        }

        /**
         * @param type The managed object type the returned object must match.
         * The managed object types can be found in the managed object type section
         * [here](https://developer.vmware.com/apis/968/vsphere).
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The managed object type the returned object must match.
         * The managed object types can be found in the managed object type section
         * [here](https://developer.vmware.com/apis/968/vsphere).
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy