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

com.pulumi.aws.elasticache.inputs.ServerlessCacheCacheUsageLimitsDataStorageArgs Maven / Gradle / Ivy

// *** 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.aws.elasticache.inputs;

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


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

    public static final ServerlessCacheCacheUsageLimitsDataStorageArgs Empty = new ServerlessCacheCacheUsageLimitsDataStorageArgs();

    /**
     * The upper limit for data storage the cache is set to use. Must be between 1 and 5,000.
     * 
     */
    @Import(name="maximum")
    private @Nullable Output maximum;

    /**
     * @return The upper limit for data storage the cache is set to use. Must be between 1 and 5,000.
     * 
     */
    public Optional> maximum() {
        return Optional.ofNullable(this.maximum);
    }

    /**
     * The lower limit for data storage the cache is set to use. Must be between 1 and 5,000.
     * 
     */
    @Import(name="minimum")
    private @Nullable Output minimum;

    /**
     * @return The lower limit for data storage the cache is set to use. Must be between 1 and 5,000.
     * 
     */
    public Optional> minimum() {
        return Optional.ofNullable(this.minimum);
    }

    /**
     * The unit that the storage is measured in, in GB.
     * 
     */
    @Import(name="unit", required=true)
    private Output unit;

    /**
     * @return The unit that the storage is measured in, in GB.
     * 
     */
    public Output unit() {
        return this.unit;
    }

    private ServerlessCacheCacheUsageLimitsDataStorageArgs() {}

    private ServerlessCacheCacheUsageLimitsDataStorageArgs(ServerlessCacheCacheUsageLimitsDataStorageArgs $) {
        this.maximum = $.maximum;
        this.minimum = $.minimum;
        this.unit = $.unit;
    }

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

    public static final class Builder {
        private ServerlessCacheCacheUsageLimitsDataStorageArgs $;

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

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

        /**
         * @param maximum The upper limit for data storage the cache is set to use. Must be between 1 and 5,000.
         * 
         * @return builder
         * 
         */
        public Builder maximum(@Nullable Output maximum) {
            $.maximum = maximum;
            return this;
        }

        /**
         * @param maximum The upper limit for data storage the cache is set to use. Must be between 1 and 5,000.
         * 
         * @return builder
         * 
         */
        public Builder maximum(Integer maximum) {
            return maximum(Output.of(maximum));
        }

        /**
         * @param minimum The lower limit for data storage the cache is set to use. Must be between 1 and 5,000.
         * 
         * @return builder
         * 
         */
        public Builder minimum(@Nullable Output minimum) {
            $.minimum = minimum;
            return this;
        }

        /**
         * @param minimum The lower limit for data storage the cache is set to use. Must be between 1 and 5,000.
         * 
         * @return builder
         * 
         */
        public Builder minimum(Integer minimum) {
            return minimum(Output.of(minimum));
        }

        /**
         * @param unit The unit that the storage is measured in, in GB.
         * 
         * @return builder
         * 
         */
        public Builder unit(Output unit) {
            $.unit = unit;
            return this;
        }

        /**
         * @param unit The unit that the storage is measured in, in GB.
         * 
         * @return builder
         * 
         */
        public Builder unit(String unit) {
            return unit(Output.of(unit));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy