com.pulumi.azure.appservice.outputs.LinuxFunctionAppAuthSettingsFacebook Maven / Gradle / Ivy
// *** 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 LinuxFunctionAppAuthSettingsFacebook {
/**
* @return The App ID of the Facebook app used for login.
*
*/
private String appId;
/**
* @return The App Secret of the Facebook app used for Facebook login. Cannot be specified with `app_secret_setting_name`.
*
*/
private @Nullable String appSecret;
/**
* @return The app setting name that contains the `app_secret` value used for Facebook login. Cannot be specified with `app_secret`.
*
*/
private @Nullable String appSecretSettingName;
/**
* @return Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook login authentication.
*
*/
private @Nullable List oauthScopes;
private LinuxFunctionAppAuthSettingsFacebook() {}
/**
* @return The App ID of the Facebook app used for login.
*
*/
public String appId() {
return this.appId;
}
/**
* @return The App Secret of the Facebook app used for Facebook login. Cannot be specified with `app_secret_setting_name`.
*
*/
public Optional appSecret() {
return Optional.ofNullable(this.appSecret);
}
/**
* @return The app setting name that contains the `app_secret` value used for Facebook login. Cannot be specified with `app_secret`.
*
*/
public Optional appSecretSettingName() {
return Optional.ofNullable(this.appSecretSettingName);
}
/**
* @return Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook login authentication.
*
*/
public List oauthScopes() {
return this.oauthScopes == null ? List.of() : this.oauthScopes;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LinuxFunctionAppAuthSettingsFacebook defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String appId;
private @Nullable String appSecret;
private @Nullable String appSecretSettingName;
private @Nullable List oauthScopes;
public Builder() {}
public Builder(LinuxFunctionAppAuthSettingsFacebook defaults) {
Objects.requireNonNull(defaults);
this.appId = defaults.appId;
this.appSecret = defaults.appSecret;
this.appSecretSettingName = defaults.appSecretSettingName;
this.oauthScopes = defaults.oauthScopes;
}
@CustomType.Setter
public Builder appId(String appId) {
if (appId == null) {
throw new MissingRequiredPropertyException("LinuxFunctionAppAuthSettingsFacebook", "appId");
}
this.appId = appId;
return this;
}
@CustomType.Setter
public Builder appSecret(@Nullable String appSecret) {
this.appSecret = appSecret;
return this;
}
@CustomType.Setter
public Builder appSecretSettingName(@Nullable String appSecretSettingName) {
this.appSecretSettingName = appSecretSettingName;
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 LinuxFunctionAppAuthSettingsFacebook build() {
final var _resultValue = new LinuxFunctionAppAuthSettingsFacebook();
_resultValue.appId = appId;
_resultValue.appSecret = appSecret;
_resultValue.appSecretSettingName = appSecretSettingName;
_resultValue.oauthScopes = oauthScopes;
return _resultValue;
}
}
}