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

com.ovhcloud.pulumi.ovh.CloudProjectDatabase.inputs.OpensearchUserState Maven / Gradle / Ivy

There is a newer version: 1.4.0
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.ovhcloud.pulumi.ovh.CloudProjectDatabase.inputs;

import com.ovhcloud.pulumi.ovh.CloudProjectDatabase.inputs.OpensearchUserAclArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final OpensearchUserState Empty = new OpensearchUserState();

    /**
     * Acls of the user.
     * 
     */
    @Import(name="acls")
    private @Nullable Output> acls;

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

    /**
     * Cluster ID.
     * 
     */
    @Import(name="clusterId")
    private @Nullable Output clusterId;

    /**
     * @return Cluster ID.
     * 
     */
    public Optional> clusterId() {
        return Optional.ofNullable(this.clusterId);
    }

    /**
     * Date of the creation of the user.
     * 
     */
    @Import(name="createdAt")
    private @Nullable Output createdAt;

    /**
     * @return Date of the creation of the user.
     * 
     */
    public Optional> createdAt() {
        return Optional.ofNullable(this.createdAt);
    }

    /**
     * Username affected by this acl. A user named "avnadmin" is mapped with already created admin user and reset his password instead of creating a new user.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Username affected by this acl. A user named "avnadmin" is mapped with already created admin user and reset his password instead of creating a new user.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * (Sensitive) Password of the user.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return (Sensitive) Password of the user.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * Arbitrary string to change to trigger a password update
     * 
     */
    @Import(name="passwordReset")
    private @Nullable Output passwordReset;

    /**
     * @return Arbitrary string to change to trigger a password update
     * 
     */
    public Optional> passwordReset() {
        return Optional.ofNullable(this.passwordReset);
    }

    /**
     * The id of the public cloud project. If omitted,
     * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
     * 
     */
    @Import(name="serviceName")
    private @Nullable Output serviceName;

    /**
     * @return The id of the public cloud project. If omitted,
     * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
     * 
     */
    public Optional> serviceName() {
        return Optional.ofNullable(this.serviceName);
    }

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

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

    private OpensearchUserState() {}

    private OpensearchUserState(OpensearchUserState $) {
        this.acls = $.acls;
        this.clusterId = $.clusterId;
        this.createdAt = $.createdAt;
        this.name = $.name;
        this.password = $.password;
        this.passwordReset = $.passwordReset;
        this.serviceName = $.serviceName;
        this.status = $.status;
    }

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

    public static final class Builder {
        private OpensearchUserState $;

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

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

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

        /**
         * @param acls Acls of the user.
         * 
         * @return builder
         * 
         */
        public Builder acls(List acls) {
            return acls(Output.of(acls));
        }

        /**
         * @param acls Acls of the user.
         * 
         * @return builder
         * 
         */
        public Builder acls(OpensearchUserAclArgs... acls) {
            return acls(List.of(acls));
        }

        /**
         * @param clusterId Cluster ID.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(@Nullable Output clusterId) {
            $.clusterId = clusterId;
            return this;
        }

        /**
         * @param clusterId Cluster ID.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(String clusterId) {
            return clusterId(Output.of(clusterId));
        }

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

        /**
         * @param createdAt Date of the creation of the user.
         * 
         * @return builder
         * 
         */
        public Builder createdAt(String createdAt) {
            return createdAt(Output.of(createdAt));
        }

        /**
         * @param name Username affected by this acl. A user named "avnadmin" is mapped with already created admin user and reset his password instead of creating a new user.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Username affected by this acl. A user named "avnadmin" is mapped with already created admin user and reset his password instead of creating a new user.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

        /**
         * @param password (Sensitive) Password of the user.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param passwordReset Arbitrary string to change to trigger a password update
         * 
         * @return builder
         * 
         */
        public Builder passwordReset(@Nullable Output passwordReset) {
            $.passwordReset = passwordReset;
            return this;
        }

        /**
         * @param passwordReset Arbitrary string to change to trigger a password update
         * 
         * @return builder
         * 
         */
        public Builder passwordReset(String passwordReset) {
            return passwordReset(Output.of(passwordReset));
        }

        /**
         * @param serviceName The id of the public cloud project. If omitted,
         * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(@Nullable Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The id of the public cloud project. If omitted,
         * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

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

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

        public OpensearchUserState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy