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

com.pulumi.azurenative.scheduler.inputs.OAuthAuthenticationArgs Maven / Gradle / Ivy

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

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


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

    public static final OAuthAuthenticationArgs Empty = new OAuthAuthenticationArgs();

    /**
     * Gets or sets the audience.
     * 
     */
    @Import(name="audience")
    private @Nullable Output audience;

    /**
     * @return Gets or sets the audience.
     * 
     */
    public Optional> audience() {
        return Optional.ofNullable(this.audience);
    }

    /**
     * Gets or sets the client identifier.
     * 
     */
    @Import(name="clientId")
    private @Nullable Output clientId;

    /**
     * @return Gets or sets the client identifier.
     * 
     */
    public Optional> clientId() {
        return Optional.ofNullable(this.clientId);
    }

    /**
     * Gets or sets the secret, return value will always be empty.
     * 
     */
    @Import(name="secret")
    private @Nullable Output secret;

    /**
     * @return Gets or sets the secret, return value will always be empty.
     * 
     */
    public Optional> secret() {
        return Optional.ofNullable(this.secret);
    }

    /**
     * Gets or sets the tenant.
     * 
     */
    @Import(name="tenant")
    private @Nullable Output tenant;

    /**
     * @return Gets or sets the tenant.
     * 
     */
    public Optional> tenant() {
        return Optional.ofNullable(this.tenant);
    }

    /**
     * Gets or sets the HTTP authentication type.
     * Expected value is 'ActiveDirectoryOAuth'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Gets or sets the HTTP authentication type.
     * Expected value is 'ActiveDirectoryOAuth'.
     * 
     */
    public Output type() {
        return this.type;
    }

    private OAuthAuthenticationArgs() {}

    private OAuthAuthenticationArgs(OAuthAuthenticationArgs $) {
        this.audience = $.audience;
        this.clientId = $.clientId;
        this.secret = $.secret;
        this.tenant = $.tenant;
        this.type = $.type;
    }

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

    public static final class Builder {
        private OAuthAuthenticationArgs $;

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

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

        /**
         * @param audience Gets or sets the audience.
         * 
         * @return builder
         * 
         */
        public Builder audience(@Nullable Output audience) {
            $.audience = audience;
            return this;
        }

        /**
         * @param audience Gets or sets the audience.
         * 
         * @return builder
         * 
         */
        public Builder audience(String audience) {
            return audience(Output.of(audience));
        }

        /**
         * @param clientId Gets or sets the client identifier.
         * 
         * @return builder
         * 
         */
        public Builder clientId(@Nullable Output clientId) {
            $.clientId = clientId;
            return this;
        }

        /**
         * @param clientId Gets or sets the client identifier.
         * 
         * @return builder
         * 
         */
        public Builder clientId(String clientId) {
            return clientId(Output.of(clientId));
        }

        /**
         * @param secret Gets or sets the secret, return value will always be empty.
         * 
         * @return builder
         * 
         */
        public Builder secret(@Nullable Output secret) {
            $.secret = secret;
            return this;
        }

        /**
         * @param secret Gets or sets the secret, return value will always be empty.
         * 
         * @return builder
         * 
         */
        public Builder secret(String secret) {
            return secret(Output.of(secret));
        }

        /**
         * @param tenant Gets or sets the tenant.
         * 
         * @return builder
         * 
         */
        public Builder tenant(@Nullable Output tenant) {
            $.tenant = tenant;
            return this;
        }

        /**
         * @param tenant Gets or sets the tenant.
         * 
         * @return builder
         * 
         */
        public Builder tenant(String tenant) {
            return tenant(Output.of(tenant));
        }

        /**
         * @param type Gets or sets the HTTP authentication type.
         * Expected value is 'ActiveDirectoryOAuth'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Gets or sets the HTTP authentication type.
         * Expected value is 'ActiveDirectoryOAuth'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public OAuthAuthenticationArgs build() {
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy