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

com.pulumi.aws.memorydb.inputs.UserAuthenticationModeArgs 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.aws.memorydb.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final UserAuthenticationModeArgs Empty = new UserAuthenticationModeArgs();

    /**
     * Number of passwords belonging to the user if `type` is set to `password`.
     * 
     */
    @Import(name="passwordCount")
    private @Nullable Output passwordCount;

    /**
     * @return Number of passwords belonging to the user if `type` is set to `password`.
     * 
     */
    public Optional> passwordCount() {
        return Optional.ofNullable(this.passwordCount);
    }

    /**
     * Set of passwords used for authentication if `type` is set to `password`. You can create up to two passwords for each user.
     * 
     */
    @Import(name="passwords")
    private @Nullable Output> passwords;

    /**
     * @return Set of passwords used for authentication if `type` is set to `password`. You can create up to two passwords for each user.
     * 
     */
    public Optional>> passwords() {
        return Optional.ofNullable(this.passwords);
    }

    /**
     * Specifies the authentication type. Valid values are: `password` or `iam`.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Specifies the authentication type. Valid values are: `password` or `iam`.
     * 
     */
    public Output type() {
        return this.type;
    }

    private UserAuthenticationModeArgs() {}

    private UserAuthenticationModeArgs(UserAuthenticationModeArgs $) {
        this.passwordCount = $.passwordCount;
        this.passwords = $.passwords;
        this.type = $.type;
    }

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

    public static final class Builder {
        private UserAuthenticationModeArgs $;

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

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

        /**
         * @param passwordCount Number of passwords belonging to the user if `type` is set to `password`.
         * 
         * @return builder
         * 
         */
        public Builder passwordCount(@Nullable Output passwordCount) {
            $.passwordCount = passwordCount;
            return this;
        }

        /**
         * @param passwordCount Number of passwords belonging to the user if `type` is set to `password`.
         * 
         * @return builder
         * 
         */
        public Builder passwordCount(Integer passwordCount) {
            return passwordCount(Output.of(passwordCount));
        }

        /**
         * @param passwords Set of passwords used for authentication if `type` is set to `password`. You can create up to two passwords for each user.
         * 
         * @return builder
         * 
         */
        public Builder passwords(@Nullable Output> passwords) {
            $.passwords = passwords;
            return this;
        }

        /**
         * @param passwords Set of passwords used for authentication if `type` is set to `password`. You can create up to two passwords for each user.
         * 
         * @return builder
         * 
         */
        public Builder passwords(List passwords) {
            return passwords(Output.of(passwords));
        }

        /**
         * @param passwords Set of passwords used for authentication if `type` is set to `password`. You can create up to two passwords for each user.
         * 
         * @return builder
         * 
         */
        public Builder passwords(String... passwords) {
            return passwords(List.of(passwords));
        }

        /**
         * @param type Specifies the authentication type. Valid values are: `password` or `iam`.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Specifies the authentication type. Valid values are: `password` or `iam`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public UserAuthenticationModeArgs build() {
            if ($.type == null) {
                throw new MissingRequiredPropertyException("UserAuthenticationModeArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy