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

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

    public static final WindowsWebAppSlotAuthSettingsV2GithubV2Args Empty = new WindowsWebAppSlotAuthSettingsV2GithubV2Args();

    /**
     * The ID of the GitHub app used for login..
     * 
     */
    @Import(name="clientId", required=true)
    private Output clientId;

    /**
     * @return The ID of the GitHub app used for login..
     * 
     */
    public Output clientId() {
        return this.clientId;
    }

    /**
     * The app setting name that contains the `client_secret` value used for GitHub Login.
     * 
     * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
     * 
     */
    @Import(name="clientSecretSettingName", required=true)
    private Output clientSecretSettingName;

    /**
     * @return The app setting name that contains the `client_secret` value used for GitHub Login.
     * 
     * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
     * 
     */
    public Output clientSecretSettingName() {
        return this.clientSecretSettingName;
    }

    /**
     * The list of OAuth 2.0 scopes that should be requested as part of GitHub Login authentication.
     * 
     */
    @Import(name="loginScopes")
    private @Nullable Output> loginScopes;

    /**
     * @return The list of OAuth 2.0 scopes that should be requested as part of GitHub Login authentication.
     * 
     */
    public Optional>> loginScopes() {
        return Optional.ofNullable(this.loginScopes);
    }

    private WindowsWebAppSlotAuthSettingsV2GithubV2Args() {}

    private WindowsWebAppSlotAuthSettingsV2GithubV2Args(WindowsWebAppSlotAuthSettingsV2GithubV2Args $) {
        this.clientId = $.clientId;
        this.clientSecretSettingName = $.clientSecretSettingName;
        this.loginScopes = $.loginScopes;
    }

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

    public static final class Builder {
        private WindowsWebAppSlotAuthSettingsV2GithubV2Args $;

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

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

        /**
         * @param clientId The ID of the GitHub app used for login..
         * 
         * @return builder
         * 
         */
        public Builder clientId(Output clientId) {
            $.clientId = clientId;
            return this;
        }

        /**
         * @param clientId The ID of the GitHub app used for login..
         * 
         * @return builder
         * 
         */
        public Builder clientId(String clientId) {
            return clientId(Output.of(clientId));
        }

        /**
         * @param clientSecretSettingName The app setting name that contains the `client_secret` value used for GitHub Login.
         * 
         * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
         * 
         * @return builder
         * 
         */
        public Builder clientSecretSettingName(Output clientSecretSettingName) {
            $.clientSecretSettingName = clientSecretSettingName;
            return this;
        }

        /**
         * @param clientSecretSettingName The app setting name that contains the `client_secret` value used for GitHub Login.
         * 
         * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
         * 
         * @return builder
         * 
         */
        public Builder clientSecretSettingName(String clientSecretSettingName) {
            return clientSecretSettingName(Output.of(clientSecretSettingName));
        }

        /**
         * @param loginScopes The list of OAuth 2.0 scopes that should be requested as part of GitHub Login authentication.
         * 
         * @return builder
         * 
         */
        public Builder loginScopes(@Nullable Output> loginScopes) {
            $.loginScopes = loginScopes;
            return this;
        }

        /**
         * @param loginScopes The list of OAuth 2.0 scopes that should be requested as part of GitHub Login authentication.
         * 
         * @return builder
         * 
         */
        public Builder loginScopes(List loginScopes) {
            return loginScopes(Output.of(loginScopes));
        }

        /**
         * @param loginScopes The list of OAuth 2.0 scopes that should be requested as part of GitHub Login authentication.
         * 
         * @return builder
         * 
         */
        public Builder loginScopes(String... loginScopes) {
            return loginScopes(List.of(loginScopes));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy