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

com.pulumi.azurenative.azurefleet.inputs.LinuxConfigurationArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.azurefleet.inputs.LinuxPatchSettingsArgs;
import com.pulumi.azurenative.azurefleet.inputs.SshConfigurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Specifies the Linux operating system settings on the virtual machine. 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);
    }

    /**
     * Indicates whether VMAgent Platform Updates is enabled for the Linux virtual
     * machine. Default value is false.
     * 
     */
    @Import(name="enableVMAgentPlatformUpdates")
    private @Nullable Output enableVMAgentPlatformUpdates;

    /**
     * @return Indicates whether VMAgent Platform Updates is enabled for the Linux virtual
     * machine. Default value is false.
     * 
     */
    public Optional> enableVMAgentPlatformUpdates() {
        return Optional.ofNullable(this.enableVMAgentPlatformUpdates);
    }

    /**
     * [Preview Feature] Specifies settings related to VM Guest Patching on Linux.
     * 
     */
    @Import(name="patchSettings")
    private @Nullable Output patchSettings;

    /**
     * @return [Preview Feature] Specifies settings related to VM Guest Patching on Linux.
     * 
     */
    public Optional> patchSettings() {
        return Optional.ofNullable(this.patchSettings);
    }

    /**
     * Indicates whether virtual machine agent should be provisioned on the virtual
     * machine. When this property is not specified in the request body, default
     * behavior is to set it to true. This will ensure that VM Agent is installed on
     * the VM so that extensions can be added to the VM later.
     * 
     */
    @Import(name="provisionVMAgent")
    private @Nullable Output provisionVMAgent;

    /**
     * @return Indicates whether virtual machine agent should be provisioned on the virtual
     * machine. When this property is not specified in the request body, default
     * behavior is to set it to true. This will ensure that VM Agent is installed on
     * the VM so that extensions can be added to the VM later.
     * 
     */
    public Optional> provisionVMAgent() {
        return Optional.ofNullable(this.provisionVMAgent);
    }

    /**
     * Specifies the ssh key configuration for a Linux OS.
     * 
     */
    @Import(name="ssh")
    private @Nullable Output ssh;

    /**
     * @return Specifies the ssh key configuration for a Linux OS.
     * 
     */
    public Optional> ssh() {
        return Optional.ofNullable(this.ssh);
    }

    private LinuxConfigurationArgs() {}

    private LinuxConfigurationArgs(LinuxConfigurationArgs $) {
        this.disablePasswordAuthentication = $.disablePasswordAuthentication;
        this.enableVMAgentPlatformUpdates = $.enableVMAgentPlatformUpdates;
        this.patchSettings = $.patchSettings;
        this.provisionVMAgent = $.provisionVMAgent;
        this.ssh = $.ssh;
    }

    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 enableVMAgentPlatformUpdates Indicates whether VMAgent Platform Updates is enabled for the Linux virtual
         * machine. Default value is false.
         * 
         * @return builder
         * 
         */
        public Builder enableVMAgentPlatformUpdates(@Nullable Output enableVMAgentPlatformUpdates) {
            $.enableVMAgentPlatformUpdates = enableVMAgentPlatformUpdates;
            return this;
        }

        /**
         * @param enableVMAgentPlatformUpdates Indicates whether VMAgent Platform Updates is enabled for the Linux virtual
         * machine. Default value is false.
         * 
         * @return builder
         * 
         */
        public Builder enableVMAgentPlatformUpdates(Boolean enableVMAgentPlatformUpdates) {
            return enableVMAgentPlatformUpdates(Output.of(enableVMAgentPlatformUpdates));
        }

        /**
         * @param patchSettings [Preview Feature] Specifies settings related to VM Guest Patching on Linux.
         * 
         * @return builder
         * 
         */
        public Builder patchSettings(@Nullable Output patchSettings) {
            $.patchSettings = patchSettings;
            return this;
        }

        /**
         * @param patchSettings [Preview Feature] Specifies settings related to VM Guest Patching on Linux.
         * 
         * @return builder
         * 
         */
        public Builder patchSettings(LinuxPatchSettingsArgs patchSettings) {
            return patchSettings(Output.of(patchSettings));
        }

        /**
         * @param provisionVMAgent Indicates whether virtual machine agent should be provisioned on the virtual
         * machine. When this property is not specified in the request body, default
         * behavior is to set it to true. This will ensure that VM Agent is installed on
         * the VM so that extensions can be added to the VM later.
         * 
         * @return builder
         * 
         */
        public Builder provisionVMAgent(@Nullable Output provisionVMAgent) {
            $.provisionVMAgent = provisionVMAgent;
            return this;
        }

        /**
         * @param provisionVMAgent Indicates whether virtual machine agent should be provisioned on the virtual
         * machine. When this property is not specified in the request body, default
         * behavior is to set it to true. This will ensure that VM Agent is installed on
         * the VM so that extensions can be added to the VM later.
         * 
         * @return builder
         * 
         */
        public Builder provisionVMAgent(Boolean provisionVMAgent) {
            return provisionVMAgent(Output.of(provisionVMAgent));
        }

        /**
         * @param ssh Specifies the ssh key configuration for a Linux OS.
         * 
         * @return builder
         * 
         */
        public Builder ssh(@Nullable Output ssh) {
            $.ssh = ssh;
            return this;
        }

        /**
         * @param ssh Specifies the ssh key configuration for a Linux OS.
         * 
         * @return builder
         * 
         */
        public Builder ssh(SshConfigurationArgs ssh) {
            return ssh(Output.of(ssh));
        }

        public LinuxConfigurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy