com.pulumi.akamai.outputs.GetPropertyRulesBuilderRulesV20230105BehaviorCacheError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of akamai Show documentation
Show all versions of akamai Show documentation
A Pulumi package for creating and managing akamai cloud resources.
The newest version!
// *** 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.akamai.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetPropertyRulesBuilderRulesV20230105BehaviorCacheError {
/**
* @return Activates the error-caching behavior.
*
*/
private @Nullable Boolean enabled;
/**
* @return Indicates that your Akamai representative has locked this behavior or criteria so that you can't modify it. This option is for internal usage only.
*
*/
private @Nullable Boolean locked;
/**
* @return When enabled, the edge server preserves stale cached objects when the origin returns `500`, `502`, `503`, and `504` error codes. This avoids re-fetching and re-caching content after transient errors.
*
*/
private @Nullable Boolean preserveStale;
/**
* @return This option is for internal usage only.
*
*/
private @Nullable String templateUuid;
/**
* @return Overrides the default caching duration of `10s`. Note that if set to `0`, it is equivalent to `no-cache`, which forces revalidation and may cause a traffic spike. This can be counterproductive when, for example, the origin is producing an error code of `500`.
*
*/
private @Nullable String ttl;
/**
* @return A uuid member indicates that at least one of its component behaviors or criteria is advanced and read-only. You need to preserve this uuid as well when modifying the rule tree. This option is for internal usage only.
*
*/
private @Nullable String uuid;
private GetPropertyRulesBuilderRulesV20230105BehaviorCacheError() {}
/**
* @return Activates the error-caching behavior.
*
*/
public Optional enabled() {
return Optional.ofNullable(this.enabled);
}
/**
* @return Indicates that your Akamai representative has locked this behavior or criteria so that you can't modify it. This option is for internal usage only.
*
*/
public Optional locked() {
return Optional.ofNullable(this.locked);
}
/**
* @return When enabled, the edge server preserves stale cached objects when the origin returns `500`, `502`, `503`, and `504` error codes. This avoids re-fetching and re-caching content after transient errors.
*
*/
public Optional preserveStale() {
return Optional.ofNullable(this.preserveStale);
}
/**
* @return This option is for internal usage only.
*
*/
public Optional templateUuid() {
return Optional.ofNullable(this.templateUuid);
}
/**
* @return Overrides the default caching duration of `10s`. Note that if set to `0`, it is equivalent to `no-cache`, which forces revalidation and may cause a traffic spike. This can be counterproductive when, for example, the origin is producing an error code of `500`.
*
*/
public Optional ttl() {
return Optional.ofNullable(this.ttl);
}
/**
* @return A uuid member indicates that at least one of its component behaviors or criteria is advanced and read-only. You need to preserve this uuid as well when modifying the rule tree. This option is for internal usage only.
*
*/
public Optional uuid() {
return Optional.ofNullable(this.uuid);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetPropertyRulesBuilderRulesV20230105BehaviorCacheError defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean enabled;
private @Nullable Boolean locked;
private @Nullable Boolean preserveStale;
private @Nullable String templateUuid;
private @Nullable String ttl;
private @Nullable String uuid;
public Builder() {}
public Builder(GetPropertyRulesBuilderRulesV20230105BehaviorCacheError defaults) {
Objects.requireNonNull(defaults);
this.enabled = defaults.enabled;
this.locked = defaults.locked;
this.preserveStale = defaults.preserveStale;
this.templateUuid = defaults.templateUuid;
this.ttl = defaults.ttl;
this.uuid = defaults.uuid;
}
@CustomType.Setter
public Builder enabled(@Nullable Boolean enabled) {
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder locked(@Nullable Boolean locked) {
this.locked = locked;
return this;
}
@CustomType.Setter
public Builder preserveStale(@Nullable Boolean preserveStale) {
this.preserveStale = preserveStale;
return this;
}
@CustomType.Setter
public Builder templateUuid(@Nullable String templateUuid) {
this.templateUuid = templateUuid;
return this;
}
@CustomType.Setter
public Builder ttl(@Nullable String ttl) {
this.ttl = ttl;
return this;
}
@CustomType.Setter
public Builder uuid(@Nullable String uuid) {
this.uuid = uuid;
return this;
}
public GetPropertyRulesBuilderRulesV20230105BehaviorCacheError build() {
final var _resultValue = new GetPropertyRulesBuilderRulesV20230105BehaviorCacheError();
_resultValue.enabled = enabled;
_resultValue.locked = locked;
_resultValue.preserveStale = preserveStale;
_resultValue.templateUuid = templateUuid;
_resultValue.ttl = ttl;
_resultValue.uuid = uuid;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy