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

com.pulumi.azurenative.compute.inputs.GetVirtualMachineRunCommandByVirtualMachinePlainArgs 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.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 GetVirtualMachineRunCommandByVirtualMachinePlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetVirtualMachineRunCommandByVirtualMachinePlainArgs Empty = new GetVirtualMachineRunCommandByVirtualMachinePlainArgs();

    /**
     * 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 run command.
     * 
     */
    @Import(name="runCommandName", required=true)
    private String runCommandName;

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

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

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

    private GetVirtualMachineRunCommandByVirtualMachinePlainArgs() {}

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

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

    public static final class Builder {
        private GetVirtualMachineRunCommandByVirtualMachinePlainArgs $;

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

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy