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

com.pulumi.azure.machinelearning.inputs.ComputeClusterSshArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.machinelearning.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 ComputeClusterSshArgs extends com.pulumi.resources.ResourceArgs {

    public static final ComputeClusterSshArgs Empty = new ComputeClusterSshArgs();

    /**
     * Password of the administrator user account. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    @Import(name="adminPassword")
    private @Nullable Output adminPassword;

    /**
     * @return Password of the administrator user account. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    public Optional> adminPassword() {
        return Optional.ofNullable(this.adminPassword);
    }

    /**
     * Name of the administrator user account which can be used to SSH to nodes. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    @Import(name="adminUsername", required=true)
    private Output adminUsername;

    /**
     * @return Name of the administrator user account which can be used to SSH to nodes. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    public Output adminUsername() {
        return this.adminUsername;
    }

    /**
     * SSH public key of the administrator user account. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     * > **NOTE:** At least one of `admin_password` and `key_value` shoud be specified.
     * 
     */
    @Import(name="keyValue")
    private @Nullable Output keyValue;

    /**
     * @return SSH public key of the administrator user account. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     * > **NOTE:** At least one of `admin_password` and `key_value` shoud be specified.
     * 
     */
    public Optional> keyValue() {
        return Optional.ofNullable(this.keyValue);
    }

    private ComputeClusterSshArgs() {}

    private ComputeClusterSshArgs(ComputeClusterSshArgs $) {
        this.adminPassword = $.adminPassword;
        this.adminUsername = $.adminUsername;
        this.keyValue = $.keyValue;
    }

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

    public static final class Builder {
        private ComputeClusterSshArgs $;

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

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

        /**
         * @param adminPassword Password of the administrator user account. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder adminPassword(@Nullable Output adminPassword) {
            $.adminPassword = adminPassword;
            return this;
        }

        /**
         * @param adminPassword Password of the administrator user account. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder adminPassword(String adminPassword) {
            return adminPassword(Output.of(adminPassword));
        }

        /**
         * @param adminUsername Name of the administrator user account which can be used to SSH to nodes. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder adminUsername(Output adminUsername) {
            $.adminUsername = adminUsername;
            return this;
        }

        /**
         * @param adminUsername Name of the administrator user account which can be used to SSH to nodes. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder adminUsername(String adminUsername) {
            return adminUsername(Output.of(adminUsername));
        }

        /**
         * @param keyValue SSH public key of the administrator user account. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * > **NOTE:** At least one of `admin_password` and `key_value` shoud be specified.
         * 
         * @return builder
         * 
         */
        public Builder keyValue(@Nullable Output keyValue) {
            $.keyValue = keyValue;
            return this;
        }

        /**
         * @param keyValue SSH public key of the administrator user account. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * > **NOTE:** At least one of `admin_password` and `key_value` shoud be specified.
         * 
         * @return builder
         * 
         */
        public Builder keyValue(String keyValue) {
            return keyValue(Output.of(keyValue));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy