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

com.ovhcloud.pulumi.ovh.CloudProjectDatabase.RedisUserArgs 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.CloudProjectDatabase;

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


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

    public static final RedisUserArgs Empty = new RedisUserArgs();

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

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

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

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

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

    /**
     * @return Cluster ID.
     * 
     */
    public Output clusterId() {
        return this.clusterId;
    }

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

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

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

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

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

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

    /**
     * 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", required=true)
    private Output serviceName;

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

    private RedisUserArgs() {}

    private RedisUserArgs(RedisUserArgs $) {
        this.categories = $.categories;
        this.channels = $.channels;
        this.clusterId = $.clusterId;
        this.commands = $.commands;
        this.keys = $.keys;
        this.name = $.name;
        this.passwordReset = $.passwordReset;
        this.serviceName = $.serviceName;
    }

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

    public static final class Builder {
        private RedisUserArgs $;

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

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

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

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

        /**
         * @param categories Categories of the user.
         * 
         * @return builder
         * 
         */
        public Builder categories(String... categories) {
            return categories(List.of(categories));
        }

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

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

        /**
         * @param channels Channels of the user.
         * 
         * @return builder
         * 
         */
        public Builder channels(String... channels) {
            return channels(List.of(channels));
        }

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

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

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

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

        /**
         * @param commands Commands of the user.
         * 
         * @return builder
         * 
         */
        public Builder commands(String... commands) {
            return commands(List.of(commands));
        }

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

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

        /**
         * @param keys Keys of the user.
         * 
         * @return builder
         * 
         */
        public Builder keys(String... keys) {
            return keys(List.of(keys));
        }

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

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

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

        public RedisUserArgs build() {
            if ($.clusterId == null) {
                throw new MissingRequiredPropertyException("RedisUserArgs", "clusterId");
            }
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("RedisUserArgs", "serviceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy