![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.cdn.outputs.EndpointGlobalDeliveryRuleCacheExpirationAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.cdn.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class EndpointGlobalDeliveryRuleCacheExpirationAction {
/**
* @return The behavior of the cache. Valid values are `BypassCache`, `Override` and `SetIfMissing`.
*
*/
private String behavior;
/**
* @return Duration of the cache. Only allowed when `behavior` is set to `Override` or `SetIfMissing`. Format: `[d.]hh:mm:ss`
*
*/
private @Nullable String duration;
private EndpointGlobalDeliveryRuleCacheExpirationAction() {}
/**
* @return The behavior of the cache. Valid values are `BypassCache`, `Override` and `SetIfMissing`.
*
*/
public String behavior() {
return this.behavior;
}
/**
* @return Duration of the cache. Only allowed when `behavior` is set to `Override` or `SetIfMissing`. Format: `[d.]hh:mm:ss`
*
*/
public Optional duration() {
return Optional.ofNullable(this.duration);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EndpointGlobalDeliveryRuleCacheExpirationAction defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String behavior;
private @Nullable String duration;
public Builder() {}
public Builder(EndpointGlobalDeliveryRuleCacheExpirationAction defaults) {
Objects.requireNonNull(defaults);
this.behavior = defaults.behavior;
this.duration = defaults.duration;
}
@CustomType.Setter
public Builder behavior(String behavior) {
if (behavior == null) {
throw new MissingRequiredPropertyException("EndpointGlobalDeliveryRuleCacheExpirationAction", "behavior");
}
this.behavior = behavior;
return this;
}
@CustomType.Setter
public Builder duration(@Nullable String duration) {
this.duration = duration;
return this;
}
public EndpointGlobalDeliveryRuleCacheExpirationAction build() {
final var _resultValue = new EndpointGlobalDeliveryRuleCacheExpirationAction();
_resultValue.behavior = behavior;
_resultValue.duration = duration;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy