com.pulumi.azure.appservice.outputs.GetWindowsWebAppAuthSettingGithub 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;
@CustomType
public final class GetWindowsWebAppAuthSettingGithub {
/**
* @return The OAuth 2.0 client ID used by the app for authentication.
*
*/
private String clientId;
/**
* @return The OAuth 2.0 client secret used by the app for authentication.
*
*/
private String clientSecret;
/**
* @return The app setting name containing the OAuth 2.0 client secret used by the app for authentication.
*
*/
private String clientSecretSettingName;
/**
* @return A list of OAuth 2.0 scopes requested as part of Microsoft Account authentication.
*
*/
private List oauthScopes;
private GetWindowsWebAppAuthSettingGithub() {}
/**
* @return The OAuth 2.0 client ID used by the app for authentication.
*
*/
public String clientId() {
return this.clientId;
}
/**
* @return The OAuth 2.0 client secret used by the app for authentication.
*
*/
public String clientSecret() {
return this.clientSecret;
}
/**
* @return The app setting name containing the OAuth 2.0 client secret used by the app for authentication.
*
*/
public String clientSecretSettingName() {
return this.clientSecretSettingName;
}
/**
* @return A list of OAuth 2.0 scopes requested as part of Microsoft Account authentication.
*
*/
public List oauthScopes() {
return this.oauthScopes;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetWindowsWebAppAuthSettingGithub defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String clientId;
private String clientSecret;
private String clientSecretSettingName;
private List oauthScopes;
public Builder() {}
public Builder(GetWindowsWebAppAuthSettingGithub defaults) {
Objects.requireNonNull(defaults);
this.clientId = defaults.clientId;
this.clientSecret = defaults.clientSecret;
this.clientSecretSettingName = defaults.clientSecretSettingName;
this.oauthScopes = defaults.oauthScopes;
}
@CustomType.Setter
public Builder clientId(String clientId) {
if (clientId == null) {
throw new MissingRequiredPropertyException("GetWindowsWebAppAuthSettingGithub", "clientId");
}
this.clientId = clientId;
return this;
}
@CustomType.Setter
public Builder clientSecret(String clientSecret) {
if (clientSecret == null) {
throw new MissingRequiredPropertyException("GetWindowsWebAppAuthSettingGithub", "clientSecret");
}
this.clientSecret = clientSecret;
return this;
}
@CustomType.Setter
public Builder clientSecretSettingName(String clientSecretSettingName) {
if (clientSecretSettingName == null) {
throw new MissingRequiredPropertyException("GetWindowsWebAppAuthSettingGithub", "clientSecretSettingName");
}
this.clientSecretSettingName = clientSecretSettingName;
return this;
}
@CustomType.Setter
public Builder oauthScopes(List oauthScopes) {
if (oauthScopes == null) {
throw new MissingRequiredPropertyException("GetWindowsWebAppAuthSettingGithub", "oauthScopes");
}
this.oauthScopes = oauthScopes;
return this;
}
public Builder oauthScopes(String... oauthScopes) {
return oauthScopes(List.of(oauthScopes));
}
public GetWindowsWebAppAuthSettingGithub build() {
final var _resultValue = new GetWindowsWebAppAuthSettingGithub();
_resultValue.clientId = clientId;
_resultValue.clientSecret = clientSecret;
_resultValue.clientSecretSettingName = clientSecretSettingName;
_resultValue.oauthScopes = oauthScopes;
return _resultValue;
}
}
}