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

com.pulumi.aws.cloudfront.inputs.DistributionOrderedCacheBehaviorForwardedValuesArgs 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.cloudfront.inputs;

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


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

    public static final DistributionOrderedCacheBehaviorForwardedValuesArgs Empty = new DistributionOrderedCacheBehaviorForwardedValuesArgs();

    /**
     * The forwarded values cookies that specifies how CloudFront handles cookies (maximum one).
     * 
     */
    @Import(name="cookies", required=true)
    private Output cookies;

    /**
     * @return The forwarded values cookies that specifies how CloudFront handles cookies (maximum one).
     * 
     */
    public Output cookies() {
        return this.cookies;
    }

    /**
     * Headers, if any, that you want CloudFront to vary upon for this cache behavior. Specify `*` to include all headers.
     * 
     */
    @Import(name="headers")
    private @Nullable Output> headers;

    /**
     * @return Headers, if any, that you want CloudFront to vary upon for this cache behavior. Specify `*` to include all headers.
     * 
     */
    public Optional>> headers() {
        return Optional.ofNullable(this.headers);
    }

    /**
     * Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior.
     * 
     */
    @Import(name="queryString", required=true)
    private Output queryString;

    /**
     * @return Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior.
     * 
     */
    public Output queryString() {
        return this.queryString;
    }

    /**
     * When specified, along with a value of `true` for `query_string`, all query strings are forwarded, however only the query string keys listed in this argument are cached. When omitted with a value of `true` for `query_string`, all query string keys are cached.
     * 
     */
    @Import(name="queryStringCacheKeys")
    private @Nullable Output> queryStringCacheKeys;

    /**
     * @return When specified, along with a value of `true` for `query_string`, all query strings are forwarded, however only the query string keys listed in this argument are cached. When omitted with a value of `true` for `query_string`, all query string keys are cached.
     * 
     */
    public Optional>> queryStringCacheKeys() {
        return Optional.ofNullable(this.queryStringCacheKeys);
    }

    private DistributionOrderedCacheBehaviorForwardedValuesArgs() {}

    private DistributionOrderedCacheBehaviorForwardedValuesArgs(DistributionOrderedCacheBehaviorForwardedValuesArgs $) {
        this.cookies = $.cookies;
        this.headers = $.headers;
        this.queryString = $.queryString;
        this.queryStringCacheKeys = $.queryStringCacheKeys;
    }

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

    public static final class Builder {
        private DistributionOrderedCacheBehaviorForwardedValuesArgs $;

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

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

        /**
         * @param cookies The forwarded values cookies that specifies how CloudFront handles cookies (maximum one).
         * 
         * @return builder
         * 
         */
        public Builder cookies(Output cookies) {
            $.cookies = cookies;
            return this;
        }

        /**
         * @param cookies The forwarded values cookies that specifies how CloudFront handles cookies (maximum one).
         * 
         * @return builder
         * 
         */
        public Builder cookies(DistributionOrderedCacheBehaviorForwardedValuesCookiesArgs cookies) {
            return cookies(Output.of(cookies));
        }

        /**
         * @param headers Headers, if any, that you want CloudFront to vary upon for this cache behavior. Specify `*` to include all headers.
         * 
         * @return builder
         * 
         */
        public Builder headers(@Nullable Output> headers) {
            $.headers = headers;
            return this;
        }

        /**
         * @param headers Headers, if any, that you want CloudFront to vary upon for this cache behavior. Specify `*` to include all headers.
         * 
         * @return builder
         * 
         */
        public Builder headers(List headers) {
            return headers(Output.of(headers));
        }

        /**
         * @param headers Headers, if any, that you want CloudFront to vary upon for this cache behavior. Specify `*` to include all headers.
         * 
         * @return builder
         * 
         */
        public Builder headers(String... headers) {
            return headers(List.of(headers));
        }

        /**
         * @param queryString Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior.
         * 
         * @return builder
         * 
         */
        public Builder queryString(Output queryString) {
            $.queryString = queryString;
            return this;
        }

        /**
         * @param queryString Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior.
         * 
         * @return builder
         * 
         */
        public Builder queryString(Boolean queryString) {
            return queryString(Output.of(queryString));
        }

        /**
         * @param queryStringCacheKeys When specified, along with a value of `true` for `query_string`, all query strings are forwarded, however only the query string keys listed in this argument are cached. When omitted with a value of `true` for `query_string`, all query string keys are cached.
         * 
         * @return builder
         * 
         */
        public Builder queryStringCacheKeys(@Nullable Output> queryStringCacheKeys) {
            $.queryStringCacheKeys = queryStringCacheKeys;
            return this;
        }

        /**
         * @param queryStringCacheKeys When specified, along with a value of `true` for `query_string`, all query strings are forwarded, however only the query string keys listed in this argument are cached. When omitted with a value of `true` for `query_string`, all query string keys are cached.
         * 
         * @return builder
         * 
         */
        public Builder queryStringCacheKeys(List queryStringCacheKeys) {
            return queryStringCacheKeys(Output.of(queryStringCacheKeys));
        }

        /**
         * @param queryStringCacheKeys When specified, along with a value of `true` for `query_string`, all query strings are forwarded, however only the query string keys listed in this argument are cached. When omitted with a value of `true` for `query_string`, all query string keys are cached.
         * 
         * @return builder
         * 
         */
        public Builder queryStringCacheKeys(String... queryStringCacheKeys) {
            return queryStringCacheKeys(List.of(queryStringCacheKeys));
        }

        public DistributionOrderedCacheBehaviorForwardedValuesArgs build() {
            if ($.cookies == null) {
                throw new MissingRequiredPropertyException("DistributionOrderedCacheBehaviorForwardedValuesArgs", "cookies");
            }
            if ($.queryString == null) {
                throw new MissingRequiredPropertyException("DistributionOrderedCacheBehaviorForwardedValuesArgs", "queryString");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy