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

com.pulumi.azurenative.compute.inputs.SshConfigurationArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.compute.inputs.SshPublicKeyArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * SSH configuration for Linux based VMs running on Azure
 * 
 */
public final class SshConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final SshConfigurationArgs Empty = new SshConfigurationArgs();

    /**
     * The list of SSH public keys used to authenticate with linux based VMs.
     * 
     */
    @Import(name="publicKeys")
    private @Nullable Output> publicKeys;

    /**
     * @return The list of SSH public keys used to authenticate with linux based VMs.
     * 
     */
    public Optional>> publicKeys() {
        return Optional.ofNullable(this.publicKeys);
    }

    private SshConfigurationArgs() {}

    private SshConfigurationArgs(SshConfigurationArgs $) {
        this.publicKeys = $.publicKeys;
    }

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

    public static final class Builder {
        private SshConfigurationArgs $;

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

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

        /**
         * @param publicKeys The list of SSH public keys used to authenticate with linux based VMs.
         * 
         * @return builder
         * 
         */
        public Builder publicKeys(@Nullable Output> publicKeys) {
            $.publicKeys = publicKeys;
            return this;
        }

        /**
         * @param publicKeys The list of SSH public keys used to authenticate with linux based VMs.
         * 
         * @return builder
         * 
         */
        public Builder publicKeys(List publicKeys) {
            return publicKeys(Output.of(publicKeys));
        }

        /**
         * @param publicKeys The list of SSH public keys used to authenticate with linux based VMs.
         * 
         * @return builder
         * 
         */
        public Builder publicKeys(SshPublicKeyArgs... publicKeys) {
            return publicKeys(List.of(publicKeys));
        }

        public SshConfigurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy