com.pulumi.azure.appservice.outputs.WindowsFunctionAppAuthSettingsV2GithubV2 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 WindowsFunctionAppAuthSettingsV2GithubV2 {
/**
* @return The ID of the GitHub app used for login..
*
*/
private String clientId;
/**
* @return The app setting name that contains the `client_secret` value used for GitHub Login.
*
* !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
*
*/
private String clientSecretSettingName;
/**
* @return The list of OAuth 2.0 scopes that should be requested as part of GitHub Login authentication.
*
*/
private @Nullable List loginScopes;
private WindowsFunctionAppAuthSettingsV2GithubV2() {}
/**
* @return The ID of the GitHub app used for login..
*
*/
public String clientId() {
return this.clientId;
}
/**
* @return The app setting name that contains the `client_secret` value used for GitHub Login.
*
* !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
*
*/
public String clientSecretSettingName() {
return this.clientSecretSettingName;
}
/**
* @return The list of OAuth 2.0 scopes that should be requested as part of GitHub Login authentication.
*
*/
public List loginScopes() {
return this.loginScopes == null ? List.of() : this.loginScopes;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WindowsFunctionAppAuthSettingsV2GithubV2 defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String clientId;
private String clientSecretSettingName;
private @Nullable List loginScopes;
public Builder() {}
public Builder(WindowsFunctionAppAuthSettingsV2GithubV2 defaults) {
Objects.requireNonNull(defaults);
this.clientId = defaults.clientId;
this.clientSecretSettingName = defaults.clientSecretSettingName;
this.loginScopes = defaults.loginScopes;
}
@CustomType.Setter
public Builder clientId(String clientId) {
if (clientId == null) {
throw new MissingRequiredPropertyException("WindowsFunctionAppAuthSettingsV2GithubV2", "clientId");
}
this.clientId = clientId;
return this;
}
@CustomType.Setter
public Builder clientSecretSettingName(String clientSecretSettingName) {
if (clientSecretSettingName == null) {
throw new MissingRequiredPropertyException("WindowsFunctionAppAuthSettingsV2GithubV2", "clientSecretSettingName");
}
this.clientSecretSettingName = clientSecretSettingName;
return this;
}
@CustomType.Setter
public Builder loginScopes(@Nullable List loginScopes) {
this.loginScopes = loginScopes;
return this;
}
public Builder loginScopes(String... loginScopes) {
return loginScopes(List.of(loginScopes));
}
public WindowsFunctionAppAuthSettingsV2GithubV2 build() {
final var _resultValue = new WindowsFunctionAppAuthSettingsV2GithubV2();
_resultValue.clientId = clientId;
_resultValue.clientSecretSettingName = clientSecretSettingName;
_resultValue.loginScopes = loginScopes;
return _resultValue;
}
}
}