com.pulumi.aws.lightsail.outputs.DistributionCacheBehaviorSettingsForwardedHeaders 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.lightsail.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DistributionCacheBehaviorSettingsForwardedHeaders {
/**
* @return The specific headers to forward to your distribution's origin.
*
*/
private @Nullable List headersAllowLists;
/**
* @return The headers that you want your distribution to forward to your origin and base caching on.
*
*/
private @Nullable String option;
private DistributionCacheBehaviorSettingsForwardedHeaders() {}
/**
* @return The specific headers to forward to your distribution's origin.
*
*/
public List headersAllowLists() {
return this.headersAllowLists == null ? List.of() : this.headersAllowLists;
}
/**
* @return The headers that you want your distribution to forward to your origin and base caching on.
*
*/
public Optional option() {
return Optional.ofNullable(this.option);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DistributionCacheBehaviorSettingsForwardedHeaders defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List headersAllowLists;
private @Nullable String option;
public Builder() {}
public Builder(DistributionCacheBehaviorSettingsForwardedHeaders defaults) {
Objects.requireNonNull(defaults);
this.headersAllowLists = defaults.headersAllowLists;
this.option = defaults.option;
}
@CustomType.Setter
public Builder headersAllowLists(@Nullable List headersAllowLists) {
this.headersAllowLists = headersAllowLists;
return this;
}
public Builder headersAllowLists(String... headersAllowLists) {
return headersAllowLists(List.of(headersAllowLists));
}
@CustomType.Setter
public Builder option(@Nullable String option) {
this.option = option;
return this;
}
public DistributionCacheBehaviorSettingsForwardedHeaders build() {
final var _resultValue = new DistributionCacheBehaviorSettingsForwardedHeaders();
_resultValue.headersAllowLists = headersAllowLists;
_resultValue.option = option;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy