
com.pulumi.aws.lightsail.outputs.DistributionCacheBehaviorSettingsForwardedQueryStrings 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.lightsail.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DistributionCacheBehaviorSettingsForwardedQueryStrings {
/**
* @return Indicates whether the distribution forwards and caches based on query strings.
*
*/
private @Nullable Boolean option;
/**
* @return The specific query strings that the distribution forwards to the origin.
*
*/
private @Nullable List queryStringsAllowedLists;
private DistributionCacheBehaviorSettingsForwardedQueryStrings() {}
/**
* @return Indicates whether the distribution forwards and caches based on query strings.
*
*/
public Optional option() {
return Optional.ofNullable(this.option);
}
/**
* @return The specific query strings that the distribution forwards to the origin.
*
*/
public List queryStringsAllowedLists() {
return this.queryStringsAllowedLists == null ? List.of() : this.queryStringsAllowedLists;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DistributionCacheBehaviorSettingsForwardedQueryStrings defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean option;
private @Nullable List queryStringsAllowedLists;
public Builder() {}
public Builder(DistributionCacheBehaviorSettingsForwardedQueryStrings defaults) {
Objects.requireNonNull(defaults);
this.option = defaults.option;
this.queryStringsAllowedLists = defaults.queryStringsAllowedLists;
}
@CustomType.Setter
public Builder option(@Nullable Boolean option) {
this.option = option;
return this;
}
@CustomType.Setter
public Builder queryStringsAllowedLists(@Nullable List queryStringsAllowedLists) {
this.queryStringsAllowedLists = queryStringsAllowedLists;
return this;
}
public Builder queryStringsAllowedLists(String... queryStringsAllowedLists) {
return queryStringsAllowedLists(List.of(queryStringsAllowedLists));
}
public DistributionCacheBehaviorSettingsForwardedQueryStrings build() {
final var _resultValue = new DistributionCacheBehaviorSettingsForwardedQueryStrings();
_resultValue.option = option;
_resultValue.queryStringsAllowedLists = queryStringsAllowedLists;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy