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

com.pulumi.azurenative.cache.inputs.ModuleArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.pulumi.azurenative.cache.inputs;

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;


/**
 * Specifies configuration of a redis module
 * 
 */
public final class ModuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final ModuleArgs Empty = new ModuleArgs();

    /**
     * Configuration options for the module, e.g. 'ERROR_RATE 0.01 INITIAL_SIZE 400'.
     * 
     */
    @Import(name="args")
    private @Nullable Output args;

    /**
     * @return Configuration options for the module, e.g. 'ERROR_RATE 0.01 INITIAL_SIZE 400'.
     * 
     */
    public Optional> args() {
        return Optional.ofNullable(this.args);
    }

    /**
     * The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries'
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries'
     * 
     */
    public Output name() {
        return this.name;
    }

    private ModuleArgs() {}

    private ModuleArgs(ModuleArgs $) {
        this.args = $.args;
        this.name = $.name;
    }

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

    public static final class Builder {
        private ModuleArgs $;

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

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

        /**
         * @param args Configuration options for the module, e.g. 'ERROR_RATE 0.01 INITIAL_SIZE 400'.
         * 
         * @return builder
         * 
         */
        public Builder args(@Nullable Output args) {
            $.args = args;
            return this;
        }

        /**
         * @param args Configuration options for the module, e.g. 'ERROR_RATE 0.01 INITIAL_SIZE 400'.
         * 
         * @return builder
         * 
         */
        public Builder args(String args) {
            return args(Output.of(args));
        }

        /**
         * @param name The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries'
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries'
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public ModuleArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("ModuleArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy