com.pulumi.azure.appservice.outputs.FunctionAppAuthSettingsMicrosoft 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 javax.annotation.Nullable;
@CustomType
public final class FunctionAppAuthSettingsMicrosoft {
/**
* @return The OAuth 2.0 client ID that was created for the app used for authentication.
*
*/
private String clientId;
/**
* @return The OAuth 2.0 client secret that was created for the app used for authentication.
*
*/
private String clientSecret;
/**
* @return The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. <https://msdn.microsoft.com/en-us/library/dn631845.aspx>
*
*/
private @Nullable List oauthScopes;
private FunctionAppAuthSettingsMicrosoft() {}
/**
* @return The OAuth 2.0 client ID that was created for the app used for authentication.
*
*/
public String clientId() {
return this.clientId;
}
/**
* @return The OAuth 2.0 client secret that was created for the app used for authentication.
*
*/
public String clientSecret() {
return this.clientSecret;
}
/**
* @return The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. <https://msdn.microsoft.com/en-us/library/dn631845.aspx>
*
*/
public List oauthScopes() {
return this.oauthScopes == null ? List.of() : this.oauthScopes;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FunctionAppAuthSettingsMicrosoft defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String clientId;
private String clientSecret;
private @Nullable List oauthScopes;
public Builder() {}
public Builder(FunctionAppAuthSettingsMicrosoft defaults) {
Objects.requireNonNull(defaults);
this.clientId = defaults.clientId;
this.clientSecret = defaults.clientSecret;
this.oauthScopes = defaults.oauthScopes;
}
@CustomType.Setter
public Builder clientId(String clientId) {
if (clientId == null) {
throw new MissingRequiredPropertyException("FunctionAppAuthSettingsMicrosoft", "clientId");
}
this.clientId = clientId;
return this;
}
@CustomType.Setter
public Builder clientSecret(String clientSecret) {
if (clientSecret == null) {
throw new MissingRequiredPropertyException("FunctionAppAuthSettingsMicrosoft", "clientSecret");
}
this.clientSecret = clientSecret;
return this;
}
@CustomType.Setter
public Builder oauthScopes(@Nullable List oauthScopes) {
this.oauthScopes = oauthScopes;
return this;
}
public Builder oauthScopes(String... oauthScopes) {
return oauthScopes(List.of(oauthScopes));
}
public FunctionAppAuthSettingsMicrosoft build() {
final var _resultValue = new FunctionAppAuthSettingsMicrosoft();
_resultValue.clientId = clientId;
_resultValue.clientSecret = clientSecret;
_resultValue.oauthScopes = oauthScopes;
return _resultValue;
}
}
}