All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.web.outputs.ApiOAuthSettingsResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** 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.azurenative.web.outputs;

import com.pulumi.azurenative.web.outputs.ApiOAuthSettingsParameterResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ApiOAuthSettingsResponse {
    /**
     * @return Resource provider client id
     * 
     */
    private @Nullable String clientId;
    /**
     * @return Client Secret needed for OAuth
     * 
     */
    private @Nullable String clientSecret;
    /**
     * @return OAuth parameters key is the name of parameter
     * 
     */
    private @Nullable Map customParameters;
    /**
     * @return Identity provider
     * 
     */
    private @Nullable String identityProvider;
    /**
     * @return Read only properties for this oauth setting.
     * 
     */
    private @Nullable Object properties;
    /**
     * @return Url
     * 
     */
    private @Nullable String redirectUrl;
    /**
     * @return OAuth scopes
     * 
     */
    private @Nullable List scopes;

    private ApiOAuthSettingsResponse() {}
    /**
     * @return Resource provider client id
     * 
     */
    public Optional clientId() {
        return Optional.ofNullable(this.clientId);
    }
    /**
     * @return Client Secret needed for OAuth
     * 
     */
    public Optional clientSecret() {
        return Optional.ofNullable(this.clientSecret);
    }
    /**
     * @return OAuth parameters key is the name of parameter
     * 
     */
    public Map customParameters() {
        return this.customParameters == null ? Map.of() : this.customParameters;
    }
    /**
     * @return Identity provider
     * 
     */
    public Optional identityProvider() {
        return Optional.ofNullable(this.identityProvider);
    }
    /**
     * @return Read only properties for this oauth setting.
     * 
     */
    public Optional properties() {
        return Optional.ofNullable(this.properties);
    }
    /**
     * @return Url
     * 
     */
    public Optional redirectUrl() {
        return Optional.ofNullable(this.redirectUrl);
    }
    /**
     * @return OAuth scopes
     * 
     */
    public List scopes() {
        return this.scopes == null ? List.of() : this.scopes;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(ApiOAuthSettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String clientId;
        private @Nullable String clientSecret;
        private @Nullable Map customParameters;
        private @Nullable String identityProvider;
        private @Nullable Object properties;
        private @Nullable String redirectUrl;
        private @Nullable List scopes;
        public Builder() {}
        public Builder(ApiOAuthSettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.clientId = defaults.clientId;
    	      this.clientSecret = defaults.clientSecret;
    	      this.customParameters = defaults.customParameters;
    	      this.identityProvider = defaults.identityProvider;
    	      this.properties = defaults.properties;
    	      this.redirectUrl = defaults.redirectUrl;
    	      this.scopes = defaults.scopes;
        }

        @CustomType.Setter
        public Builder clientId(@Nullable String clientId) {

            this.clientId = clientId;
            return this;
        }
        @CustomType.Setter
        public Builder clientSecret(@Nullable String clientSecret) {

            this.clientSecret = clientSecret;
            return this;
        }
        @CustomType.Setter
        public Builder customParameters(@Nullable Map customParameters) {

            this.customParameters = customParameters;
            return this;
        }
        @CustomType.Setter
        public Builder identityProvider(@Nullable String identityProvider) {

            this.identityProvider = identityProvider;
            return this;
        }
        @CustomType.Setter
        public Builder properties(@Nullable Object properties) {

            this.properties = properties;
            return this;
        }
        @CustomType.Setter
        public Builder redirectUrl(@Nullable String redirectUrl) {

            this.redirectUrl = redirectUrl;
            return this;
        }
        @CustomType.Setter
        public Builder scopes(@Nullable List scopes) {

            this.scopes = scopes;
            return this;
        }
        public Builder scopes(String... scopes) {
            return scopes(List.of(scopes));
        }
        public ApiOAuthSettingsResponse build() {
            final var _resultValue = new ApiOAuthSettingsResponse();
            _resultValue.clientId = clientId;
            _resultValue.clientSecret = clientSecret;
            _resultValue.customParameters = customParameters;
            _resultValue.identityProvider = identityProvider;
            _resultValue.properties = properties;
            _resultValue.redirectUrl = redirectUrl;
            _resultValue.scopes = scopes;
            return _resultValue;
        }
    }
}