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

com.pulumi.azurenative.cdn.inputs.AfdRouteCacheConfigurationArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.cdn.inputs;

import com.pulumi.azurenative.cdn.enums.AfdQueryStringCachingBehavior;
import com.pulumi.azurenative.cdn.inputs.CompressionSettingsArgs;
import com.pulumi.core.Either;
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;


/**
 * Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object.
 * 
 */
public final class AfdRouteCacheConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final AfdRouteCacheConfigurationArgs Empty = new AfdRouteCacheConfigurationArgs();

    /**
     * compression settings.
     * 
     */
    @Import(name="compressionSettings")
    private @Nullable Output compressionSettings;

    /**
     * @return compression settings.
     * 
     */
    public Optional> compressionSettings() {
        return Optional.ofNullable(this.compressionSettings);
    }

    /**
     * query parameters to include or exclude (comma separated).
     * 
     */
    @Import(name="queryParameters")
    private @Nullable Output queryParameters;

    /**
     * @return query parameters to include or exclude (comma separated).
     * 
     */
    public Optional> queryParameters() {
        return Optional.ofNullable(this.queryParameters);
    }

    /**
     * Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore specific query strings, cache every request with a unique URL, or cache specific query strings.
     * 
     */
    @Import(name="queryStringCachingBehavior")
    private @Nullable Output> queryStringCachingBehavior;

    /**
     * @return Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore specific query strings, cache every request with a unique URL, or cache specific query strings.
     * 
     */
    public Optional>> queryStringCachingBehavior() {
        return Optional.ofNullable(this.queryStringCachingBehavior);
    }

    private AfdRouteCacheConfigurationArgs() {}

    private AfdRouteCacheConfigurationArgs(AfdRouteCacheConfigurationArgs $) {
        this.compressionSettings = $.compressionSettings;
        this.queryParameters = $.queryParameters;
        this.queryStringCachingBehavior = $.queryStringCachingBehavior;
    }

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

    public static final class Builder {
        private AfdRouteCacheConfigurationArgs $;

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

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

        /**
         * @param compressionSettings compression settings.
         * 
         * @return builder
         * 
         */
        public Builder compressionSettings(@Nullable Output compressionSettings) {
            $.compressionSettings = compressionSettings;
            return this;
        }

        /**
         * @param compressionSettings compression settings.
         * 
         * @return builder
         * 
         */
        public Builder compressionSettings(CompressionSettingsArgs compressionSettings) {
            return compressionSettings(Output.of(compressionSettings));
        }

        /**
         * @param queryParameters query parameters to include or exclude (comma separated).
         * 
         * @return builder
         * 
         */
        public Builder queryParameters(@Nullable Output queryParameters) {
            $.queryParameters = queryParameters;
            return this;
        }

        /**
         * @param queryParameters query parameters to include or exclude (comma separated).
         * 
         * @return builder
         * 
         */
        public Builder queryParameters(String queryParameters) {
            return queryParameters(Output.of(queryParameters));
        }

        /**
         * @param queryStringCachingBehavior Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore specific query strings, cache every request with a unique URL, or cache specific query strings.
         * 
         * @return builder
         * 
         */
        public Builder queryStringCachingBehavior(@Nullable Output> queryStringCachingBehavior) {
            $.queryStringCachingBehavior = queryStringCachingBehavior;
            return this;
        }

        /**
         * @param queryStringCachingBehavior Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore specific query strings, cache every request with a unique URL, or cache specific query strings.
         * 
         * @return builder
         * 
         */
        public Builder queryStringCachingBehavior(Either queryStringCachingBehavior) {
            return queryStringCachingBehavior(Output.of(queryStringCachingBehavior));
        }

        /**
         * @param queryStringCachingBehavior Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore specific query strings, cache every request with a unique URL, or cache specific query strings.
         * 
         * @return builder
         * 
         */
        public Builder queryStringCachingBehavior(String queryStringCachingBehavior) {
            return queryStringCachingBehavior(Either.ofLeft(queryStringCachingBehavior));
        }

        /**
         * @param queryStringCachingBehavior Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore specific query strings, cache every request with a unique URL, or cache specific query strings.
         * 
         * @return builder
         * 
         */
        public Builder queryStringCachingBehavior(AfdQueryStringCachingBehavior queryStringCachingBehavior) {
            return queryStringCachingBehavior(Either.ofRight(queryStringCachingBehavior));
        }

        public AfdRouteCacheConfigurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy