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

com.ovhcloud.pulumi.ovh.CloudProject.inputs.UserState Maven / Gradle / Ivy

There is a newer version: 1.1.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.CloudProject.inputs;

import com.ovhcloud.pulumi.ovh.CloudProject.inputs.UserRoleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
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();

    /**
     * the date the user was created.
     * 
     */
    @Import(name="creationDate")
    private @Nullable Output creationDate;

    /**
     * @return the date the user was created.
     * 
     */
    public Optional> creationDate() {
        return Optional.ofNullable(this.creationDate);
    }

    /**
     * A description associated with the user.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A description associated with the user.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * a convenient map representing an openstack_rc file.
     * Note: no password nor sensitive token is set in this map.
     * 
     */
    @Import(name="openstackRc")
    private @Nullable Output> openstackRc;

    /**
     * @return a convenient map representing an openstack_rc file.
     * Note: no password nor sensitive token is set in this map.
     * 
     */
    public Optional>> openstackRc() {
        return Optional.ofNullable(this.openstackRc);
    }

    /**
     * (Sensitive) the password generated for the user. The password can
     * be used with the Openstack API. This attribute is sensitive and will only be
     * retrieve once during creation.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return (Sensitive) the password generated for the user. The password can
     * be used with the Openstack API. This attribute is sensitive and will only be
     * retrieve once during creation.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * The name of a role. See `role_names`.
     * 
     */
    @Import(name="roleName")
    private @Nullable Output roleName;

    /**
     * @return The name of a role. See `role_names`.
     * 
     */
    public Optional> roleName() {
        return Optional.ofNullable(this.roleName);
    }

    /**
     * A list of role names. Values can be:
     * - administrator,
     * - ai_training_operator
     * - ai_training_read
     * - authentication
     * - backup_operator
     * - compute_operator
     * - image_operator
     * - infrastructure_supervisor
     * - network_operator
     * - network_security_operator
     * - objectstore_operator
     * - volume_operator
     * 
     */
    @Import(name="roleNames")
    private @Nullable Output> roleNames;

    /**
     * @return A list of role names. Values can be:
     * - administrator,
     * - ai_training_operator
     * - ai_training_read
     * - authentication
     * - backup_operator
     * - compute_operator
     * - image_operator
     * - infrastructure_supervisor
     * - network_operator
     * - network_security_operator
     * - objectstore_operator
     * - volume_operator
     * 
     */
    public Optional>> roleNames() {
        return Optional.ofNullable(this.roleNames);
    }

    /**
     * A list of roles associated with the user.
     * 
     */
    @Import(name="roles")
    private @Nullable Output> roles;

    /**
     * @return A list of roles associated with the user.
     * 
     */
    public Optional>> roles() {
        return Optional.ofNullable(this.roles);
    }

    /**
     * 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);
    }

    /**
     * the status of the user. should be normally set to 'ok'.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return the status of the user. should be normally set to 'ok'.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * the username generated for the user. This username can be used with
     * the Openstack API.
     * 
     */
    @Import(name="username")
    private @Nullable Output username;

    /**
     * @return the username generated for the user. This username can be used with
     * the Openstack API.
     * 
     */
    public Optional> username() {
        return Optional.ofNullable(this.username);
    }

    private UserState() {}

    private UserState(UserState $) {
        this.creationDate = $.creationDate;
        this.description = $.description;
        this.openstackRc = $.openstackRc;
        this.password = $.password;
        this.roleName = $.roleName;
        this.roleNames = $.roleNames;
        this.roles = $.roles;
        this.serviceName = $.serviceName;
        this.status = $.status;
        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 creationDate the date the user was created.
         * 
         * @return builder
         * 
         */
        public Builder creationDate(@Nullable Output creationDate) {
            $.creationDate = creationDate;
            return this;
        }

        /**
         * @param creationDate the date the user was created.
         * 
         * @return builder
         * 
         */
        public Builder creationDate(String creationDate) {
            return creationDate(Output.of(creationDate));
        }

        /**
         * @param description A description associated with the user.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A description associated with the user.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param openstackRc a convenient map representing an openstack_rc file.
         * Note: no password nor sensitive token is set in this map.
         * 
         * @return builder
         * 
         */
        public Builder openstackRc(@Nullable Output> openstackRc) {
            $.openstackRc = openstackRc;
            return this;
        }

        /**
         * @param openstackRc a convenient map representing an openstack_rc file.
         * Note: no password nor sensitive token is set in this map.
         * 
         * @return builder
         * 
         */
        public Builder openstackRc(Map openstackRc) {
            return openstackRc(Output.of(openstackRc));
        }

        /**
         * @param password (Sensitive) the password generated for the user. The password can
         * be used with the Openstack API. This attribute is sensitive and will only be
         * retrieve once during creation.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password (Sensitive) the password generated for the user. The password can
         * be used with the Openstack API. This attribute is sensitive and will only be
         * retrieve once during creation.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param roleName The name of a role. See `role_names`.
         * 
         * @return builder
         * 
         */
        public Builder roleName(@Nullable Output roleName) {
            $.roleName = roleName;
            return this;
        }

        /**
         * @param roleName The name of a role. See `role_names`.
         * 
         * @return builder
         * 
         */
        public Builder roleName(String roleName) {
            return roleName(Output.of(roleName));
        }

        /**
         * @param roleNames A list of role names. Values can be:
         * - administrator,
         * - ai_training_operator
         * - ai_training_read
         * - authentication
         * - backup_operator
         * - compute_operator
         * - image_operator
         * - infrastructure_supervisor
         * - network_operator
         * - network_security_operator
         * - objectstore_operator
         * - volume_operator
         * 
         * @return builder
         * 
         */
        public Builder roleNames(@Nullable Output> roleNames) {
            $.roleNames = roleNames;
            return this;
        }

        /**
         * @param roleNames A list of role names. Values can be:
         * - administrator,
         * - ai_training_operator
         * - ai_training_read
         * - authentication
         * - backup_operator
         * - compute_operator
         * - image_operator
         * - infrastructure_supervisor
         * - network_operator
         * - network_security_operator
         * - objectstore_operator
         * - volume_operator
         * 
         * @return builder
         * 
         */
        public Builder roleNames(List roleNames) {
            return roleNames(Output.of(roleNames));
        }

        /**
         * @param roleNames A list of role names. Values can be:
         * - administrator,
         * - ai_training_operator
         * - ai_training_read
         * - authentication
         * - backup_operator
         * - compute_operator
         * - image_operator
         * - infrastructure_supervisor
         * - network_operator
         * - network_security_operator
         * - objectstore_operator
         * - volume_operator
         * 
         * @return builder
         * 
         */
        public Builder roleNames(String... roleNames) {
            return roleNames(List.of(roleNames));
        }

        /**
         * @param roles A list of roles associated with the user.
         * 
         * @return builder
         * 
         */
        public Builder roles(@Nullable Output> roles) {
            $.roles = roles;
            return this;
        }

        /**
         * @param roles A list of roles associated with the user.
         * 
         * @return builder
         * 
         */
        public Builder roles(List roles) {
            return roles(Output.of(roles));
        }

        /**
         * @param roles A list of roles associated with the user.
         * 
         * @return builder
         * 
         */
        public Builder roles(UserRoleArgs... roles) {
            return roles(List.of(roles));
        }

        /**
         * @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 the status of the user. should be normally set to 'ok'.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status the status of the user. should be normally set to 'ok'.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @param username the username generated for the user. This username can be used with
         * the Openstack API.
         * 
         * @return builder
         * 
         */
        public Builder username(@Nullable Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username the username generated for the user. This username can be used with
         * the Openstack API.
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

        public UserState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy