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

com.pulumi.azurenative.apimanagement.outputs.AuthorizationProviderOAuth2SettingsResponse 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.azurenative.apimanagement.outputs;

import com.pulumi.azurenative.apimanagement.outputs.AuthorizationProviderOAuth2GrantTypesResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AuthorizationProviderOAuth2SettingsResponse {
    /**
     * @return OAuth2 settings
     * 
     */
    private @Nullable AuthorizationProviderOAuth2GrantTypesResponse grantTypes;
    /**
     * @return Redirect URL to be set in the OAuth application.
     * 
     */
    private @Nullable String redirectUrl;

    private AuthorizationProviderOAuth2SettingsResponse() {}
    /**
     * @return OAuth2 settings
     * 
     */
    public Optional grantTypes() {
        return Optional.ofNullable(this.grantTypes);
    }
    /**
     * @return Redirect URL to be set in the OAuth application.
     * 
     */
    public Optional redirectUrl() {
        return Optional.ofNullable(this.redirectUrl);
    }

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

    public static Builder builder(AuthorizationProviderOAuth2SettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable AuthorizationProviderOAuth2GrantTypesResponse grantTypes;
        private @Nullable String redirectUrl;
        public Builder() {}
        public Builder(AuthorizationProviderOAuth2SettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.grantTypes = defaults.grantTypes;
    	      this.redirectUrl = defaults.redirectUrl;
        }

        @CustomType.Setter
        public Builder grantTypes(@Nullable AuthorizationProviderOAuth2GrantTypesResponse grantTypes) {

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

            this.redirectUrl = redirectUrl;
            return this;
        }
        public AuthorizationProviderOAuth2SettingsResponse build() {
            final var _resultValue = new AuthorizationProviderOAuth2SettingsResponse();
            _resultValue.grantTypes = grantTypes;
            _resultValue.redirectUrl = redirectUrl;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy