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

com.pulumi.aws.memorydb.inputs.UserState 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.aws.memorydb.inputs.UserAuthenticationModeArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final UserState Empty = new UserState();

    /**
     * Access permissions string used for this user.
     * 
     */
    @Import(name="accessString")
    private @Nullable Output accessString;

    /**
     * @return Access permissions string used for this user.
     * 
     */
    public Optional> accessString() {
        return Optional.ofNullable(this.accessString);
    }

    /**
     * ARN of the user.
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return ARN of the user.
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

    /**
     * Denotes the user's authentication properties. Detailed below.
     * 
     */
    @Import(name="authenticationMode")
    private @Nullable Output authenticationMode;

    /**
     * @return Denotes the user's authentication properties. Detailed below.
     * 
     */
    public Optional> authenticationMode() {
        return Optional.ofNullable(this.authenticationMode);
    }

    /**
     * Minimum engine version supported for the user.
     * 
     */
    @Import(name="minimumEngineVersion")
    private @Nullable Output minimumEngineVersion;

    /**
     * @return Minimum engine version supported for the user.
     * 
     */
    public Optional> minimumEngineVersion() {
        return Optional.ofNullable(this.minimumEngineVersion);
    }

    /**
     * A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    @Import(name="tagsAll")
    private @Nullable Output> tagsAll;

    /**
     * @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    public Optional>> tagsAll() {
        return Optional.ofNullable(this.tagsAll);
    }

    /**
     * Name of the MemoryDB user. Up to 40 characters.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="userName")
    private @Nullable Output userName;

    /**
     * @return Name of the MemoryDB user. Up to 40 characters.
     * 
     * The following arguments are optional:
     * 
     */
    public Optional> userName() {
        return Optional.ofNullable(this.userName);
    }

    private UserState() {}

    private UserState(UserState $) {
        this.accessString = $.accessString;
        this.arn = $.arn;
        this.authenticationMode = $.authenticationMode;
        this.minimumEngineVersion = $.minimumEngineVersion;
        this.tags = $.tags;
        this.tagsAll = $.tagsAll;
        this.userName = $.userName;
    }

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

    public static final class Builder {
        private UserState $;

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

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

        /**
         * @param accessString Access permissions string used for this user.
         * 
         * @return builder
         * 
         */
        public Builder accessString(@Nullable Output accessString) {
            $.accessString = accessString;
            return this;
        }

        /**
         * @param accessString Access permissions string used for this user.
         * 
         * @return builder
         * 
         */
        public Builder accessString(String accessString) {
            return accessString(Output.of(accessString));
        }

        /**
         * @param arn ARN of the user.
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn ARN of the user.
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param authenticationMode Denotes the user's authentication properties. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder authenticationMode(@Nullable Output authenticationMode) {
            $.authenticationMode = authenticationMode;
            return this;
        }

        /**
         * @param authenticationMode Denotes the user's authentication properties. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder authenticationMode(UserAuthenticationModeArgs authenticationMode) {
            return authenticationMode(Output.of(authenticationMode));
        }

        /**
         * @param minimumEngineVersion Minimum engine version supported for the user.
         * 
         * @return builder
         * 
         */
        public Builder minimumEngineVersion(@Nullable Output minimumEngineVersion) {
            $.minimumEngineVersion = minimumEngineVersion;
            return this;
        }

        /**
         * @param minimumEngineVersion Minimum engine version supported for the user.
         * 
         * @return builder
         * 
         */
        public Builder minimumEngineVersion(String minimumEngineVersion) {
            return minimumEngineVersion(Output.of(minimumEngineVersion));
        }

        /**
         * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(@Nullable Output> tagsAll) {
            $.tagsAll = tagsAll;
            return this;
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(Map tagsAll) {
            return tagsAll(Output.of(tagsAll));
        }

        /**
         * @param userName Name of the MemoryDB user. Up to 40 characters.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder userName(@Nullable Output userName) {
            $.userName = userName;
            return this;
        }

        /**
         * @param userName Name of the MemoryDB user. Up to 40 characters.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder userName(String userName) {
            return userName(Output.of(userName));
        }

        public UserState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy