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

com.pulumi.azurenative.workloads.inputs.LinuxConfigurationArgs 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.workloads.inputs;

import com.pulumi.azurenative.workloads.inputs.SshConfigurationArgs;
import com.pulumi.azurenative.workloads.inputs.SshKeyPairArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Specifies the Linux operating system settings on the virtual machine. <br><br>For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros).
 * 
 */
public final class LinuxConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final LinuxConfigurationArgs Empty = new LinuxConfigurationArgs();

    /**
     * Specifies whether password authentication should be disabled.
     * 
     */
    @Import(name="disablePasswordAuthentication")
    private @Nullable Output disablePasswordAuthentication;

    /**
     * @return Specifies whether password authentication should be disabled.
     * 
     */
    public Optional> disablePasswordAuthentication() {
        return Optional.ofNullable(this.disablePasswordAuthentication);
    }

    /**
     * The OS Type
     * Expected value is 'Linux'.
     * 
     */
    @Import(name="osType", required=true)
    private Output osType;

    /**
     * @return The OS Type
     * Expected value is 'Linux'.
     * 
     */
    public Output osType() {
        return this.osType;
    }

    /**
     * Specifies the ssh key configuration for a Linux OS. (This property is deprecated, please use 'sshKeyPair' instead)
     * 
     */
    @Import(name="ssh")
    private @Nullable Output ssh;

    /**
     * @return Specifies the ssh key configuration for a Linux OS. (This property is deprecated, please use 'sshKeyPair' instead)
     * 
     */
    public Optional> ssh() {
        return Optional.ofNullable(this.ssh);
    }

    /**
     * The SSH Key-pair used to authenticate with the VM's.
     * 
     */
    @Import(name="sshKeyPair")
    private @Nullable Output sshKeyPair;

    /**
     * @return The SSH Key-pair used to authenticate with the VM's.
     * 
     */
    public Optional> sshKeyPair() {
        return Optional.ofNullable(this.sshKeyPair);
    }

    private LinuxConfigurationArgs() {}

    private LinuxConfigurationArgs(LinuxConfigurationArgs $) {
        this.disablePasswordAuthentication = $.disablePasswordAuthentication;
        this.osType = $.osType;
        this.ssh = $.ssh;
        this.sshKeyPair = $.sshKeyPair;
    }

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

    public static final class Builder {
        private LinuxConfigurationArgs $;

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

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

        /**
         * @param disablePasswordAuthentication Specifies whether password authentication should be disabled.
         * 
         * @return builder
         * 
         */
        public Builder disablePasswordAuthentication(@Nullable Output disablePasswordAuthentication) {
            $.disablePasswordAuthentication = disablePasswordAuthentication;
            return this;
        }

        /**
         * @param disablePasswordAuthentication Specifies whether password authentication should be disabled.
         * 
         * @return builder
         * 
         */
        public Builder disablePasswordAuthentication(Boolean disablePasswordAuthentication) {
            return disablePasswordAuthentication(Output.of(disablePasswordAuthentication));
        }

        /**
         * @param osType The OS Type
         * Expected value is 'Linux'.
         * 
         * @return builder
         * 
         */
        public Builder osType(Output osType) {
            $.osType = osType;
            return this;
        }

        /**
         * @param osType The OS Type
         * Expected value is 'Linux'.
         * 
         * @return builder
         * 
         */
        public Builder osType(String osType) {
            return osType(Output.of(osType));
        }

        /**
         * @param ssh Specifies the ssh key configuration for a Linux OS. (This property is deprecated, please use 'sshKeyPair' instead)
         * 
         * @return builder
         * 
         */
        public Builder ssh(@Nullable Output ssh) {
            $.ssh = ssh;
            return this;
        }

        /**
         * @param ssh Specifies the ssh key configuration for a Linux OS. (This property is deprecated, please use 'sshKeyPair' instead)
         * 
         * @return builder
         * 
         */
        public Builder ssh(SshConfigurationArgs ssh) {
            return ssh(Output.of(ssh));
        }

        /**
         * @param sshKeyPair The SSH Key-pair used to authenticate with the VM's.
         * 
         * @return builder
         * 
         */
        public Builder sshKeyPair(@Nullable Output sshKeyPair) {
            $.sshKeyPair = sshKeyPair;
            return this;
        }

        /**
         * @param sshKeyPair The SSH Key-pair used to authenticate with the VM's.
         * 
         * @return builder
         * 
         */
        public Builder sshKeyPair(SshKeyPairArgs sshKeyPair) {
            return sshKeyPair(Output.of(sshKeyPair));
        }

        public LinuxConfigurationArgs build() {
            $.osType = Codegen.stringProp("osType").output().arg($.osType).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy