com.pulumi.aws.cloudfront.outputs.DistributionOrderedCacheBehaviorForwardedValuesCookies 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.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class DistributionOrderedCacheBehaviorForwardedValuesCookies {
/**
* @return Whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify `all`, `none` or `whitelist`. If `whitelist`, you must include the subsequent `whitelisted_names`.
*
*/
private String forward;
/**
* @return If you have specified `whitelist` to `forward`, the whitelisted cookies that you want CloudFront to forward to your origin.
*
*/
private @Nullable List whitelistedNames;
private DistributionOrderedCacheBehaviorForwardedValuesCookies() {}
/**
* @return Whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify `all`, `none` or `whitelist`. If `whitelist`, you must include the subsequent `whitelisted_names`.
*
*/
public String forward() {
return this.forward;
}
/**
* @return If you have specified `whitelist` to `forward`, the whitelisted cookies that you want CloudFront to forward to your origin.
*
*/
public List whitelistedNames() {
return this.whitelistedNames == null ? List.of() : this.whitelistedNames;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DistributionOrderedCacheBehaviorForwardedValuesCookies defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String forward;
private @Nullable List whitelistedNames;
public Builder() {}
public Builder(DistributionOrderedCacheBehaviorForwardedValuesCookies defaults) {
Objects.requireNonNull(defaults);
this.forward = defaults.forward;
this.whitelistedNames = defaults.whitelistedNames;
}
@CustomType.Setter
public Builder forward(String forward) {
if (forward == null) {
throw new MissingRequiredPropertyException("DistributionOrderedCacheBehaviorForwardedValuesCookies", "forward");
}
this.forward = forward;
return this;
}
@CustomType.Setter
public Builder whitelistedNames(@Nullable List whitelistedNames) {
this.whitelistedNames = whitelistedNames;
return this;
}
public Builder whitelistedNames(String... whitelistedNames) {
return whitelistedNames(List.of(whitelistedNames));
}
public DistributionOrderedCacheBehaviorForwardedValuesCookies build() {
final var _resultValue = new DistributionOrderedCacheBehaviorForwardedValuesCookies();
_resultValue.forward = forward;
_resultValue.whitelistedNames = whitelistedNames;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy