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

com.ovhcloud.pulumi.ovh.Me.IdentityUserArgs 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.Me;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final IdentityUserArgs Empty = new IdentityUserArgs();

    /**
     * User description.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return User description.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * User's email.
     * 
     */
    @Import(name="email", required=true)
    private Output email;

    /**
     * @return User's email.
     * 
     */
    public Output email() {
        return this.email;
    }

    /**
     * User's group.
     * 
     */
    @Import(name="group")
    private @Nullable Output group;

    /**
     * @return User's group.
     * 
     */
    public Optional> group() {
        return Optional.ofNullable(this.group);
    }

    /**
     * User's login suffix.
     * 
     */
    @Import(name="login", required=true)
    private Output login;

    /**
     * @return User's login suffix.
     * 
     */
    public Output login() {
        return this.login;
    }

    /**
     * User's password.
     * 
     */
    @Import(name="password", required=true)
    private Output password;

    /**
     * @return User's password.
     * 
     */
    public Output password() {
        return this.password;
    }

    private IdentityUserArgs() {}

    private IdentityUserArgs(IdentityUserArgs $) {
        this.description = $.description;
        this.email = $.email;
        this.group = $.group;
        this.login = $.login;
        this.password = $.password;
    }

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

    public static final class Builder {
        private IdentityUserArgs $;

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

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

        /**
         * @param description User description.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description User description.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param email User's email.
         * 
         * @return builder
         * 
         */
        public Builder email(Output email) {
            $.email = email;
            return this;
        }

        /**
         * @param email User's email.
         * 
         * @return builder
         * 
         */
        public Builder email(String email) {
            return email(Output.of(email));
        }

        /**
         * @param group User's group.
         * 
         * @return builder
         * 
         */
        public Builder group(@Nullable Output group) {
            $.group = group;
            return this;
        }

        /**
         * @param group User's group.
         * 
         * @return builder
         * 
         */
        public Builder group(String group) {
            return group(Output.of(group));
        }

        /**
         * @param login User's login suffix.
         * 
         * @return builder
         * 
         */
        public Builder login(Output login) {
            $.login = login;
            return this;
        }

        /**
         * @param login User's login suffix.
         * 
         * @return builder
         * 
         */
        public Builder login(String login) {
            return login(Output.of(login));
        }

        /**
         * @param password User's password.
         * 
         * @return builder
         * 
         */
        public Builder password(Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password User's password.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        public IdentityUserArgs build() {
            if ($.email == null) {
                throw new MissingRequiredPropertyException("IdentityUserArgs", "email");
            }
            if ($.login == null) {
                throw new MissingRequiredPropertyException("IdentityUserArgs", "login");
            }
            if ($.password == null) {
                throw new MissingRequiredPropertyException("IdentityUserArgs", "password");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy