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

com.pulumi.alicloud.eds.CommandArgs Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.eds;

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 CommandArgs extends com.pulumi.resources.ResourceArgs {

    public static final CommandArgs Empty = new CommandArgs();

    /**
     * The Contents of the Script to Base64 Encoded Transmission.
     * 
     */
    @Import(name="commandContent", required=true)
    private Output commandContent;

    /**
     * @return The Contents of the Script to Base64 Encoded Transmission.
     * 
     */
    public Output commandContent() {
        return this.commandContent;
    }

    /**
     * The Script Type. Valid values: `RunBatScript`, `RunPowerShellScript`.
     * 
     */
    @Import(name="commandType", required=true)
    private Output commandType;

    /**
     * @return The Script Type. Valid values: `RunBatScript`, `RunPowerShellScript`.
     * 
     */
    public Output commandType() {
        return this.commandType;
    }

    /**
     * That Returns the Data Encoding Method. Valid values: `Base64`, `PlainText`.
     * 
     */
    @Import(name="contentEncoding")
    private @Nullable Output contentEncoding;

    /**
     * @return That Returns the Data Encoding Method. Valid values: `Base64`, `PlainText`.
     * 
     */
    public Optional> contentEncoding() {
        return Optional.ofNullable(this.contentEncoding);
    }

    /**
     * The desktop id of the Desktop.
     * 
     */
    @Import(name="desktopId", required=true)
    private Output desktopId;

    /**
     * @return The desktop id of the Desktop.
     * 
     */
    public Output desktopId() {
        return this.desktopId;
    }

    /**
     * The timeout period for script execution the unit is seconds. Default to: `60`.
     * 
     */
    @Import(name="timeout")
    private @Nullable Output timeout;

    /**
     * @return The timeout period for script execution the unit is seconds. Default to: `60`.
     * 
     */
    public Optional> timeout() {
        return Optional.ofNullable(this.timeout);
    }

    private CommandArgs() {}

    private CommandArgs(CommandArgs $) {
        this.commandContent = $.commandContent;
        this.commandType = $.commandType;
        this.contentEncoding = $.contentEncoding;
        this.desktopId = $.desktopId;
        this.timeout = $.timeout;
    }

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

    public static final class Builder {
        private CommandArgs $;

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

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

        /**
         * @param commandContent The Contents of the Script to Base64 Encoded Transmission.
         * 
         * @return builder
         * 
         */
        public Builder commandContent(Output commandContent) {
            $.commandContent = commandContent;
            return this;
        }

        /**
         * @param commandContent The Contents of the Script to Base64 Encoded Transmission.
         * 
         * @return builder
         * 
         */
        public Builder commandContent(String commandContent) {
            return commandContent(Output.of(commandContent));
        }

        /**
         * @param commandType The Script Type. Valid values: `RunBatScript`, `RunPowerShellScript`.
         * 
         * @return builder
         * 
         */
        public Builder commandType(Output commandType) {
            $.commandType = commandType;
            return this;
        }

        /**
         * @param commandType The Script Type. Valid values: `RunBatScript`, `RunPowerShellScript`.
         * 
         * @return builder
         * 
         */
        public Builder commandType(String commandType) {
            return commandType(Output.of(commandType));
        }

        /**
         * @param contentEncoding That Returns the Data Encoding Method. Valid values: `Base64`, `PlainText`.
         * 
         * @return builder
         * 
         */
        public Builder contentEncoding(@Nullable Output contentEncoding) {
            $.contentEncoding = contentEncoding;
            return this;
        }

        /**
         * @param contentEncoding That Returns the Data Encoding Method. Valid values: `Base64`, `PlainText`.
         * 
         * @return builder
         * 
         */
        public Builder contentEncoding(String contentEncoding) {
            return contentEncoding(Output.of(contentEncoding));
        }

        /**
         * @param desktopId The desktop id of the Desktop.
         * 
         * @return builder
         * 
         */
        public Builder desktopId(Output desktopId) {
            $.desktopId = desktopId;
            return this;
        }

        /**
         * @param desktopId The desktop id of the Desktop.
         * 
         * @return builder
         * 
         */
        public Builder desktopId(String desktopId) {
            return desktopId(Output.of(desktopId));
        }

        /**
         * @param timeout The timeout period for script execution the unit is seconds. Default to: `60`.
         * 
         * @return builder
         * 
         */
        public Builder timeout(@Nullable Output timeout) {
            $.timeout = timeout;
            return this;
        }

        /**
         * @param timeout The timeout period for script execution the unit is seconds. Default to: `60`.
         * 
         * @return builder
         * 
         */
        public Builder timeout(String timeout) {
            return timeout(Output.of(timeout));
        }

        public CommandArgs build() {
            if ($.commandContent == null) {
                throw new MissingRequiredPropertyException("CommandArgs", "commandContent");
            }
            if ($.commandType == null) {
                throw new MissingRequiredPropertyException("CommandArgs", "commandType");
            }
            if ($.desktopId == null) {
                throw new MissingRequiredPropertyException("CommandArgs", "desktopId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy