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

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

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


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

    public static final AuthorizationProviderArgs Empty = new AuthorizationProviderArgs();

    /**
     * Identifier of the authorization provider.
     * 
     */
    @Import(name="authorizationProviderId")
    private @Nullable Output authorizationProviderId;

    /**
     * @return Identifier of the authorization provider.
     * 
     */
    public Optional> authorizationProviderId() {
        return Optional.ofNullable(this.authorizationProviderId);
    }

    /**
     * Authorization Provider name. Must be 1 to 300 characters long.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return Authorization Provider name. Must be 1 to 300 characters long.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * Identity provider name. Must be 1 to 300 characters long.
     * 
     */
    @Import(name="identityProvider")
    private @Nullable Output identityProvider;

    /**
     * @return Identity provider name. Must be 1 to 300 characters long.
     * 
     */
    public Optional> identityProvider() {
        return Optional.ofNullable(this.identityProvider);
    }

    /**
     * OAuth2 settings
     * 
     */
    @Import(name="oauth2")
    private @Nullable Output oauth2;

    /**
     * @return OAuth2 settings
     * 
     */
    public Optional> oauth2() {
        return Optional.ofNullable(this.oauth2);
    }

    /**
     * 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;
    }

    private AuthorizationProviderArgs() {}

    private AuthorizationProviderArgs(AuthorizationProviderArgs $) {
        this.authorizationProviderId = $.authorizationProviderId;
        this.displayName = $.displayName;
        this.identityProvider = $.identityProvider;
        this.oauth2 = $.oauth2;
        this.resourceGroupName = $.resourceGroupName;
        this.serviceName = $.serviceName;
    }

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

    public static final class Builder {
        private AuthorizationProviderArgs $;

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

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

        /**
         * @param authorizationProviderId Identifier of the authorization provider.
         * 
         * @return builder
         * 
         */
        public Builder authorizationProviderId(@Nullable Output authorizationProviderId) {
            $.authorizationProviderId = authorizationProviderId;
            return this;
        }

        /**
         * @param authorizationProviderId Identifier of the authorization provider.
         * 
         * @return builder
         * 
         */
        public Builder authorizationProviderId(String authorizationProviderId) {
            return authorizationProviderId(Output.of(authorizationProviderId));
        }

        /**
         * @param displayName Authorization Provider name. Must be 1 to 300 characters long.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Authorization Provider name. Must be 1 to 300 characters long.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param identityProvider Identity provider name. Must be 1 to 300 characters long.
         * 
         * @return builder
         * 
         */
        public Builder identityProvider(@Nullable Output identityProvider) {
            $.identityProvider = identityProvider;
            return this;
        }

        /**
         * @param identityProvider Identity provider name. Must be 1 to 300 characters long.
         * 
         * @return builder
         * 
         */
        public Builder identityProvider(String identityProvider) {
            return identityProvider(Output.of(identityProvider));
        }

        /**
         * @param oauth2 OAuth2 settings
         * 
         * @return builder
         * 
         */
        public Builder oauth2(@Nullable Output oauth2) {
            $.oauth2 = oauth2;
            return this;
        }

        /**
         * @param oauth2 OAuth2 settings
         * 
         * @return builder
         * 
         */
        public Builder oauth2(AuthorizationProviderOAuth2SettingsArgs oauth2) {
            return oauth2(Output.of(oauth2));
        }

        /**
         * @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));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy