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

com.pulumi.azurenative.search.inputs.DataPlaneAuthOptionsArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.search.inputs;

import com.pulumi.azurenative.search.inputs.DataPlaneAadOrApiKeyAuthOptionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Object;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Defines the options for how the data plane API of a Search service authenticates requests. This cannot be set if 'disableLocalAuth' is set to true.
 * 
 */
public final class DataPlaneAuthOptionsArgs extends com.pulumi.resources.ResourceArgs {

    public static final DataPlaneAuthOptionsArgs Empty = new DataPlaneAuthOptionsArgs();

    /**
     * Indicates that either the API key or an access token from Azure Active Directory can be used for authentication.
     * 
     */
    @Import(name="aadOrApiKey")
    private @Nullable Output aadOrApiKey;

    /**
     * @return Indicates that either the API key or an access token from Azure Active Directory can be used for authentication.
     * 
     */
    public Optional> aadOrApiKey() {
        return Optional.ofNullable(this.aadOrApiKey);
    }

    /**
     * Indicates that only the API key needs to be used for authentication.
     * 
     */
    @Import(name="apiKeyOnly")
    private @Nullable Output apiKeyOnly;

    /**
     * @return Indicates that only the API key needs to be used for authentication.
     * 
     */
    public Optional> apiKeyOnly() {
        return Optional.ofNullable(this.apiKeyOnly);
    }

    private DataPlaneAuthOptionsArgs() {}

    private DataPlaneAuthOptionsArgs(DataPlaneAuthOptionsArgs $) {
        this.aadOrApiKey = $.aadOrApiKey;
        this.apiKeyOnly = $.apiKeyOnly;
    }

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

    public static final class Builder {
        private DataPlaneAuthOptionsArgs $;

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

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

        /**
         * @param aadOrApiKey Indicates that either the API key or an access token from Azure Active Directory can be used for authentication.
         * 
         * @return builder
         * 
         */
        public Builder aadOrApiKey(@Nullable Output aadOrApiKey) {
            $.aadOrApiKey = aadOrApiKey;
            return this;
        }

        /**
         * @param aadOrApiKey Indicates that either the API key or an access token from Azure Active Directory can be used for authentication.
         * 
         * @return builder
         * 
         */
        public Builder aadOrApiKey(DataPlaneAadOrApiKeyAuthOptionArgs aadOrApiKey) {
            return aadOrApiKey(Output.of(aadOrApiKey));
        }

        /**
         * @param apiKeyOnly Indicates that only the API key needs to be used for authentication.
         * 
         * @return builder
         * 
         */
        public Builder apiKeyOnly(@Nullable Output apiKeyOnly) {
            $.apiKeyOnly = apiKeyOnly;
            return this;
        }

        /**
         * @param apiKeyOnly Indicates that only the API key needs to be used for authentication.
         * 
         * @return builder
         * 
         */
        public Builder apiKeyOnly(Object apiKeyOnly) {
            return apiKeyOnly(Output.of(apiKeyOnly));
        }

        public DataPlaneAuthOptionsArgs build() {
            return $;
        }
    }

}