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

com.pulumi.aws.elasticache.inputs.GetUserPlainArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The 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.aws.elasticache.inputs;

import com.pulumi.aws.elasticache.inputs.GetUserAuthenticationMode;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetUserPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetUserPlainArgs Empty = new GetUserPlainArgs();

    /**
     * String for what access a user possesses within the associated ElastiCache replication groups or clusters.
     * 
     */
    @Import(name="accessString")
    private @Nullable String accessString;

    /**
     * @return String for what access a user possesses within the associated ElastiCache replication groups or clusters.
     * 
     */
    public Optional accessString() {
        return Optional.ofNullable(this.accessString);
    }

    @Import(name="authenticationModes")
    private @Nullable List authenticationModes;

    public Optional> authenticationModes() {
        return Optional.ofNullable(this.authenticationModes);
    }

    @Import(name="engine")
    private @Nullable String engine;

    public Optional engine() {
        return Optional.ofNullable(this.engine);
    }

    @Import(name="noPasswordRequired")
    private @Nullable Boolean noPasswordRequired;

    public Optional noPasswordRequired() {
        return Optional.ofNullable(this.noPasswordRequired);
    }

    @Import(name="passwords")
    private @Nullable List passwords;

    public Optional> passwords() {
        return Optional.ofNullable(this.passwords);
    }

    /**
     * Identifier for the user.
     * 
     */
    @Import(name="userId", required=true)
    private String userId;

    /**
     * @return Identifier for the user.
     * 
     */
    public String userId() {
        return this.userId;
    }

    /**
     * User name of the user.
     * 
     */
    @Import(name="userName")
    private @Nullable String userName;

    /**
     * @return User name of the user.
     * 
     */
    public Optional userName() {
        return Optional.ofNullable(this.userName);
    }

    private GetUserPlainArgs() {}

    private GetUserPlainArgs(GetUserPlainArgs $) {
        this.accessString = $.accessString;
        this.authenticationModes = $.authenticationModes;
        this.engine = $.engine;
        this.noPasswordRequired = $.noPasswordRequired;
        this.passwords = $.passwords;
        this.userId = $.userId;
        this.userName = $.userName;
    }

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

    public static final class Builder {
        private GetUserPlainArgs $;

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

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

        /**
         * @param accessString String for what access a user possesses within the associated ElastiCache replication groups or clusters.
         * 
         * @return builder
         * 
         */
        public Builder accessString(@Nullable String accessString) {
            $.accessString = accessString;
            return this;
        }

        public Builder authenticationModes(@Nullable List authenticationModes) {
            $.authenticationModes = authenticationModes;
            return this;
        }

        public Builder authenticationModes(GetUserAuthenticationMode... authenticationModes) {
            return authenticationModes(List.of(authenticationModes));
        }

        public Builder engine(@Nullable String engine) {
            $.engine = engine;
            return this;
        }

        public Builder noPasswordRequired(@Nullable Boolean noPasswordRequired) {
            $.noPasswordRequired = noPasswordRequired;
            return this;
        }

        public Builder passwords(@Nullable List passwords) {
            $.passwords = passwords;
            return this;
        }

        public Builder passwords(String... passwords) {
            return passwords(List.of(passwords));
        }

        /**
         * @param userId Identifier for the user.
         * 
         * @return builder
         * 
         */
        public Builder userId(String userId) {
            $.userId = userId;
            return this;
        }

        /**
         * @param userName User name of the user.
         * 
         * @return builder
         * 
         */
        public Builder userName(@Nullable String userName) {
            $.userName = userName;
            return this;
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy