// *** 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.gcp.gkeonprem.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class BareMetalAdminClusterNodeAccessConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final BareMetalAdminClusterNodeAccessConfigArgs Empty = new BareMetalAdminClusterNodeAccessConfigArgs();

    /**
     * LoginUser is the user name used to access node machines.
     * It defaults to &#34;root&#34; if not set.
     * 
     */
    @Import(name="loginUser")
    private @Nullable Output<String> loginUser;

    /**
     * @return LoginUser is the user name used to access node machines.
     * It defaults to &#34;root&#34; if not set.
     * 
     */
    public Optional<Output<String>> loginUser() {
        return Optional.ofNullable(this.loginUser);
    }

    private BareMetalAdminClusterNodeAccessConfigArgs() {}

    private BareMetalAdminClusterNodeAccessConfigArgs(BareMetalAdminClusterNodeAccessConfigArgs $) {
        this.loginUser = $.loginUser;
    }

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

    public static final class Builder {
        private BareMetalAdminClusterNodeAccessConfigArgs $;

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

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

        /**
         * @param loginUser LoginUser is the user name used to access node machines.
         * It defaults to &#34;root&#34; if not set.
         * 
         * @return builder
         * 
         */
        public Builder loginUser(@Nullable Output<String> loginUser) {
            $.loginUser = loginUser;
            return this;
        }

        /**
         * @param loginUser LoginUser is the user name used to access node machines.
         * It defaults to &#34;root&#34; if not set.
         * 
         * @return builder
         * 
         */
        public Builder loginUser(String loginUser) {
            return loginUser(Output.of(loginUser));
        }

        public BareMetalAdminClusterNodeAccessConfigArgs build() {
            return $;
        }
    }

}
