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

com.pulumi.azurenative.appplatform.inputs.AcceleratorSshSettingArgs Maven / Gradle / Ivy

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

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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Auth setting for SSH auth.
 * 
 */
public final class AcceleratorSshSettingArgs extends com.pulumi.resources.ResourceArgs {

    public static final AcceleratorSshSettingArgs Empty = new AcceleratorSshSettingArgs();

    /**
     * The type of the auth setting.
     * Expected value is 'SSH'.
     * 
     */
    @Import(name="authType", required=true)
    private Output authType;

    /**
     * @return The type of the auth setting.
     * Expected value is 'SSH'.
     * 
     */
    public Output authType() {
        return this.authType;
    }

    /**
     * Public SSH Key of git repository.
     * 
     */
    @Import(name="hostKey")
    private @Nullable Output hostKey;

    /**
     * @return Public SSH Key of git repository.
     * 
     */
    public Optional> hostKey() {
        return Optional.ofNullable(this.hostKey);
    }

    /**
     * SSH Key algorithm of git repository.
     * 
     */
    @Import(name="hostKeyAlgorithm")
    private @Nullable Output hostKeyAlgorithm;

    /**
     * @return SSH Key algorithm of git repository.
     * 
     */
    public Optional> hostKeyAlgorithm() {
        return Optional.ofNullable(this.hostKeyAlgorithm);
    }

    /**
     * Private SSH Key algorithm of git repository.
     * 
     */
    @Import(name="privateKey")
    private @Nullable Output privateKey;

    /**
     * @return Private SSH Key algorithm of git repository.
     * 
     */
    public Optional> privateKey() {
        return Optional.ofNullable(this.privateKey);
    }

    private AcceleratorSshSettingArgs() {}

    private AcceleratorSshSettingArgs(AcceleratorSshSettingArgs $) {
        this.authType = $.authType;
        this.hostKey = $.hostKey;
        this.hostKeyAlgorithm = $.hostKeyAlgorithm;
        this.privateKey = $.privateKey;
    }

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

    public static final class Builder {
        private AcceleratorSshSettingArgs $;

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

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

        /**
         * @param authType The type of the auth setting.
         * Expected value is 'SSH'.
         * 
         * @return builder
         * 
         */
        public Builder authType(Output authType) {
            $.authType = authType;
            return this;
        }

        /**
         * @param authType The type of the auth setting.
         * Expected value is 'SSH'.
         * 
         * @return builder
         * 
         */
        public Builder authType(String authType) {
            return authType(Output.of(authType));
        }

        /**
         * @param hostKey Public SSH Key of git repository.
         * 
         * @return builder
         * 
         */
        public Builder hostKey(@Nullable Output hostKey) {
            $.hostKey = hostKey;
            return this;
        }

        /**
         * @param hostKey Public SSH Key of git repository.
         * 
         * @return builder
         * 
         */
        public Builder hostKey(String hostKey) {
            return hostKey(Output.of(hostKey));
        }

        /**
         * @param hostKeyAlgorithm SSH Key algorithm of git repository.
         * 
         * @return builder
         * 
         */
        public Builder hostKeyAlgorithm(@Nullable Output hostKeyAlgorithm) {
            $.hostKeyAlgorithm = hostKeyAlgorithm;
            return this;
        }

        /**
         * @param hostKeyAlgorithm SSH Key algorithm of git repository.
         * 
         * @return builder
         * 
         */
        public Builder hostKeyAlgorithm(String hostKeyAlgorithm) {
            return hostKeyAlgorithm(Output.of(hostKeyAlgorithm));
        }

        /**
         * @param privateKey Private SSH Key algorithm of git repository.
         * 
         * @return builder
         * 
         */
        public Builder privateKey(@Nullable Output privateKey) {
            $.privateKey = privateKey;
            return this;
        }

        /**
         * @param privateKey Private SSH Key algorithm of git repository.
         * 
         * @return builder
         * 
         */
        public Builder privateKey(String privateKey) {
            return privateKey(Output.of(privateKey));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy