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

com.pulumi.azurenative.documentdb.inputs.AuthenticationMethodLdapPropertiesArgs 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.documentdb.inputs;

import com.pulumi.azurenative.documentdb.inputs.CertificateArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Ldap authentication method properties. This feature is in preview.
 * 
 */
public final class AuthenticationMethodLdapPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final AuthenticationMethodLdapPropertiesArgs Empty = new AuthenticationMethodLdapPropertiesArgs();

    /**
     * Timeout for connecting to the LDAP server in miliseconds. The default is 5000 ms.
     * 
     */
    @Import(name="connectionTimeoutInMs")
    private @Nullable Output connectionTimeoutInMs;

    /**
     * @return Timeout for connecting to the LDAP server in miliseconds. The default is 5000 ms.
     * 
     */
    public Optional> connectionTimeoutInMs() {
        return Optional.ofNullable(this.connectionTimeoutInMs);
    }

    /**
     * Distinguished name of the object to start the recursive search of users from.
     * 
     */
    @Import(name="searchBaseDistinguishedName")
    private @Nullable Output searchBaseDistinguishedName;

    /**
     * @return Distinguished name of the object to start the recursive search of users from.
     * 
     */
    public Optional> searchBaseDistinguishedName() {
        return Optional.ofNullable(this.searchBaseDistinguishedName);
    }

    /**
     * Template to use for searching. Defaults to (cn=%s) where %s will be replaced by the username used to login.
     * 
     */
    @Import(name="searchFilterTemplate")
    private @Nullable Output searchFilterTemplate;

    /**
     * @return Template to use for searching. Defaults to (cn=%s) where %s will be replaced by the username used to login.
     * 
     */
    public Optional> searchFilterTemplate() {
        return Optional.ofNullable(this.searchFilterTemplate);
    }

    @Import(name="serverCertificates")
    private @Nullable Output> serverCertificates;

    public Optional>> serverCertificates() {
        return Optional.ofNullable(this.serverCertificates);
    }

    /**
     * Hostname of the LDAP server.
     * 
     */
    @Import(name="serverHostname")
    private @Nullable Output serverHostname;

    /**
     * @return Hostname of the LDAP server.
     * 
     */
    public Optional> serverHostname() {
        return Optional.ofNullable(this.serverHostname);
    }

    /**
     * Port of the LDAP server.
     * 
     */
    @Import(name="serverPort")
    private @Nullable Output serverPort;

    /**
     * @return Port of the LDAP server.
     * 
     */
    public Optional> serverPort() {
        return Optional.ofNullable(this.serverPort);
    }

    /**
     * Distinguished name of the look up user account, who can look up user details on authentication.
     * 
     */
    @Import(name="serviceUserDistinguishedName")
    private @Nullable Output serviceUserDistinguishedName;

    /**
     * @return Distinguished name of the look up user account, who can look up user details on authentication.
     * 
     */
    public Optional> serviceUserDistinguishedName() {
        return Optional.ofNullable(this.serviceUserDistinguishedName);
    }

    /**
     * Password of the look up user.
     * 
     */
    @Import(name="serviceUserPassword")
    private @Nullable Output serviceUserPassword;

    /**
     * @return Password of the look up user.
     * 
     */
    public Optional> serviceUserPassword() {
        return Optional.ofNullable(this.serviceUserPassword);
    }

    private AuthenticationMethodLdapPropertiesArgs() {}

    private AuthenticationMethodLdapPropertiesArgs(AuthenticationMethodLdapPropertiesArgs $) {
        this.connectionTimeoutInMs = $.connectionTimeoutInMs;
        this.searchBaseDistinguishedName = $.searchBaseDistinguishedName;
        this.searchFilterTemplate = $.searchFilterTemplate;
        this.serverCertificates = $.serverCertificates;
        this.serverHostname = $.serverHostname;
        this.serverPort = $.serverPort;
        this.serviceUserDistinguishedName = $.serviceUserDistinguishedName;
        this.serviceUserPassword = $.serviceUserPassword;
    }

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

    public static final class Builder {
        private AuthenticationMethodLdapPropertiesArgs $;

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

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

        /**
         * @param connectionTimeoutInMs Timeout for connecting to the LDAP server in miliseconds. The default is 5000 ms.
         * 
         * @return builder
         * 
         */
        public Builder connectionTimeoutInMs(@Nullable Output connectionTimeoutInMs) {
            $.connectionTimeoutInMs = connectionTimeoutInMs;
            return this;
        }

        /**
         * @param connectionTimeoutInMs Timeout for connecting to the LDAP server in miliseconds. The default is 5000 ms.
         * 
         * @return builder
         * 
         */
        public Builder connectionTimeoutInMs(Integer connectionTimeoutInMs) {
            return connectionTimeoutInMs(Output.of(connectionTimeoutInMs));
        }

        /**
         * @param searchBaseDistinguishedName Distinguished name of the object to start the recursive search of users from.
         * 
         * @return builder
         * 
         */
        public Builder searchBaseDistinguishedName(@Nullable Output searchBaseDistinguishedName) {
            $.searchBaseDistinguishedName = searchBaseDistinguishedName;
            return this;
        }

        /**
         * @param searchBaseDistinguishedName Distinguished name of the object to start the recursive search of users from.
         * 
         * @return builder
         * 
         */
        public Builder searchBaseDistinguishedName(String searchBaseDistinguishedName) {
            return searchBaseDistinguishedName(Output.of(searchBaseDistinguishedName));
        }

        /**
         * @param searchFilterTemplate Template to use for searching. Defaults to (cn=%s) where %s will be replaced by the username used to login.
         * 
         * @return builder
         * 
         */
        public Builder searchFilterTemplate(@Nullable Output searchFilterTemplate) {
            $.searchFilterTemplate = searchFilterTemplate;
            return this;
        }

        /**
         * @param searchFilterTemplate Template to use for searching. Defaults to (cn=%s) where %s will be replaced by the username used to login.
         * 
         * @return builder
         * 
         */
        public Builder searchFilterTemplate(String searchFilterTemplate) {
            return searchFilterTemplate(Output.of(searchFilterTemplate));
        }

        public Builder serverCertificates(@Nullable Output> serverCertificates) {
            $.serverCertificates = serverCertificates;
            return this;
        }

        public Builder serverCertificates(List serverCertificates) {
            return serverCertificates(Output.of(serverCertificates));
        }

        public Builder serverCertificates(CertificateArgs... serverCertificates) {
            return serverCertificates(List.of(serverCertificates));
        }

        /**
         * @param serverHostname Hostname of the LDAP server.
         * 
         * @return builder
         * 
         */
        public Builder serverHostname(@Nullable Output serverHostname) {
            $.serverHostname = serverHostname;
            return this;
        }

        /**
         * @param serverHostname Hostname of the LDAP server.
         * 
         * @return builder
         * 
         */
        public Builder serverHostname(String serverHostname) {
            return serverHostname(Output.of(serverHostname));
        }

        /**
         * @param serverPort Port of the LDAP server.
         * 
         * @return builder
         * 
         */
        public Builder serverPort(@Nullable Output serverPort) {
            $.serverPort = serverPort;
            return this;
        }

        /**
         * @param serverPort Port of the LDAP server.
         * 
         * @return builder
         * 
         */
        public Builder serverPort(Integer serverPort) {
            return serverPort(Output.of(serverPort));
        }

        /**
         * @param serviceUserDistinguishedName Distinguished name of the look up user account, who can look up user details on authentication.
         * 
         * @return builder
         * 
         */
        public Builder serviceUserDistinguishedName(@Nullable Output serviceUserDistinguishedName) {
            $.serviceUserDistinguishedName = serviceUserDistinguishedName;
            return this;
        }

        /**
         * @param serviceUserDistinguishedName Distinguished name of the look up user account, who can look up user details on authentication.
         * 
         * @return builder
         * 
         */
        public Builder serviceUserDistinguishedName(String serviceUserDistinguishedName) {
            return serviceUserDistinguishedName(Output.of(serviceUserDistinguishedName));
        }

        /**
         * @param serviceUserPassword Password of the look up user.
         * 
         * @return builder
         * 
         */
        public Builder serviceUserPassword(@Nullable Output serviceUserPassword) {
            $.serviceUserPassword = serviceUserPassword;
            return this;
        }

        /**
         * @param serviceUserPassword Password of the look up user.
         * 
         * @return builder
         * 
         */
        public Builder serviceUserPassword(String serviceUserPassword) {
            return serviceUserPassword(Output.of(serviceUserPassword));
        }

        public AuthenticationMethodLdapPropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy