// *** 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.aws.elasticsearch.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DomainCognitoOptions {
    /**
     * @return Whether Amazon Cognito authentication with Kibana is enabled or not.
     * 
     */
    private @Nullable Boolean enabled;
    /**
     * @return ID of the Cognito Identity Pool to use.
     * 
     */
    private String identityPoolId;
    /**
     * @return ARN of the IAM role that has the AmazonESCognitoAccess policy attached.
     * 
     */
    private String roleArn;
    /**
     * @return ID of the Cognito User Pool to use.
     * 
     */
    private String userPoolId;

    private DomainCognitoOptions() {}
    /**
     * @return Whether Amazon Cognito authentication with Kibana is enabled or not.
     * 
     */
    public Optional<Boolean> enabled() {
        return Optional.ofNullable(this.enabled);
    }
    /**
     * @return ID of the Cognito Identity Pool to use.
     * 
     */
    public String identityPoolId() {
        return this.identityPoolId;
    }
    /**
     * @return ARN of the IAM role that has the AmazonESCognitoAccess policy attached.
     * 
     */
    public String roleArn() {
        return this.roleArn;
    }
    /**
     * @return ID of the Cognito User Pool to use.
     * 
     */
    public String userPoolId() {
        return this.userPoolId;
    }

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

    public static Builder builder(DomainCognitoOptions defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean enabled;
        private String identityPoolId;
        private String roleArn;
        private String userPoolId;
        public Builder() {}
        public Builder(DomainCognitoOptions defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.enabled = defaults.enabled;
    	      this.identityPoolId = defaults.identityPoolId;
    	      this.roleArn = defaults.roleArn;
    	      this.userPoolId = defaults.userPoolId;
        }

        @CustomType.Setter
        public Builder enabled(@Nullable Boolean enabled) {
            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder identityPoolId(String identityPoolId) {
            this.identityPoolId = Objects.requireNonNull(identityPoolId);
            return this;
        }
        @CustomType.Setter
        public Builder roleArn(String roleArn) {
            this.roleArn = Objects.requireNonNull(roleArn);
            return this;
        }
        @CustomType.Setter
        public Builder userPoolId(String userPoolId) {
            this.userPoolId = Objects.requireNonNull(userPoolId);
            return this;
        }
        public DomainCognitoOptions build() {
            final var o = new DomainCognitoOptions();
            o.enabled = enabled;
            o.identityPoolId = identityPoolId;
            o.roleArn = roleArn;
            o.userPoolId = userPoolId;
            return o;
        }
    }
}
