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

com.pulumi.azurenative.networkcloud.ConsoleArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.networkcloud;

import com.pulumi.azurenative.networkcloud.enums.ConsoleEnabled;
import com.pulumi.azurenative.networkcloud.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.networkcloud.inputs.SshPublicKeyArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ConsoleArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConsoleArgs Empty = new ConsoleArgs();

    /**
     * The name of the virtual machine console.
     * 
     */
    @Import(name="consoleName")
    private @Nullable Output consoleName;

    /**
     * @return The name of the virtual machine console.
     * 
     */
    public Optional> consoleName() {
        return Optional.ofNullable(this.consoleName);
    }

    /**
     * The indicator of whether the console access is enabled.
     * 
     */
    @Import(name="enabled", required=true)
    private Output> enabled;

    /**
     * @return The indicator of whether the console access is enabled.
     * 
     */
    public Output> enabled() {
        return this.enabled;
    }

    /**
     * The date and time after which the key will be disallowed access.
     * 
     */
    @Import(name="expiration")
    private @Nullable Output expiration;

    /**
     * @return The date and time after which the key will be disallowed access.
     * 
     */
    public Optional> expiration() {
        return Optional.ofNullable(this.expiration);
    }

    /**
     * The extended location of the cluster manager associated with the cluster this virtual machine is created on.
     * 
     */
    @Import(name="extendedLocation", required=true)
    private Output extendedLocation;

    /**
     * @return The extended location of the cluster manager associated with the cluster this virtual machine is created on.
     * 
     */
    public Output extendedLocation() {
        return this.extendedLocation;
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

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

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

    /**
     * The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH private key for logging in.
     * 
     */
    @Import(name="sshPublicKey", required=true)
    private Output sshPublicKey;

    /**
     * @return The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH private key for logging in.
     * 
     */
    public Output sshPublicKey() {
        return this.sshPublicKey;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

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

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

    private ConsoleArgs() {}

    private ConsoleArgs(ConsoleArgs $) {
        this.consoleName = $.consoleName;
        this.enabled = $.enabled;
        this.expiration = $.expiration;
        this.extendedLocation = $.extendedLocation;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.sshPublicKey = $.sshPublicKey;
        this.tags = $.tags;
        this.virtualMachineName = $.virtualMachineName;
    }

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

    public static final class Builder {
        private ConsoleArgs $;

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

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

        /**
         * @param consoleName The name of the virtual machine console.
         * 
         * @return builder
         * 
         */
        public Builder consoleName(@Nullable Output consoleName) {
            $.consoleName = consoleName;
            return this;
        }

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

        /**
         * @param enabled The indicator of whether the console access is enabled.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Output> enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled The indicator of whether the console access is enabled.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Either enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param enabled The indicator of whether the console access is enabled.
         * 
         * @return builder
         * 
         */
        public Builder enabled(String enabled) {
            return enabled(Either.ofLeft(enabled));
        }

        /**
         * @param enabled The indicator of whether the console access is enabled.
         * 
         * @return builder
         * 
         */
        public Builder enabled(ConsoleEnabled enabled) {
            return enabled(Either.ofRight(enabled));
        }

        /**
         * @param expiration The date and time after which the key will be disallowed access.
         * 
         * @return builder
         * 
         */
        public Builder expiration(@Nullable Output expiration) {
            $.expiration = expiration;
            return this;
        }

        /**
         * @param expiration The date and time after which the key will be disallowed access.
         * 
         * @return builder
         * 
         */
        public Builder expiration(String expiration) {
            return expiration(Output.of(expiration));
        }

        /**
         * @param extendedLocation The extended location of the cluster manager associated with the cluster this virtual machine is created on.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(Output extendedLocation) {
            $.extendedLocation = extendedLocation;
            return this;
        }

        /**
         * @param extendedLocation The extended location of the cluster manager associated with the cluster this virtual machine is created on.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(ExtendedLocationArgs extendedLocation) {
            return extendedLocation(Output.of(extendedLocation));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

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

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param sshPublicKey The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH private key for logging in.
         * 
         * @return builder
         * 
         */
        public Builder sshPublicKey(Output sshPublicKey) {
            $.sshPublicKey = sshPublicKey;
            return this;
        }

        /**
         * @param sshPublicKey The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH private key for logging in.
         * 
         * @return builder
         * 
         */
        public Builder sshPublicKey(SshPublicKeyArgs sshPublicKey) {
            return sshPublicKey(Output.of(sshPublicKey));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

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

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

        public ConsoleArgs build() {
            if ($.enabled == null) {
                throw new MissingRequiredPropertyException("ConsoleArgs", "enabled");
            }
            if ($.extendedLocation == null) {
                throw new MissingRequiredPropertyException("ConsoleArgs", "extendedLocation");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ConsoleArgs", "resourceGroupName");
            }
            if ($.sshPublicKey == null) {
                throw new MissingRequiredPropertyException("ConsoleArgs", "sshPublicKey");
            }
            if ($.virtualMachineName == null) {
                throw new MissingRequiredPropertyException("ConsoleArgs", "virtualMachineName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy