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

com.pulumi.azurenative.portal.inputs.ConsoleCreatePropertiesArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.portal.enums.OsType;
import com.pulumi.azurenative.portal.enums.ProvisioningState;
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;


/**
 * Cloud shell properties for creating a console.
 * 
 */
public final class ConsoleCreatePropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConsoleCreatePropertiesArgs Empty = new ConsoleCreatePropertiesArgs();

    /**
     * The operating system type of the cloud shell.
     * 
     */
    @Import(name="osType", required=true)
    private Output> osType;

    /**
     * @return The operating system type of the cloud shell.
     * 
     */
    public Output> osType() {
        return this.osType;
    }

    /**
     * Provisioning state of the console.
     * 
     */
    @Import(name="provisioningState")
    private @Nullable Output> provisioningState;

    /**
     * @return Provisioning state of the console.
     * 
     */
    public Optional>> provisioningState() {
        return Optional.ofNullable(this.provisioningState);
    }

    /**
     * Uri of the console.
     * 
     */
    @Import(name="uri")
    private @Nullable Output uri;

    /**
     * @return Uri of the console.
     * 
     */
    public Optional> uri() {
        return Optional.ofNullable(this.uri);
    }

    private ConsoleCreatePropertiesArgs() {}

    private ConsoleCreatePropertiesArgs(ConsoleCreatePropertiesArgs $) {
        this.osType = $.osType;
        this.provisioningState = $.provisioningState;
        this.uri = $.uri;
    }

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

    public static final class Builder {
        private ConsoleCreatePropertiesArgs $;

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

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

        /**
         * @param osType The operating system type of the cloud shell.
         * 
         * @return builder
         * 
         */
        public Builder osType(Output> osType) {
            $.osType = osType;
            return this;
        }

        /**
         * @param osType The operating system type of the cloud shell.
         * 
         * @return builder
         * 
         */
        public Builder osType(Either osType) {
            return osType(Output.of(osType));
        }

        /**
         * @param osType The operating system type of the cloud shell.
         * 
         * @return builder
         * 
         */
        public Builder osType(String osType) {
            return osType(Either.ofLeft(osType));
        }

        /**
         * @param osType The operating system type of the cloud shell.
         * 
         * @return builder
         * 
         */
        public Builder osType(OsType osType) {
            return osType(Either.ofRight(osType));
        }

        /**
         * @param provisioningState Provisioning state of the console.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(@Nullable Output> provisioningState) {
            $.provisioningState = provisioningState;
            return this;
        }

        /**
         * @param provisioningState Provisioning state of the console.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(Either provisioningState) {
            return provisioningState(Output.of(provisioningState));
        }

        /**
         * @param provisioningState Provisioning state of the console.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(String provisioningState) {
            return provisioningState(Either.ofLeft(provisioningState));
        }

        /**
         * @param provisioningState Provisioning state of the console.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(ProvisioningState provisioningState) {
            return provisioningState(Either.ofRight(provisioningState));
        }

        /**
         * @param uri Uri of the console.
         * 
         * @return builder
         * 
         */
        public Builder uri(@Nullable Output uri) {
            $.uri = uri;
            return this;
        }

        /**
         * @param uri Uri of the console.
         * 
         * @return builder
         * 
         */
        public Builder uri(String uri) {
            return uri(Output.of(uri));
        }

        public ConsoleCreatePropertiesArgs build() {
            if ($.osType == null) {
                throw new MissingRequiredPropertyException("ConsoleCreatePropertiesArgs", "osType");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy