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

com.pulumi.azurenative.awsconnector.outputs.AdditionalAuthenticationProviderResponse 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.awsconnector.outputs;

import com.pulumi.azurenative.awsconnector.outputs.AuthenticationTypeEnumValueResponse;
import com.pulumi.azurenative.awsconnector.outputs.CognitoUserPoolConfigResponse;
import com.pulumi.azurenative.awsconnector.outputs.LambdaAuthorizerConfigResponse;
import com.pulumi.azurenative.awsconnector.outputs.OpenIDConnectConfigResponse;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AdditionalAuthenticationProviderResponse {
    /**
     * @return <p>The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.</p>
     * 
     */
    private @Nullable AuthenticationTypeEnumValueResponse authenticationType;
    /**
     * @return <p>Configuration for Lambda function authorization.</p>
     * 
     */
    private @Nullable LambdaAuthorizerConfigResponse lambdaAuthorizerConfig;
    /**
     * @return <p>The OIDC configuration.</p>
     * 
     */
    private @Nullable OpenIDConnectConfigResponse openIDConnectConfig;
    /**
     * @return <p>The Amazon Cognito user pool configuration.</p>
     * 
     */
    private @Nullable CognitoUserPoolConfigResponse userPoolConfig;

    private AdditionalAuthenticationProviderResponse() {}
    /**
     * @return <p>The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.</p>
     * 
     */
    public Optional authenticationType() {
        return Optional.ofNullable(this.authenticationType);
    }
    /**
     * @return <p>Configuration for Lambda function authorization.</p>
     * 
     */
    public Optional lambdaAuthorizerConfig() {
        return Optional.ofNullable(this.lambdaAuthorizerConfig);
    }
    /**
     * @return <p>The OIDC configuration.</p>
     * 
     */
    public Optional openIDConnectConfig() {
        return Optional.ofNullable(this.openIDConnectConfig);
    }
    /**
     * @return <p>The Amazon Cognito user pool configuration.</p>
     * 
     */
    public Optional userPoolConfig() {
        return Optional.ofNullable(this.userPoolConfig);
    }

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

    public static Builder builder(AdditionalAuthenticationProviderResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable AuthenticationTypeEnumValueResponse authenticationType;
        private @Nullable LambdaAuthorizerConfigResponse lambdaAuthorizerConfig;
        private @Nullable OpenIDConnectConfigResponse openIDConnectConfig;
        private @Nullable CognitoUserPoolConfigResponse userPoolConfig;
        public Builder() {}
        public Builder(AdditionalAuthenticationProviderResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.authenticationType = defaults.authenticationType;
    	      this.lambdaAuthorizerConfig = defaults.lambdaAuthorizerConfig;
    	      this.openIDConnectConfig = defaults.openIDConnectConfig;
    	      this.userPoolConfig = defaults.userPoolConfig;
        }

        @CustomType.Setter
        public Builder authenticationType(@Nullable AuthenticationTypeEnumValueResponse authenticationType) {

            this.authenticationType = authenticationType;
            return this;
        }
        @CustomType.Setter
        public Builder lambdaAuthorizerConfig(@Nullable LambdaAuthorizerConfigResponse lambdaAuthorizerConfig) {

            this.lambdaAuthorizerConfig = lambdaAuthorizerConfig;
            return this;
        }
        @CustomType.Setter
        public Builder openIDConnectConfig(@Nullable OpenIDConnectConfigResponse openIDConnectConfig) {

            this.openIDConnectConfig = openIDConnectConfig;
            return this;
        }
        @CustomType.Setter
        public Builder userPoolConfig(@Nullable CognitoUserPoolConfigResponse userPoolConfig) {

            this.userPoolConfig = userPoolConfig;
            return this;
        }
        public AdditionalAuthenticationProviderResponse build() {
            final var _resultValue = new AdditionalAuthenticationProviderResponse();
            _resultValue.authenticationType = authenticationType;
            _resultValue.lambdaAuthorizerConfig = lambdaAuthorizerConfig;
            _resultValue.openIDConnectConfig = openIDConnectConfig;
            _resultValue.userPoolConfig = userPoolConfig;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy