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

com.pulumi.azure.apimanagement.inputs.ApiOpenidAuthenticationArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.apimanagement.inputs;

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


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

    public static final ApiOpenidAuthenticationArgs Empty = new ApiOpenidAuthenticationArgs();

    /**
     * How to send token to the server. A list of zero or more methods. Valid values are `authorizationHeader` and `query`.
     * 
     */
    @Import(name="bearerTokenSendingMethods")
    private @Nullable Output> bearerTokenSendingMethods;

    /**
     * @return How to send token to the server. A list of zero or more methods. Valid values are `authorizationHeader` and `query`.
     * 
     */
    public Optional>> bearerTokenSendingMethods() {
        return Optional.ofNullable(this.bearerTokenSendingMethods);
    }

    /**
     * OpenID Connect provider identifier. The name of an OpenID Connect Provider.
     * 
     */
    @Import(name="openidProviderName", required=true)
    private Output openidProviderName;

    /**
     * @return OpenID Connect provider identifier. The name of an OpenID Connect Provider.
     * 
     */
    public Output openidProviderName() {
        return this.openidProviderName;
    }

    private ApiOpenidAuthenticationArgs() {}

    private ApiOpenidAuthenticationArgs(ApiOpenidAuthenticationArgs $) {
        this.bearerTokenSendingMethods = $.bearerTokenSendingMethods;
        this.openidProviderName = $.openidProviderName;
    }

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

    public static final class Builder {
        private ApiOpenidAuthenticationArgs $;

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

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

        /**
         * @param bearerTokenSendingMethods How to send token to the server. A list of zero or more methods. Valid values are `authorizationHeader` and `query`.
         * 
         * @return builder
         * 
         */
        public Builder bearerTokenSendingMethods(@Nullable Output> bearerTokenSendingMethods) {
            $.bearerTokenSendingMethods = bearerTokenSendingMethods;
            return this;
        }

        /**
         * @param bearerTokenSendingMethods How to send token to the server. A list of zero or more methods. Valid values are `authorizationHeader` and `query`.
         * 
         * @return builder
         * 
         */
        public Builder bearerTokenSendingMethods(List bearerTokenSendingMethods) {
            return bearerTokenSendingMethods(Output.of(bearerTokenSendingMethods));
        }

        /**
         * @param bearerTokenSendingMethods How to send token to the server. A list of zero or more methods. Valid values are `authorizationHeader` and `query`.
         * 
         * @return builder
         * 
         */
        public Builder bearerTokenSendingMethods(String... bearerTokenSendingMethods) {
            return bearerTokenSendingMethods(List.of(bearerTokenSendingMethods));
        }

        /**
         * @param openidProviderName OpenID Connect provider identifier. The name of an OpenID Connect Provider.
         * 
         * @return builder
         * 
         */
        public Builder openidProviderName(Output openidProviderName) {
            $.openidProviderName = openidProviderName;
            return this;
        }

        /**
         * @param openidProviderName OpenID Connect provider identifier. The name of an OpenID Connect Provider.
         * 
         * @return builder
         * 
         */
        public Builder openidProviderName(String openidProviderName) {
            return openidProviderName(Output.of(openidProviderName));
        }

        public ApiOpenidAuthenticationArgs build() {
            if ($.openidProviderName == null) {
                throw new MissingRequiredPropertyException("ApiOpenidAuthenticationArgs", "openidProviderName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy