// *** 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 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<String> behavior;

    /**
     * @return The cache behavior of the distribution. Valid values: `cache` and `dont-cache`.
     * 
     */
    public Output<String> 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<String> 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() {
            $.behavior = Objects.requireNonNull($.behavior, "expected parameter 'behavior' to be non-null");
            return $;
        }
    }

}
