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

com.pulumi.azure.appservice.inputs.SlotAuthSettingsMicrosoftArgs 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.azure.appservice.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 SlotAuthSettingsMicrosoftArgs extends com.pulumi.resources.ResourceArgs {

    public static final SlotAuthSettingsMicrosoftArgs Empty = new SlotAuthSettingsMicrosoftArgs();

    /**
     * The OAuth 2.0 client ID that was created for the app used for authentication.
     * 
     */
    @Import(name="clientId", required=true)
    private Output clientId;

    /**
     * @return The OAuth 2.0 client ID that was created for the app used for authentication.
     * 
     */
    public Output clientId() {
        return this.clientId;
    }

    /**
     * The OAuth 2.0 client secret that was created for the app used for authentication.
     * 
     */
    @Import(name="clientSecret", required=true)
    private Output clientSecret;

    /**
     * @return The OAuth 2.0 client secret that was created for the app used for authentication.
     * 
     */
    public Output clientSecret() {
        return this.clientSecret;
    }

    /**
     * The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. <https://msdn.microsoft.com/en-us/library/dn631845.aspx>
     * 
     */
    @Import(name="oauthScopes")
    private @Nullable Output> oauthScopes;

    /**
     * @return The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. <https://msdn.microsoft.com/en-us/library/dn631845.aspx>
     * 
     */
    public Optional>> oauthScopes() {
        return Optional.ofNullable(this.oauthScopes);
    }

    private SlotAuthSettingsMicrosoftArgs() {}

    private SlotAuthSettingsMicrosoftArgs(SlotAuthSettingsMicrosoftArgs $) {
        this.clientId = $.clientId;
        this.clientSecret = $.clientSecret;
        this.oauthScopes = $.oauthScopes;
    }

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

    public static final class Builder {
        private SlotAuthSettingsMicrosoftArgs $;

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

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

        /**
         * @param clientId The OAuth 2.0 client ID that was created for the app used for authentication.
         * 
         * @return builder
         * 
         */
        public Builder clientId(Output clientId) {
            $.clientId = clientId;
            return this;
        }

        /**
         * @param clientId The OAuth 2.0 client ID that was created for the app used for authentication.
         * 
         * @return builder
         * 
         */
        public Builder clientId(String clientId) {
            return clientId(Output.of(clientId));
        }

        /**
         * @param clientSecret The OAuth 2.0 client secret that was created for the app used for authentication.
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(Output clientSecret) {
            $.clientSecret = clientSecret;
            return this;
        }

        /**
         * @param clientSecret The OAuth 2.0 client secret that was created for the app used for authentication.
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(String clientSecret) {
            return clientSecret(Output.of(clientSecret));
        }

        /**
         * @param oauthScopes The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. <https://msdn.microsoft.com/en-us/library/dn631845.aspx>
         * 
         * @return builder
         * 
         */
        public Builder oauthScopes(@Nullable Output> oauthScopes) {
            $.oauthScopes = oauthScopes;
            return this;
        }

        /**
         * @param oauthScopes The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. <https://msdn.microsoft.com/en-us/library/dn631845.aspx>
         * 
         * @return builder
         * 
         */
        public Builder oauthScopes(List oauthScopes) {
            return oauthScopes(Output.of(oauthScopes));
        }

        /**
         * @param oauthScopes The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. <https://msdn.microsoft.com/en-us/library/dn631845.aspx>
         * 
         * @return builder
         * 
         */
        public Builder oauthScopes(String... oauthScopes) {
            return oauthScopes(List.of(oauthScopes));
        }

        public SlotAuthSettingsMicrosoftArgs build() {
            if ($.clientId == null) {
                throw new MissingRequiredPropertyException("SlotAuthSettingsMicrosoftArgs", "clientId");
            }
            if ($.clientSecret == null) {
                throw new MissingRequiredPropertyException("SlotAuthSettingsMicrosoftArgs", "clientSecret");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy