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

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

There is a newer version: 2.72.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.compute.inputs;

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

    public static final GetVirtualMachineRunCommandByVirtualMachineArgs Empty = new GetVirtualMachineRunCommandByVirtualMachineArgs();

    /**
     * The expand expression to apply on the operation.
     * 
     */
    @Import(name="expand")
    private @Nullable Output 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 Output resourceGroupName;

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

    /**
     * The name of the virtual machine run command.
     * 
     */
    @Import(name="runCommandName", required=true)
    private Output runCommandName;

    /**
     * @return The name of the virtual machine run command.
     * 
     */
    public Output runCommandName() {
        return this.runCommandName;
    }

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

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

    private GetVirtualMachineRunCommandByVirtualMachineArgs() {}

    private GetVirtualMachineRunCommandByVirtualMachineArgs(GetVirtualMachineRunCommandByVirtualMachineArgs $) {
        this.expand = $.expand;
        this.resourceGroupName = $.resourceGroupName;
        this.runCommandName = $.runCommandName;
        this.vmName = $.vmName;
    }

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

    public static final class Builder {
        private GetVirtualMachineRunCommandByVirtualMachineArgs $;

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

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

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

        /**
         * @param expand The expand expression to apply on the operation.
         * 
         * @return builder
         * 
         */
        public Builder expand(String expand) {
            return expand(Output.of(expand));
        }

        /**
         * @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 runCommandName The name of the virtual machine run command.
         * 
         * @return builder
         * 
         */
        public Builder runCommandName(Output runCommandName) {
            $.runCommandName = runCommandName;
            return this;
        }

        /**
         * @param runCommandName The name of the virtual machine run command.
         * 
         * @return builder
         * 
         */
        public Builder runCommandName(String runCommandName) {
            return runCommandName(Output.of(runCommandName));
        }

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

        /**
         * @param vmName The name of the virtual machine containing the run command.
         * 
         * @return builder
         * 
         */
        public Builder vmName(String vmName) {
            return vmName(Output.of(vmName));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy