All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.lightsail.inputs.DistributionCacheBehaviorArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) 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.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 DistributionCacheBehaviorArgs extends com.pulumi.resources.ResourceArgs {

    public static final DistributionCacheBehaviorArgs Empty = new DistributionCacheBehaviorArgs();

    /**
     * The cache behavior for the specified path.
     * 
     */
    @Import(name="behavior", required=true)
    private Output behavior;

    /**
     * @return The cache behavior for the specified path.
     * 
     */
    public Output behavior() {
        return this.behavior;
    }

    /**
     * The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/\*), and file types (\*.html, \*jpg, \*js). Directories and file paths are case-sensitive.
     * 
     */
    @Import(name="path", required=true)
    private Output path;

    /**
     * @return The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/\*), and file types (\*.html, \*jpg, \*js). Directories and file paths are case-sensitive.
     * 
     */
    public Output path() {
        return this.path;
    }

    private DistributionCacheBehaviorArgs() {}

    private DistributionCacheBehaviorArgs(DistributionCacheBehaviorArgs $) {
        this.behavior = $.behavior;
        this.path = $.path;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(DistributionCacheBehaviorArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private DistributionCacheBehaviorArgs $;

        public Builder() {
            $ = new DistributionCacheBehaviorArgs();
        }

        public Builder(DistributionCacheBehaviorArgs defaults) {
            $ = new DistributionCacheBehaviorArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param behavior The cache behavior for the specified path.
         * 
         * @return builder
         * 
         */
        public Builder behavior(Output behavior) {
            $.behavior = behavior;
            return this;
        }

        /**
         * @param behavior The cache behavior for the specified path.
         * 
         * @return builder
         * 
         */
        public Builder behavior(String behavior) {
            return behavior(Output.of(behavior));
        }

        /**
         * @param path The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/\*), and file types (\*.html, \*jpg, \*js). Directories and file paths are case-sensitive.
         * 
         * @return builder
         * 
         */
        public Builder path(Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/\*), and file types (\*.html, \*jpg, \*js). Directories and file paths are case-sensitive.
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        public DistributionCacheBehaviorArgs build() {
            if ($.behavior == null) {
                throw new MissingRequiredPropertyException("DistributionCacheBehaviorArgs", "behavior");
            }
            if ($.path == null) {
                throw new MissingRequiredPropertyException("DistributionCacheBehaviorArgs", "path");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy