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

com.pulumi.azurenative.devhub.inputs.GetGitHubOAuthArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.devhub.inputs;

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 GetGitHubOAuthArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetGitHubOAuthArgs Empty = new GetGitHubOAuthArgs();

    /**
     * The name of Azure region.
     * 
     */
    @Import(name="location", required=true)
    private Output location;

    /**
     * @return The name of Azure region.
     * 
     */
    public Output location() {
        return this.location;
    }

    /**
     * The URL the client will redirect to on successful authentication. If empty, no redirect will occur.
     * 
     */
    @Import(name="redirectUrl")
    private @Nullable Output redirectUrl;

    /**
     * @return The URL the client will redirect to on successful authentication. If empty, no redirect will occur.
     * 
     */
    public Optional> redirectUrl() {
        return Optional.ofNullable(this.redirectUrl);
    }

    private GetGitHubOAuthArgs() {}

    private GetGitHubOAuthArgs(GetGitHubOAuthArgs $) {
        this.location = $.location;
        this.redirectUrl = $.redirectUrl;
    }

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

    public static final class Builder {
        private GetGitHubOAuthArgs $;

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

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

        /**
         * @param location The name of Azure region.
         * 
         * @return builder
         * 
         */
        public Builder location(Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The name of Azure region.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param redirectUrl The URL the client will redirect to on successful authentication. If empty, no redirect will occur.
         * 
         * @return builder
         * 
         */
        public Builder redirectUrl(@Nullable Output redirectUrl) {
            $.redirectUrl = redirectUrl;
            return this;
        }

        /**
         * @param redirectUrl The URL the client will redirect to on successful authentication. If empty, no redirect will occur.
         * 
         * @return builder
         * 
         */
        public Builder redirectUrl(String redirectUrl) {
            return redirectUrl(Output.of(redirectUrl));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy