com.pulumi.azurenative.cdn.outputs.CacheConfigurationResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.cdn.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CacheConfigurationResponse {
/**
* @return Caching behavior for the requests
*
*/
private @Nullable String cacheBehavior;
/**
* @return The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss
*
*/
private @Nullable String cacheDuration;
/**
* @return Indicates whether content compression is enabled. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.
*
*/
private @Nullable String isCompressionEnabled;
/**
* @return query parameters to include or exclude (comma separated).
*
*/
private @Nullable String queryParameters;
/**
* @return Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore specific query strings, cache every request with a unique URL, or cache specific query strings.
*
*/
private @Nullable String queryStringCachingBehavior;
private CacheConfigurationResponse() {}
/**
* @return Caching behavior for the requests
*
*/
public Optional cacheBehavior() {
return Optional.ofNullable(this.cacheBehavior);
}
/**
* @return The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss
*
*/
public Optional cacheDuration() {
return Optional.ofNullable(this.cacheDuration);
}
/**
* @return Indicates whether content compression is enabled. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.
*
*/
public Optional isCompressionEnabled() {
return Optional.ofNullable(this.isCompressionEnabled);
}
/**
* @return query parameters to include or exclude (comma separated).
*
*/
public Optional queryParameters() {
return Optional.ofNullable(this.queryParameters);
}
/**
* @return Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore specific query strings, cache every request with a unique URL, or cache specific query strings.
*
*/
public Optional queryStringCachingBehavior() {
return Optional.ofNullable(this.queryStringCachingBehavior);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CacheConfigurationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String cacheBehavior;
private @Nullable String cacheDuration;
private @Nullable String isCompressionEnabled;
private @Nullable String queryParameters;
private @Nullable String queryStringCachingBehavior;
public Builder() {}
public Builder(CacheConfigurationResponse defaults) {
Objects.requireNonNull(defaults);
this.cacheBehavior = defaults.cacheBehavior;
this.cacheDuration = defaults.cacheDuration;
this.isCompressionEnabled = defaults.isCompressionEnabled;
this.queryParameters = defaults.queryParameters;
this.queryStringCachingBehavior = defaults.queryStringCachingBehavior;
}
@CustomType.Setter
public Builder cacheBehavior(@Nullable String cacheBehavior) {
this.cacheBehavior = cacheBehavior;
return this;
}
@CustomType.Setter
public Builder cacheDuration(@Nullable String cacheDuration) {
this.cacheDuration = cacheDuration;
return this;
}
@CustomType.Setter
public Builder isCompressionEnabled(@Nullable String isCompressionEnabled) {
this.isCompressionEnabled = isCompressionEnabled;
return this;
}
@CustomType.Setter
public Builder queryParameters(@Nullable String queryParameters) {
this.queryParameters = queryParameters;
return this;
}
@CustomType.Setter
public Builder queryStringCachingBehavior(@Nullable String queryStringCachingBehavior) {
this.queryStringCachingBehavior = queryStringCachingBehavior;
return this;
}
public CacheConfigurationResponse build() {
final var _resultValue = new CacheConfigurationResponse();
_resultValue.cacheBehavior = cacheBehavior;
_resultValue.cacheDuration = cacheDuration;
_resultValue.isCompressionEnabled = isCompressionEnabled;
_resultValue.queryParameters = queryParameters;
_resultValue.queryStringCachingBehavior = queryStringCachingBehavior;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy