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

com.pulumi.vsphere.inputs.GetVmfsDisksArgs 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 com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetVmfsDisksArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetVmfsDisksArgs Empty = new GetVmfsDisksArgs();

    /**
     * A regular expression to filter the disks against. Only
     * disks with canonical names that match will be included.
     * 
     * > **NOTE:** Using a `filter` is recommended if there is any chance the host
     * will have any specific storage devices added to it that may affect the order of
     * the output `disks` attribute below, which is lexicographically sorted.
     * 
     */
    @Import(name="filter")
    private @Nullable Output filter;

    /**
     * @return A regular expression to filter the disks against. Only
     * disks with canonical names that match will be included.
     * 
     * > **NOTE:** Using a `filter` is recommended if there is any chance the host
     * will have any specific storage devices added to it that may affect the order of
     * the output `disks` attribute below, which is lexicographically sorted.
     * 
     */
    public Optional> filter() {
        return Optional.ofNullable(this.filter);
    }

    /**
     * The managed object ID of
     * the host to look for disks on.
     * 
     */
    @Import(name="hostSystemId", required=true)
    private Output hostSystemId;

    /**
     * @return The managed object ID of
     * the host to look for disks on.
     * 
     */
    public Output hostSystemId() {
        return this.hostSystemId;
    }

    /**
     * Whether or not to rescan storage adapters before
     * searching for disks. This may lengthen the time it takes to perform the
     * search. Default: `false`.
     * 
     */
    @Import(name="rescan")
    private @Nullable Output rescan;

    /**
     * @return Whether or not to rescan storage adapters before
     * searching for disks. This may lengthen the time it takes to perform the
     * search. Default: `false`.
     * 
     */
    public Optional> rescan() {
        return Optional.ofNullable(this.rescan);
    }

    private GetVmfsDisksArgs() {}

    private GetVmfsDisksArgs(GetVmfsDisksArgs $) {
        this.filter = $.filter;
        this.hostSystemId = $.hostSystemId;
        this.rescan = $.rescan;
    }

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

    public static final class Builder {
        private GetVmfsDisksArgs $;

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

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

        /**
         * @param filter A regular expression to filter the disks against. Only
         * disks with canonical names that match will be included.
         * 
         * > **NOTE:** Using a `filter` is recommended if there is any chance the host
         * will have any specific storage devices added to it that may affect the order of
         * the output `disks` attribute below, which is lexicographically sorted.
         * 
         * @return builder
         * 
         */
        public Builder filter(@Nullable Output filter) {
            $.filter = filter;
            return this;
        }

        /**
         * @param filter A regular expression to filter the disks against. Only
         * disks with canonical names that match will be included.
         * 
         * > **NOTE:** Using a `filter` is recommended if there is any chance the host
         * will have any specific storage devices added to it that may affect the order of
         * the output `disks` attribute below, which is lexicographically sorted.
         * 
         * @return builder
         * 
         */
        public Builder filter(String filter) {
            return filter(Output.of(filter));
        }

        /**
         * @param hostSystemId The managed object ID of
         * the host to look for disks on.
         * 
         * @return builder
         * 
         */
        public Builder hostSystemId(Output hostSystemId) {
            $.hostSystemId = hostSystemId;
            return this;
        }

        /**
         * @param hostSystemId The managed object ID of
         * the host to look for disks on.
         * 
         * @return builder
         * 
         */
        public Builder hostSystemId(String hostSystemId) {
            return hostSystemId(Output.of(hostSystemId));
        }

        /**
         * @param rescan Whether or not to rescan storage adapters before
         * searching for disks. This may lengthen the time it takes to perform the
         * search. Default: `false`.
         * 
         * @return builder
         * 
         */
        public Builder rescan(@Nullable Output rescan) {
            $.rescan = rescan;
            return this;
        }

        /**
         * @param rescan Whether or not to rescan storage adapters before
         * searching for disks. This may lengthen the time it takes to perform the
         * search. Default: `false`.
         * 
         * @return builder
         * 
         */
        public Builder rescan(Boolean rescan) {
            return rescan(Output.of(rescan));
        }

        public GetVmfsDisksArgs build() {
            if ($.hostSystemId == null) {
                throw new MissingRequiredPropertyException("GetVmfsDisksArgs", "hostSystemId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy