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

com.pulumi.alicloud.ram.inputs.LoginProfileState Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
Show 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.alicloud.ram.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 LoginProfileState extends com.pulumi.resources.ResourceArgs {

    public static final LoginProfileState Empty = new LoginProfileState();

    /**
     * Specifies whether an MFA device must be attached to the RAM user upon logon. Valid values: `true`, `false`. [To enhance the security of your resources and data, the default value has been changed to `true`](https://www.alibabacloud.com/en/notice/mfa20240524?_p_lc=1) .
     * 
     */
    @Import(name="mfaBindRequired")
    private @Nullable Output mfaBindRequired;

    /**
     * @return Specifies whether an MFA device must be attached to the RAM user upon logon. Valid values: `true`, `false`. [To enhance the security of your resources and data, the default value has been changed to `true`](https://www.alibabacloud.com/en/notice/mfa20240524?_p_lc=1) .
     * 
     */
    public Optional> mfaBindRequired() {
        return Optional.ofNullable(this.mfaBindRequired);
    }

    /**
     * The logon password of the RAM user. The password must meet the password strength requirements.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return The logon password of the RAM user. The password must meet the password strength requirements.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * Specifies whether the RAM user must change the password upon logon. Default value: `false`. Valid values: `true`, `false`.
     * 
     */
    @Import(name="passwordResetRequired")
    private @Nullable Output passwordResetRequired;

    /**
     * @return Specifies whether the RAM user must change the password upon logon. Default value: `false`. Valid values: `true`, `false`.
     * 
     */
    public Optional> passwordResetRequired() {
        return Optional.ofNullable(this.passwordResetRequired);
    }

    /**
     * The name of the RAM user. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen.
     * 
     */
    @Import(name="userName")
    private @Nullable Output userName;

    /**
     * @return The name of the RAM user. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen.
     * 
     */
    public Optional> userName() {
        return Optional.ofNullable(this.userName);
    }

    private LoginProfileState() {}

    private LoginProfileState(LoginProfileState $) {
        this.mfaBindRequired = $.mfaBindRequired;
        this.password = $.password;
        this.passwordResetRequired = $.passwordResetRequired;
        this.userName = $.userName;
    }

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

    public static final class Builder {
        private LoginProfileState $;

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

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

        /**
         * @param mfaBindRequired Specifies whether an MFA device must be attached to the RAM user upon logon. Valid values: `true`, `false`. [To enhance the security of your resources and data, the default value has been changed to `true`](https://www.alibabacloud.com/en/notice/mfa20240524?_p_lc=1) .
         * 
         * @return builder
         * 
         */
        public Builder mfaBindRequired(@Nullable Output mfaBindRequired) {
            $.mfaBindRequired = mfaBindRequired;
            return this;
        }

        /**
         * @param mfaBindRequired Specifies whether an MFA device must be attached to the RAM user upon logon. Valid values: `true`, `false`. [To enhance the security of your resources and data, the default value has been changed to `true`](https://www.alibabacloud.com/en/notice/mfa20240524?_p_lc=1) .
         * 
         * @return builder
         * 
         */
        public Builder mfaBindRequired(Boolean mfaBindRequired) {
            return mfaBindRequired(Output.of(mfaBindRequired));
        }

        /**
         * @param password The logon password of the RAM user. The password must meet the password strength requirements.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password The logon password of the RAM user. The password must meet the password strength requirements.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param passwordResetRequired Specifies whether the RAM user must change the password upon logon. Default value: `false`. Valid values: `true`, `false`.
         * 
         * @return builder
         * 
         */
        public Builder passwordResetRequired(@Nullable Output passwordResetRequired) {
            $.passwordResetRequired = passwordResetRequired;
            return this;
        }

        /**
         * @param passwordResetRequired Specifies whether the RAM user must change the password upon logon. Default value: `false`. Valid values: `true`, `false`.
         * 
         * @return builder
         * 
         */
        public Builder passwordResetRequired(Boolean passwordResetRequired) {
            return passwordResetRequired(Output.of(passwordResetRequired));
        }

        /**
         * @param userName The name of the RAM user. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen.
         * 
         * @return builder
         * 
         */
        public Builder userName(@Nullable Output userName) {
            $.userName = userName;
            return this;
        }

        /**
         * @param userName The name of the RAM user. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen.
         * 
         * @return builder
         * 
         */
        public Builder userName(String userName) {
            return userName(Output.of(userName));
        }

        public LoginProfileState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy