com.pulumi.aws.lightsail.inputs.DistributionDefaultCacheBehaviorArgs 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.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class DistributionDefaultCacheBehaviorArgs extends com.pulumi.resources.ResourceArgs {
public static final DistributionDefaultCacheBehaviorArgs Empty = new DistributionDefaultCacheBehaviorArgs();
/**
* The cache behavior of the distribution. Valid values: `cache` and `dont-cache`.
*
*/
@Import(name="behavior", required=true)
private Output behavior;
/**
* @return The cache behavior of the distribution. Valid values: `cache` and `dont-cache`.
*
*/
public Output behavior() {
return this.behavior;
}
private DistributionDefaultCacheBehaviorArgs() {}
private DistributionDefaultCacheBehaviorArgs(DistributionDefaultCacheBehaviorArgs $) {
this.behavior = $.behavior;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DistributionDefaultCacheBehaviorArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private DistributionDefaultCacheBehaviorArgs $;
public Builder() {
$ = new DistributionDefaultCacheBehaviorArgs();
}
public Builder(DistributionDefaultCacheBehaviorArgs defaults) {
$ = new DistributionDefaultCacheBehaviorArgs(Objects.requireNonNull(defaults));
}
/**
* @param behavior The cache behavior of the distribution. Valid values: `cache` and `dont-cache`.
*
* @return builder
*
*/
public Builder behavior(Output behavior) {
$.behavior = behavior;
return this;
}
/**
* @param behavior The cache behavior of the distribution. Valid values: `cache` and `dont-cache`.
*
* @return builder
*
*/
public Builder behavior(String behavior) {
return behavior(Output.of(behavior));
}
public DistributionDefaultCacheBehaviorArgs build() {
if ($.behavior == null) {
throw new MissingRequiredPropertyException("DistributionDefaultCacheBehaviorArgs", "behavior");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy