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

com.pulumi.azurenative.apimanagement.OpenIdConnectProviderArgs 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.apimanagement;

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


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

    public static final OpenIdConnectProviderArgs Empty = new OpenIdConnectProviderArgs();

    /**
     * Client ID of developer console which is the client application.
     * 
     */
    @Import(name="clientId", required=true)
    private Output clientId;

    /**
     * @return Client ID of developer console which is the client application.
     * 
     */
    public Output clientId() {
        return this.clientId;
    }

    /**
     * Client Secret of developer console which is the client application.
     * 
     */
    @Import(name="clientSecret")
    private @Nullable Output clientSecret;

    /**
     * @return Client Secret of developer console which is the client application.
     * 
     */
    public Optional> clientSecret() {
        return Optional.ofNullable(this.clientSecret);
    }

    /**
     * User-friendly description of OpenID Connect Provider.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return User-friendly description of OpenID Connect Provider.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * User-friendly OpenID Connect Provider name.
     * 
     */
    @Import(name="displayName", required=true)
    private Output displayName;

    /**
     * @return User-friendly OpenID Connect Provider name.
     * 
     */
    public Output displayName() {
        return this.displayName;
    }

    /**
     * Metadata endpoint URI.
     * 
     */
    @Import(name="metadataEndpoint", required=true)
    private Output metadataEndpoint;

    /**
     * @return Metadata endpoint URI.
     * 
     */
    public Output metadataEndpoint() {
        return this.metadataEndpoint;
    }

    /**
     * Identifier of the OpenID Connect Provider.
     * 
     */
    @Import(name="opid")
    private @Nullable Output opid;

    /**
     * @return Identifier of the OpenID Connect Provider.
     * 
     */
    public Optional> opid() {
        return Optional.ofNullable(this.opid);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the API Management service.
     * 
     */
    @Import(name="serviceName", required=true)
    private Output serviceName;

    /**
     * @return The name of the API Management service.
     * 
     */
    public Output serviceName() {
        return this.serviceName;
    }

    /**
     * If true, the Open ID Connect provider will be used in the API documentation in the developer portal. False by default if no value is provided.
     * 
     */
    @Import(name="useInApiDocumentation")
    private @Nullable Output useInApiDocumentation;

    /**
     * @return If true, the Open ID Connect provider will be used in the API documentation in the developer portal. False by default if no value is provided.
     * 
     */
    public Optional> useInApiDocumentation() {
        return Optional.ofNullable(this.useInApiDocumentation);
    }

    /**
     * If true, the Open ID Connect provider may be used in the developer portal test console. True by default if no value is provided.
     * 
     */
    @Import(name="useInTestConsole")
    private @Nullable Output useInTestConsole;

    /**
     * @return If true, the Open ID Connect provider may be used in the developer portal test console. True by default if no value is provided.
     * 
     */
    public Optional> useInTestConsole() {
        return Optional.ofNullable(this.useInTestConsole);
    }

    private OpenIdConnectProviderArgs() {}

    private OpenIdConnectProviderArgs(OpenIdConnectProviderArgs $) {
        this.clientId = $.clientId;
        this.clientSecret = $.clientSecret;
        this.description = $.description;
        this.displayName = $.displayName;
        this.metadataEndpoint = $.metadataEndpoint;
        this.opid = $.opid;
        this.resourceGroupName = $.resourceGroupName;
        this.serviceName = $.serviceName;
        this.useInApiDocumentation = $.useInApiDocumentation;
        this.useInTestConsole = $.useInTestConsole;
    }

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

    public static final class Builder {
        private OpenIdConnectProviderArgs $;

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

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

        /**
         * @param clientId Client ID of developer console which is the client application.
         * 
         * @return builder
         * 
         */
        public Builder clientId(Output clientId) {
            $.clientId = clientId;
            return this;
        }

        /**
         * @param clientId Client ID of developer console which is the client application.
         * 
         * @return builder
         * 
         */
        public Builder clientId(String clientId) {
            return clientId(Output.of(clientId));
        }

        /**
         * @param clientSecret Client Secret of developer console which is the client application.
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(@Nullable Output clientSecret) {
            $.clientSecret = clientSecret;
            return this;
        }

        /**
         * @param clientSecret Client Secret of developer console which is the client application.
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(String clientSecret) {
            return clientSecret(Output.of(clientSecret));
        }

        /**
         * @param description User-friendly description of OpenID Connect Provider.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description User-friendly description of OpenID Connect Provider.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param displayName User-friendly OpenID Connect Provider name.
         * 
         * @return builder
         * 
         */
        public Builder displayName(Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName User-friendly OpenID Connect Provider name.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param metadataEndpoint Metadata endpoint URI.
         * 
         * @return builder
         * 
         */
        public Builder metadataEndpoint(Output metadataEndpoint) {
            $.metadataEndpoint = metadataEndpoint;
            return this;
        }

        /**
         * @param metadataEndpoint Metadata endpoint URI.
         * 
         * @return builder
         * 
         */
        public Builder metadataEndpoint(String metadataEndpoint) {
            return metadataEndpoint(Output.of(metadataEndpoint));
        }

        /**
         * @param opid Identifier of the OpenID Connect Provider.
         * 
         * @return builder
         * 
         */
        public Builder opid(@Nullable Output opid) {
            $.opid = opid;
            return this;
        }

        /**
         * @param opid Identifier of the OpenID Connect Provider.
         * 
         * @return builder
         * 
         */
        public Builder opid(String opid) {
            return opid(Output.of(opid));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param serviceName The name of the API Management service.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The name of the API Management service.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param useInApiDocumentation If true, the Open ID Connect provider will be used in the API documentation in the developer portal. False by default if no value is provided.
         * 
         * @return builder
         * 
         */
        public Builder useInApiDocumentation(@Nullable Output useInApiDocumentation) {
            $.useInApiDocumentation = useInApiDocumentation;
            return this;
        }

        /**
         * @param useInApiDocumentation If true, the Open ID Connect provider will be used in the API documentation in the developer portal. False by default if no value is provided.
         * 
         * @return builder
         * 
         */
        public Builder useInApiDocumentation(Boolean useInApiDocumentation) {
            return useInApiDocumentation(Output.of(useInApiDocumentation));
        }

        /**
         * @param useInTestConsole If true, the Open ID Connect provider may be used in the developer portal test console. True by default if no value is provided.
         * 
         * @return builder
         * 
         */
        public Builder useInTestConsole(@Nullable Output useInTestConsole) {
            $.useInTestConsole = useInTestConsole;
            return this;
        }

        /**
         * @param useInTestConsole If true, the Open ID Connect provider may be used in the developer portal test console. True by default if no value is provided.
         * 
         * @return builder
         * 
         */
        public Builder useInTestConsole(Boolean useInTestConsole) {
            return useInTestConsole(Output.of(useInTestConsole));
        }

        public OpenIdConnectProviderArgs build() {
            if ($.clientId == null) {
                throw new MissingRequiredPropertyException("OpenIdConnectProviderArgs", "clientId");
            }
            if ($.displayName == null) {
                throw new MissingRequiredPropertyException("OpenIdConnectProviderArgs", "displayName");
            }
            if ($.metadataEndpoint == null) {
                throw new MissingRequiredPropertyException("OpenIdConnectProviderArgs", "metadataEndpoint");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("OpenIdConnectProviderArgs", "resourceGroupName");
            }
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("OpenIdConnectProviderArgs", "serviceName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy