com.pulumi.azure.appservice.outputs.WindowsWebAppAuthSettingsActiveDirectory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
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.
// *** 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 WindowsWebAppAuthSettingsActiveDirectory {
/**
* @return Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
*
* > **Note:** The `client_id` value is always considered an allowed audience.
*
*/
private @Nullable List allowedAudiences;
/**
* @return The ID of the Client to use to authenticate with Azure Active Directory.
*
*/
private String clientId;
/**
* @return The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`.
*
*/
private @Nullable String clientSecret;
/**
* @return The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`.
*
*/
private @Nullable String clientSecretSettingName;
private WindowsWebAppAuthSettingsActiveDirectory() {}
/**
* @return Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
*
* > **Note:** The `client_id` value is always considered an allowed audience.
*
*/
public List allowedAudiences() {
return this.allowedAudiences == null ? List.of() : this.allowedAudiences;
}
/**
* @return The ID of the Client to use to authenticate with Azure Active Directory.
*
*/
public String clientId() {
return this.clientId;
}
/**
* @return The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`.
*
*/
public Optional clientSecret() {
return Optional.ofNullable(this.clientSecret);
}
/**
* @return The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`.
*
*/
public Optional clientSecretSettingName() {
return Optional.ofNullable(this.clientSecretSettingName);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WindowsWebAppAuthSettingsActiveDirectory defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List allowedAudiences;
private String clientId;
private @Nullable String clientSecret;
private @Nullable String clientSecretSettingName;
public Builder() {}
public Builder(WindowsWebAppAuthSettingsActiveDirectory defaults) {
Objects.requireNonNull(defaults);
this.allowedAudiences = defaults.allowedAudiences;
this.clientId = defaults.clientId;
this.clientSecret = defaults.clientSecret;
this.clientSecretSettingName = defaults.clientSecretSettingName;
}
@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("WindowsWebAppAuthSettingsActiveDirectory", "clientId");
}
this.clientId = clientId;
return this;
}
@CustomType.Setter
public Builder clientSecret(@Nullable String clientSecret) {
this.clientSecret = clientSecret;
return this;
}
@CustomType.Setter
public Builder clientSecretSettingName(@Nullable String clientSecretSettingName) {
this.clientSecretSettingName = clientSecretSettingName;
return this;
}
public WindowsWebAppAuthSettingsActiveDirectory build() {
final var _resultValue = new WindowsWebAppAuthSettingsActiveDirectory();
_resultValue.allowedAudiences = allowedAudiences;
_resultValue.clientId = clientId;
_resultValue.clientSecret = clientSecret;
_resultValue.clientSecretSettingName = clientSecretSettingName;
return _resultValue;
}
}
}