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

com.pulumi.azure.appservice.outputs.FunctionAppSlotAuthSettingsActiveDirectory 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.outputs;

import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class FunctionAppSlotAuthSettingsActiveDirectory {
    /**
     * @return Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
     * 
     */
    private @Nullable List allowedAudiences;
    /**
     * @return The Client ID of this relying party application. Enables OpenIDConnection authentication with Azure Active Directory.
     * 
     */
    private String clientId;
    /**
     * @return The Client Secret of this relying party application. If no secret is provided, implicit flow will be used.
     * 
     */
    private @Nullable String clientSecret;

    private FunctionAppSlotAuthSettingsActiveDirectory() {}
    /**
     * @return Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
     * 
     */
    public List allowedAudiences() {
        return this.allowedAudiences == null ? List.of() : this.allowedAudiences;
    }
    /**
     * @return The Client ID of this relying party application. Enables OpenIDConnection authentication with Azure Active Directory.
     * 
     */
    public String clientId() {
        return this.clientId;
    }
    /**
     * @return The Client Secret of this relying party application. If no secret is provided, implicit flow will be used.
     * 
     */
    public Optional clientSecret() {
        return Optional.ofNullable(this.clientSecret);
    }

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

    public static Builder builder(FunctionAppSlotAuthSettingsActiveDirectory defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List allowedAudiences;
        private String clientId;
        private @Nullable String clientSecret;
        public Builder() {}
        public Builder(FunctionAppSlotAuthSettingsActiveDirectory defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allowedAudiences = defaults.allowedAudiences;
    	      this.clientId = defaults.clientId;
    	      this.clientSecret = defaults.clientSecret;
        }

        @CustomType.Setter
        public Builder allowedAudiences(@Nullable List allowedAudiences) {

            this.allowedAudiences = allowedAudiences;
            return this;
        }
        public Builder allowedAudiences(String... allowedAudiences) {
            return allowedAudiences(List.of(allowedAudiences));
        }
        @CustomType.Setter
        public Builder clientId(String clientId) {
            if (clientId == null) {
              throw new MissingRequiredPropertyException("FunctionAppSlotAuthSettingsActiveDirectory", "clientId");
            }
            this.clientId = clientId;
            return this;
        }
        @CustomType.Setter
        public Builder clientSecret(@Nullable String clientSecret) {

            this.clientSecret = clientSecret;
            return this;
        }
        public FunctionAppSlotAuthSettingsActiveDirectory build() {
            final var _resultValue = new FunctionAppSlotAuthSettingsActiveDirectory();
            _resultValue.allowedAudiences = allowedAudiences;
            _resultValue.clientId = clientId;
            _resultValue.clientSecret = clientSecret;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy