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

com.pulumi.azurenative.appplatform.inputs.AcceleratorBasicAuthSettingArgs 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 basic auth.
 * 
 */
public final class AcceleratorBasicAuthSettingArgs extends com.pulumi.resources.ResourceArgs {

    public static final AcceleratorBasicAuthSettingArgs Empty = new AcceleratorBasicAuthSettingArgs();

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

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

    /**
     * Resource Id of CA certificate for https URL of Git repository.
     * 
     */
    @Import(name="caCertResourceId")
    private @Nullable Output caCertResourceId;

    /**
     * @return Resource Id of CA certificate for https URL of Git repository.
     * 
     */
    public Optional> caCertResourceId() {
        return Optional.ofNullable(this.caCertResourceId);
    }

    /**
     * Password of git repository basic auth.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return Password of git repository basic auth.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * Username of git repository basic auth.
     * 
     */
    @Import(name="username", required=true)
    private Output username;

    /**
     * @return Username of git repository basic auth.
     * 
     */
    public Output username() {
        return this.username;
    }

    private AcceleratorBasicAuthSettingArgs() {}

    private AcceleratorBasicAuthSettingArgs(AcceleratorBasicAuthSettingArgs $) {
        this.authType = $.authType;
        this.caCertResourceId = $.caCertResourceId;
        this.password = $.password;
        this.username = $.username;
    }

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

    public static final class Builder {
        private AcceleratorBasicAuthSettingArgs $;

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

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

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

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

        /**
         * @param caCertResourceId Resource Id of CA certificate for https URL of Git repository.
         * 
         * @return builder
         * 
         */
        public Builder caCertResourceId(@Nullable Output caCertResourceId) {
            $.caCertResourceId = caCertResourceId;
            return this;
        }

        /**
         * @param caCertResourceId Resource Id of CA certificate for https URL of Git repository.
         * 
         * @return builder
         * 
         */
        public Builder caCertResourceId(String caCertResourceId) {
            return caCertResourceId(Output.of(caCertResourceId));
        }

        /**
         * @param password Password of git repository basic auth.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password Password of git repository basic auth.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param username Username of git repository basic auth.
         * 
         * @return builder
         * 
         */
        public Builder username(Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username Username of git repository basic auth.
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

        public AcceleratorBasicAuthSettingArgs build() {
            $.authType = Codegen.stringProp("authType").output().arg($.authType).require();
            if ($.username == null) {
                throw new MissingRequiredPropertyException("AcceleratorBasicAuthSettingArgs", "username");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy