com.pulumi.aws.cloudfront.outputs.DistributionOrderedCacheBehaviorForwardedValues Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.outputs;
import com.pulumi.aws.cloudfront.outputs.DistributionOrderedCacheBehaviorForwardedValuesCookies;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class DistributionOrderedCacheBehaviorForwardedValues {
/**
* @return The forwarded values cookies that specifies how CloudFront handles cookies (maximum one).
*
*/
private DistributionOrderedCacheBehaviorForwardedValuesCookies cookies;
/**
* @return Headers, if any, that you want CloudFront to vary upon for this cache behavior. Specify `*` to include all headers.
*
*/
private @Nullable List headers;
/**
* @return Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior.
*
*/
private Boolean queryString;
/**
* @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.
*
*/
private @Nullable List queryStringCacheKeys;
private DistributionOrderedCacheBehaviorForwardedValues() {}
/**
* @return The forwarded values cookies that specifies how CloudFront handles cookies (maximum one).
*
*/
public DistributionOrderedCacheBehaviorForwardedValuesCookies cookies() {
return this.cookies;
}
/**
* @return Headers, if any, that you want CloudFront to vary upon for this cache behavior. Specify `*` to include all headers.
*
*/
public List headers() {
return this.headers == null ? List.of() : this.headers;
}
/**
* @return Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior.
*
*/
public Boolean queryString() {
return this.queryString;
}
/**
* @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 List queryStringCacheKeys() {
return this.queryStringCacheKeys == null ? List.of() : this.queryStringCacheKeys;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DistributionOrderedCacheBehaviorForwardedValues defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private DistributionOrderedCacheBehaviorForwardedValuesCookies cookies;
private @Nullable List headers;
private Boolean queryString;
private @Nullable List queryStringCacheKeys;
public Builder() {}
public Builder(DistributionOrderedCacheBehaviorForwardedValues defaults) {
Objects.requireNonNull(defaults);
this.cookies = defaults.cookies;
this.headers = defaults.headers;
this.queryString = defaults.queryString;
this.queryStringCacheKeys = defaults.queryStringCacheKeys;
}
@CustomType.Setter
public Builder cookies(DistributionOrderedCacheBehaviorForwardedValuesCookies cookies) {
if (cookies == null) {
throw new MissingRequiredPropertyException("DistributionOrderedCacheBehaviorForwardedValues", "cookies");
}
this.cookies = cookies;
return this;
}
@CustomType.Setter
public Builder headers(@Nullable List headers) {
this.headers = headers;
return this;
}
public Builder headers(String... headers) {
return headers(List.of(headers));
}
@CustomType.Setter
public Builder queryString(Boolean queryString) {
if (queryString == null) {
throw new MissingRequiredPropertyException("DistributionOrderedCacheBehaviorForwardedValues", "queryString");
}
this.queryString = queryString;
return this;
}
@CustomType.Setter
public Builder queryStringCacheKeys(@Nullable List queryStringCacheKeys) {
this.queryStringCacheKeys = queryStringCacheKeys;
return this;
}
public Builder queryStringCacheKeys(String... queryStringCacheKeys) {
return queryStringCacheKeys(List.of(queryStringCacheKeys));
}
public DistributionOrderedCacheBehaviorForwardedValues build() {
final var _resultValue = new DistributionOrderedCacheBehaviorForwardedValues();
_resultValue.cookies = cookies;
_resultValue.headers = headers;
_resultValue.queryString = queryString;
_resultValue.queryStringCacheKeys = queryStringCacheKeys;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy