// *** 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.compute.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class LinuxVirtualMachineScaleSetAdminSshKey {
    /**
     * @return The Public Key which should be used for authentication, which needs to be at least 2048-bit and in `ssh-rsa` format.
     * 
     */
    private String publicKey;
    /**
     * @return The Username for which this Public SSH Key should be configured.
     * 
     * &gt; **NOTE:** The Azure VM Agent only allows creating SSH Keys at the path `/home/{username}/.ssh/authorized_keys` - as such this public key will be added/appended to the authorized keys file.
     * 
     */
    private String username;

    private LinuxVirtualMachineScaleSetAdminSshKey() {}
    /**
     * @return The Public Key which should be used for authentication, which needs to be at least 2048-bit and in `ssh-rsa` format.
     * 
     */
    public String publicKey() {
        return this.publicKey;
    }
    /**
     * @return The Username for which this Public SSH Key should be configured.
     * 
     * &gt; **NOTE:** The Azure VM Agent only allows creating SSH Keys at the path `/home/{username}/.ssh/authorized_keys` - as such this public key will be added/appended to the authorized keys file.
     * 
     */
    public String username() {
        return this.username;
    }

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

    public static Builder builder(LinuxVirtualMachineScaleSetAdminSshKey defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String publicKey;
        private String username;
        public Builder() {}
        public Builder(LinuxVirtualMachineScaleSetAdminSshKey defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.publicKey = defaults.publicKey;
    	      this.username = defaults.username;
        }

        @CustomType.Setter
        public Builder publicKey(String publicKey) {
            this.publicKey = Objects.requireNonNull(publicKey);
            return this;
        }
        @CustomType.Setter
        public Builder username(String username) {
            this.username = Objects.requireNonNull(username);
            return this;
        }
        public LinuxVirtualMachineScaleSetAdminSshKey build() {
            final var o = new LinuxVirtualMachineScaleSetAdminSshKey();
            o.publicKey = publicKey;
            o.username = username;
            return o;
        }
    }
}
