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

com.pulumi.azurenative.compute.inputs.GetVirtualMachineExtensionPlainArgs Maven / Gradle / Ivy

// *** 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.compute.inputs;

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

    public static final GetVirtualMachineExtensionPlainArgs Empty = new GetVirtualMachineExtensionPlainArgs();

    /**
     * The expand expression to apply on the operation.
     * 
     */
    @Import(name="expand")
    private @Nullable String expand;

    /**
     * @return The expand expression to apply on the operation.
     * 
     */
    public Optional expand() {
        return Optional.ofNullable(this.expand);
    }

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

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

    /**
     * The name of the virtual machine extension.
     * 
     */
    @Import(name="vmExtensionName", required=true)
    private String vmExtensionName;

    /**
     * @return The name of the virtual machine extension.
     * 
     */
    public String vmExtensionName() {
        return this.vmExtensionName;
    }

    /**
     * The name of the virtual machine containing the extension.
     * 
     */
    @Import(name="vmName", required=true)
    private String vmName;

    /**
     * @return The name of the virtual machine containing the extension.
     * 
     */
    public String vmName() {
        return this.vmName;
    }

    private GetVirtualMachineExtensionPlainArgs() {}

    private GetVirtualMachineExtensionPlainArgs(GetVirtualMachineExtensionPlainArgs $) {
        this.expand = $.expand;
        this.resourceGroupName = $.resourceGroupName;
        this.vmExtensionName = $.vmExtensionName;
        this.vmName = $.vmName;
    }

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

    public static final class Builder {
        private GetVirtualMachineExtensionPlainArgs $;

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

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

        /**
         * @param expand The expand expression to apply on the operation.
         * 
         * @return builder
         * 
         */
        public Builder expand(@Nullable String expand) {
            $.expand = expand;
            return this;
        }

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

        /**
         * @param vmExtensionName The name of the virtual machine extension.
         * 
         * @return builder
         * 
         */
        public Builder vmExtensionName(String vmExtensionName) {
            $.vmExtensionName = vmExtensionName;
            return this;
        }

        /**
         * @param vmName The name of the virtual machine containing the extension.
         * 
         * @return builder
         * 
         */
        public Builder vmName(String vmName) {
            $.vmName = vmName;
            return this;
        }

        public GetVirtualMachineExtensionPlainArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("GetVirtualMachineExtensionPlainArgs", "resourceGroupName");
            }
            if ($.vmExtensionName == null) {
                throw new MissingRequiredPropertyException("GetVirtualMachineExtensionPlainArgs", "vmExtensionName");
            }
            if ($.vmName == null) {
                throw new MissingRequiredPropertyException("GetVirtualMachineExtensionPlainArgs", "vmName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy