// *** 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.inputs;

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


public final class UserEmailsArgs extends com.pulumi.resources.ResourceArgs {

    public static final UserEmailsArgs Empty = new UserEmailsArgs();

    /**
     * When `true`, this is the primary email associated with the user.
     * 
     */
    @Import(name="primary")
    private @Nullable Output<Boolean> primary;

    /**
     * @return When `true`, this is the primary email associated with the user.
     * 
     */
    public Optional<Output<Boolean>> primary() {
        return Optional.ofNullable(this.primary);
    }

    /**
     * The type of email.
     * 
     */
    @Import(name="type")
    private @Nullable Output<String> type;

    /**
     * @return The type of email.
     * 
     */
    public Optional<Output<String>> type() {
        return Optional.ofNullable(this.type);
    }

    /**
     * The email address. This value must be unique across the identity store.
     * 
     */
    @Import(name="value")
    private @Nullable Output<String> value;

    /**
     * @return The email address. This value must be unique across the identity store.
     * 
     */
    public Optional<Output<String>> value() {
        return Optional.ofNullable(this.value);
    }

    private UserEmailsArgs() {}

    private UserEmailsArgs(UserEmailsArgs $) {
        this.primary = $.primary;
        this.type = $.type;
        this.value = $.value;
    }

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

    public static final class Builder {
        private UserEmailsArgs $;

        public Builder() {
            $ = new UserEmailsArgs();
        }

        public Builder(UserEmailsArgs defaults) {
            $ = new UserEmailsArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param primary When `true`, this is the primary email associated with the user.
         * 
         * @return builder
         * 
         */
        public Builder primary(@Nullable Output<Boolean> primary) {
            $.primary = primary;
            return this;
        }

        /**
         * @param primary When `true`, this is the primary email associated with the user.
         * 
         * @return builder
         * 
         */
        public Builder primary(Boolean primary) {
            return primary(Output.of(primary));
        }

        /**
         * @param type The type of email.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output<String> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of email.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param value The email address. This value must be unique across the identity store.
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output<String> value) {
            $.value = value;
            return this;
        }

        /**
         * @param value The email address. This value must be unique across the identity store.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public UserEmailsArgs build() {
            return $;
        }
    }

}
