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

com.pulumi.azurenative.scvmm.InventoryItemArgs 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.scvmm;

import com.pulumi.azurenative.scvmm.enums.InventoryType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final InventoryItemArgs Empty = new InventoryItemArgs();

    /**
     * Name of the inventoryItem.
     * 
     */
    @Import(name="inventoryItemName")
    private @Nullable Output inventoryItemName;

    /**
     * @return Name of the inventoryItem.
     * 
     */
    public Optional> inventoryItemName() {
        return Optional.ofNullable(this.inventoryItemName);
    }

    /**
     * They inventory type.
     * 
     */
    @Import(name="inventoryType", required=true)
    private Output> inventoryType;

    /**
     * @return They inventory type.
     * 
     */
    public Output> inventoryType() {
        return this.inventoryType;
    }

    /**
     * Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type.  If supported, the resource provider must validate and persist this value.
     * 
     */
    @Import(name="kind")
    private @Nullable Output kind;

    /**
     * @return Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type.  If supported, the resource provider must validate and persist this value.
     * 
     */
    public Optional> kind() {
        return Optional.ofNullable(this.kind);
    }

    /**
     * The name of the resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Name of the VMMServer.
     * 
     */
    @Import(name="vmmServerName", required=true)
    private Output vmmServerName;

    /**
     * @return Name of the VMMServer.
     * 
     */
    public Output vmmServerName() {
        return this.vmmServerName;
    }

    private InventoryItemArgs() {}

    private InventoryItemArgs(InventoryItemArgs $) {
        this.inventoryItemName = $.inventoryItemName;
        this.inventoryType = $.inventoryType;
        this.kind = $.kind;
        this.resourceGroupName = $.resourceGroupName;
        this.vmmServerName = $.vmmServerName;
    }

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

    public static final class Builder {
        private InventoryItemArgs $;

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

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

        /**
         * @param inventoryItemName Name of the inventoryItem.
         * 
         * @return builder
         * 
         */
        public Builder inventoryItemName(@Nullable Output inventoryItemName) {
            $.inventoryItemName = inventoryItemName;
            return this;
        }

        /**
         * @param inventoryItemName Name of the inventoryItem.
         * 
         * @return builder
         * 
         */
        public Builder inventoryItemName(String inventoryItemName) {
            return inventoryItemName(Output.of(inventoryItemName));
        }

        /**
         * @param inventoryType They inventory type.
         * 
         * @return builder
         * 
         */
        public Builder inventoryType(Output> inventoryType) {
            $.inventoryType = inventoryType;
            return this;
        }

        /**
         * @param inventoryType They inventory type.
         * 
         * @return builder
         * 
         */
        public Builder inventoryType(Either inventoryType) {
            return inventoryType(Output.of(inventoryType));
        }

        /**
         * @param inventoryType They inventory type.
         * 
         * @return builder
         * 
         */
        public Builder inventoryType(String inventoryType) {
            return inventoryType(Either.ofLeft(inventoryType));
        }

        /**
         * @param inventoryType They inventory type.
         * 
         * @return builder
         * 
         */
        public Builder inventoryType(InventoryType inventoryType) {
            return inventoryType(Either.ofRight(inventoryType));
        }

        /**
         * @param kind Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type.  If supported, the resource provider must validate and persist this value.
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type.  If supported, the resource provider must validate and persist this value.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Output.of(kind));
        }

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

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

        /**
         * @param vmmServerName Name of the VMMServer.
         * 
         * @return builder
         * 
         */
        public Builder vmmServerName(Output vmmServerName) {
            $.vmmServerName = vmmServerName;
            return this;
        }

        /**
         * @param vmmServerName Name of the VMMServer.
         * 
         * @return builder
         * 
         */
        public Builder vmmServerName(String vmmServerName) {
            return vmmServerName(Output.of(vmmServerName));
        }

        public InventoryItemArgs build() {
            if ($.inventoryType == null) {
                throw new MissingRequiredPropertyException("InventoryItemArgs", "inventoryType");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("InventoryItemArgs", "resourceGroupName");
            }
            if ($.vmmServerName == null) {
                throw new MissingRequiredPropertyException("InventoryItemArgs", "vmmServerName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy