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

com.pulumi.azure.appplatform.inputs.SpringCloudGatewayLocalResponseCachePerRouteArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.appplatform.inputs;

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


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

    public static final SpringCloudGatewayLocalResponseCachePerRouteArgs Empty = new SpringCloudGatewayLocalResponseCachePerRouteArgs();

    /**
     * Specifies the maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to evict some entries.
     * 
     */
    @Import(name="size")
    private @Nullable Output size;

    /**
     * @return Specifies the maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to evict some entries.
     * 
     */
    public Optional> size() {
        return Optional.ofNullable(this.size);
    }

    /**
     * Specifies the time before a cached entry is expired (300s, 5m, 1h...).
     * 
     */
    @Import(name="timeToLive")
    private @Nullable Output timeToLive;

    /**
     * @return Specifies the time before a cached entry is expired (300s, 5m, 1h...).
     * 
     */
    public Optional> timeToLive() {
        return Optional.ofNullable(this.timeToLive);
    }

    private SpringCloudGatewayLocalResponseCachePerRouteArgs() {}

    private SpringCloudGatewayLocalResponseCachePerRouteArgs(SpringCloudGatewayLocalResponseCachePerRouteArgs $) {
        this.size = $.size;
        this.timeToLive = $.timeToLive;
    }

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

    public static final class Builder {
        private SpringCloudGatewayLocalResponseCachePerRouteArgs $;

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

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

        /**
         * @param size Specifies the maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to evict some entries.
         * 
         * @return builder
         * 
         */
        public Builder size(@Nullable Output size) {
            $.size = size;
            return this;
        }

        /**
         * @param size Specifies the maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to evict some entries.
         * 
         * @return builder
         * 
         */
        public Builder size(String size) {
            return size(Output.of(size));
        }

        /**
         * @param timeToLive Specifies the time before a cached entry is expired (300s, 5m, 1h...).
         * 
         * @return builder
         * 
         */
        public Builder timeToLive(@Nullable Output timeToLive) {
            $.timeToLive = timeToLive;
            return this;
        }

        /**
         * @param timeToLive Specifies the time before a cached entry is expired (300s, 5m, 1h...).
         * 
         * @return builder
         * 
         */
        public Builder timeToLive(String timeToLive) {
            return timeToLive(Output.of(timeToLive));
        }

        public SpringCloudGatewayLocalResponseCachePerRouteArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy