// *** 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.identitystore.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 UserEmails {
    /**
     * @return When `true`, this is the primary email associated with the user.
     * 
     */
    private @Nullable Boolean primary;
    /**
     * @return The type of email.
     * 
     */
    private @Nullable String type;
    /**
     * @return The email address. This value must be unique across the identity store.
     * 
     */
    private @Nullable String value;

    private UserEmails() {}
    /**
     * @return When `true`, this is the primary email associated with the user.
     * 
     */
    public Optional<Boolean> primary() {
        return Optional.ofNullable(this.primary);
    }
    /**
     * @return The type of email.
     * 
     */
    public Optional<String> type() {
        return Optional.ofNullable(this.type);
    }
    /**
     * @return The email address. This value must be unique across the identity store.
     * 
     */
    public Optional<String> value() {
        return Optional.ofNullable(this.value);
    }

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

    public static Builder builder(UserEmails defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean primary;
        private @Nullable String type;
        private @Nullable String value;
        public Builder() {}
        public Builder(UserEmails defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.primary = defaults.primary;
    	      this.type = defaults.type;
    	      this.value = defaults.value;
        }

        @CustomType.Setter
        public Builder primary(@Nullable Boolean primary) {
            this.primary = primary;
            return this;
        }
        @CustomType.Setter
        public Builder type(@Nullable String type) {
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder value(@Nullable String value) {
            this.value = value;
            return this;
        }
        public UserEmails build() {
            final var o = new UserEmails();
            o.primary = primary;
            o.type = type;
            o.value = value;
            return o;
        }
    }
}
