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

com.pulumi.cloudflare.inputs.RulesetRuleActionParametersArgs Maven / Gradle / Ivy

// *** 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.cloudflare.inputs;

import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersAutominifyArgs;
import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersBrowserTtlArgs;
import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersCacheKeyArgs;
import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersEdgeTtlArgs;
import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersFromListArgs;
import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersFromValueArgs;
import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersHeaderArgs;
import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersMatchedDataArgs;
import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersOriginArgs;
import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersOverridesArgs;
import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersResponseArgs;
import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersServeStaleArgs;
import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersSniArgs;
import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersUriArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class RulesetRuleActionParametersArgs extends com.pulumi.resources.ResourceArgs {

    public static final RulesetRuleActionParametersArgs Empty = new RulesetRuleActionParametersArgs();

    @Import(name="automaticHttpsRewrites")
    private @Nullable Output automaticHttpsRewrites;

    public Optional> automaticHttpsRewrites() {
        return Optional.ofNullable(this.automaticHttpsRewrites);
    }

    @Import(name="autominifies")
    private @Nullable Output> autominifies;

    public Optional>> autominifies() {
        return Optional.ofNullable(this.autominifies);
    }

    @Import(name="bic")
    private @Nullable Output bic;

    public Optional> bic() {
        return Optional.ofNullable(this.bic);
    }

    @Import(name="browserTtl")
    private @Nullable Output browserTtl;

    public Optional> browserTtl() {
        return Optional.ofNullable(this.browserTtl);
    }

    @Import(name="cache")
    private @Nullable Output cache;

    public Optional> cache() {
        return Optional.ofNullable(this.cache);
    }

    @Import(name="cacheKey")
    private @Nullable Output cacheKey;

    public Optional> cacheKey() {
        return Optional.ofNullable(this.cacheKey);
    }

    @Import(name="content")
    private @Nullable Output content;

    public Optional> content() {
        return Optional.ofNullable(this.content);
    }

    @Import(name="contentType")
    private @Nullable Output contentType;

    public Optional> contentType() {
        return Optional.ofNullable(this.contentType);
    }

    @Import(name="cookieFields")
    private @Nullable Output> cookieFields;

    public Optional>> cookieFields() {
        return Optional.ofNullable(this.cookieFields);
    }

    @Import(name="disableApps")
    private @Nullable Output disableApps;

    public Optional> disableApps() {
        return Optional.ofNullable(this.disableApps);
    }

    @Import(name="disableRailgun")
    private @Nullable Output disableRailgun;

    public Optional> disableRailgun() {
        return Optional.ofNullable(this.disableRailgun);
    }

    @Import(name="disableZaraz")
    private @Nullable Output disableZaraz;

    public Optional> disableZaraz() {
        return Optional.ofNullable(this.disableZaraz);
    }

    @Import(name="edgeTtl")
    private @Nullable Output edgeTtl;

    public Optional> edgeTtl() {
        return Optional.ofNullable(this.edgeTtl);
    }

    @Import(name="emailObfuscation")
    private @Nullable Output emailObfuscation;

    public Optional> emailObfuscation() {
        return Optional.ofNullable(this.emailObfuscation);
    }

    @Import(name="fromList")
    private @Nullable Output fromList;

    public Optional> fromList() {
        return Optional.ofNullable(this.fromList);
    }

    @Import(name="fromValue")
    private @Nullable Output fromValue;

    public Optional> fromValue() {
        return Optional.ofNullable(this.fromValue);
    }

    @Import(name="headers")
    private @Nullable Output> headers;

    public Optional>> headers() {
        return Optional.ofNullable(this.headers);
    }

    @Import(name="hostHeader")
    private @Nullable Output hostHeader;

    public Optional> hostHeader() {
        return Optional.ofNullable(this.hostHeader);
    }

    @Import(name="hotlinkProtection")
    private @Nullable Output hotlinkProtection;

    public Optional> hotlinkProtection() {
        return Optional.ofNullable(this.hotlinkProtection);
    }

    /**
     * The ID of this resource.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return The ID of this resource.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    @Import(name="increment")
    private @Nullable Output increment;

    public Optional> increment() {
        return Optional.ofNullable(this.increment);
    }

    @Import(name="matchedData")
    private @Nullable Output matchedData;

    public Optional> matchedData() {
        return Optional.ofNullable(this.matchedData);
    }

    @Import(name="mirage")
    private @Nullable Output mirage;

    public Optional> mirage() {
        return Optional.ofNullable(this.mirage);
    }

    @Import(name="opportunisticEncryption")
    private @Nullable Output opportunisticEncryption;

    public Optional> opportunisticEncryption() {
        return Optional.ofNullable(this.opportunisticEncryption);
    }

    @Import(name="origin")
    private @Nullable Output origin;

    public Optional> origin() {
        return Optional.ofNullable(this.origin);
    }

    @Import(name="originErrorPagePassthru")
    private @Nullable Output originErrorPagePassthru;

    public Optional> originErrorPagePassthru() {
        return Optional.ofNullable(this.originErrorPagePassthru);
    }

    @Import(name="overrides")
    private @Nullable Output overrides;

    public Optional> overrides() {
        return Optional.ofNullable(this.overrides);
    }

    @Import(name="phases")
    private @Nullable Output> phases;

    public Optional>> phases() {
        return Optional.ofNullable(this.phases);
    }

    @Import(name="polish")
    private @Nullable Output polish;

    public Optional> polish() {
        return Optional.ofNullable(this.polish);
    }

    @Import(name="products")
    private @Nullable Output> products;

    public Optional>> products() {
        return Optional.ofNullable(this.products);
    }

    @Import(name="requestFields")
    private @Nullable Output> requestFields;

    public Optional>> requestFields() {
        return Optional.ofNullable(this.requestFields);
    }

    @Import(name="respectStrongEtags")
    private @Nullable Output respectStrongEtags;

    public Optional> respectStrongEtags() {
        return Optional.ofNullable(this.respectStrongEtags);
    }

    @Import(name="responseFields")
    private @Nullable Output> responseFields;

    public Optional>> responseFields() {
        return Optional.ofNullable(this.responseFields);
    }

    @Import(name="responses")
    private @Nullable Output> responses;

    public Optional>> responses() {
        return Optional.ofNullable(this.responses);
    }

    @Import(name="rocketLoader")
    private @Nullable Output rocketLoader;

    public Optional> rocketLoader() {
        return Optional.ofNullable(this.rocketLoader);
    }

    /**
     * List of rules to apply to the ruleset.
     * 
     */
    @Import(name="rules")
    private @Nullable Output> rules;

    /**
     * @return List of rules to apply to the ruleset.
     * 
     */
    public Optional>> rules() {
        return Optional.ofNullable(this.rules);
    }

    @Import(name="ruleset")
    private @Nullable Output ruleset;

    public Optional> ruleset() {
        return Optional.ofNullable(this.ruleset);
    }

    @Import(name="rulesets")
    private @Nullable Output> rulesets;

    public Optional>> rulesets() {
        return Optional.ofNullable(this.rulesets);
    }

    @Import(name="securityLevel")
    private @Nullable Output securityLevel;

    public Optional> securityLevel() {
        return Optional.ofNullable(this.securityLevel);
    }

    @Import(name="serveStale")
    private @Nullable Output serveStale;

    public Optional> serveStale() {
        return Optional.ofNullable(this.serveStale);
    }

    @Import(name="serverSideExcludes")
    private @Nullable Output serverSideExcludes;

    public Optional> serverSideExcludes() {
        return Optional.ofNullable(this.serverSideExcludes);
    }

    @Import(name="sni")
    private @Nullable Output sni;

    public Optional> sni() {
        return Optional.ofNullable(this.sni);
    }

    @Import(name="ssl")
    private @Nullable Output ssl;

    public Optional> ssl() {
        return Optional.ofNullable(this.ssl);
    }

    @Import(name="statusCode")
    private @Nullable Output statusCode;

    public Optional> statusCode() {
        return Optional.ofNullable(this.statusCode);
    }

    @Import(name="sxg")
    private @Nullable Output sxg;

    public Optional> sxg() {
        return Optional.ofNullable(this.sxg);
    }

    @Import(name="uri")
    private @Nullable Output uri;

    public Optional> uri() {
        return Optional.ofNullable(this.uri);
    }

    @Import(name="version")
    private @Nullable Output version;

    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private RulesetRuleActionParametersArgs() {}

    private RulesetRuleActionParametersArgs(RulesetRuleActionParametersArgs $) {
        this.automaticHttpsRewrites = $.automaticHttpsRewrites;
        this.autominifies = $.autominifies;
        this.bic = $.bic;
        this.browserTtl = $.browserTtl;
        this.cache = $.cache;
        this.cacheKey = $.cacheKey;
        this.content = $.content;
        this.contentType = $.contentType;
        this.cookieFields = $.cookieFields;
        this.disableApps = $.disableApps;
        this.disableRailgun = $.disableRailgun;
        this.disableZaraz = $.disableZaraz;
        this.edgeTtl = $.edgeTtl;
        this.emailObfuscation = $.emailObfuscation;
        this.fromList = $.fromList;
        this.fromValue = $.fromValue;
        this.headers = $.headers;
        this.hostHeader = $.hostHeader;
        this.hotlinkProtection = $.hotlinkProtection;
        this.id = $.id;
        this.increment = $.increment;
        this.matchedData = $.matchedData;
        this.mirage = $.mirage;
        this.opportunisticEncryption = $.opportunisticEncryption;
        this.origin = $.origin;
        this.originErrorPagePassthru = $.originErrorPagePassthru;
        this.overrides = $.overrides;
        this.phases = $.phases;
        this.polish = $.polish;
        this.products = $.products;
        this.requestFields = $.requestFields;
        this.respectStrongEtags = $.respectStrongEtags;
        this.responseFields = $.responseFields;
        this.responses = $.responses;
        this.rocketLoader = $.rocketLoader;
        this.rules = $.rules;
        this.ruleset = $.ruleset;
        this.rulesets = $.rulesets;
        this.securityLevel = $.securityLevel;
        this.serveStale = $.serveStale;
        this.serverSideExcludes = $.serverSideExcludes;
        this.sni = $.sni;
        this.ssl = $.ssl;
        this.statusCode = $.statusCode;
        this.sxg = $.sxg;
        this.uri = $.uri;
        this.version = $.version;
    }

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

    public static final class Builder {
        private RulesetRuleActionParametersArgs $;

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

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

        public Builder automaticHttpsRewrites(@Nullable Output automaticHttpsRewrites) {
            $.automaticHttpsRewrites = automaticHttpsRewrites;
            return this;
        }

        public Builder automaticHttpsRewrites(Boolean automaticHttpsRewrites) {
            return automaticHttpsRewrites(Output.of(automaticHttpsRewrites));
        }

        public Builder autominifies(@Nullable Output> autominifies) {
            $.autominifies = autominifies;
            return this;
        }

        public Builder autominifies(List autominifies) {
            return autominifies(Output.of(autominifies));
        }

        public Builder autominifies(RulesetRuleActionParametersAutominifyArgs... autominifies) {
            return autominifies(List.of(autominifies));
        }

        public Builder bic(@Nullable Output bic) {
            $.bic = bic;
            return this;
        }

        public Builder bic(Boolean bic) {
            return bic(Output.of(bic));
        }

        public Builder browserTtl(@Nullable Output browserTtl) {
            $.browserTtl = browserTtl;
            return this;
        }

        public Builder browserTtl(RulesetRuleActionParametersBrowserTtlArgs browserTtl) {
            return browserTtl(Output.of(browserTtl));
        }

        public Builder cache(@Nullable Output cache) {
            $.cache = cache;
            return this;
        }

        public Builder cache(Boolean cache) {
            return cache(Output.of(cache));
        }

        public Builder cacheKey(@Nullable Output cacheKey) {
            $.cacheKey = cacheKey;
            return this;
        }

        public Builder cacheKey(RulesetRuleActionParametersCacheKeyArgs cacheKey) {
            return cacheKey(Output.of(cacheKey));
        }

        public Builder content(@Nullable Output content) {
            $.content = content;
            return this;
        }

        public Builder content(String content) {
            return content(Output.of(content));
        }

        public Builder contentType(@Nullable Output contentType) {
            $.contentType = contentType;
            return this;
        }

        public Builder contentType(String contentType) {
            return contentType(Output.of(contentType));
        }

        public Builder cookieFields(@Nullable Output> cookieFields) {
            $.cookieFields = cookieFields;
            return this;
        }

        public Builder cookieFields(List cookieFields) {
            return cookieFields(Output.of(cookieFields));
        }

        public Builder cookieFields(String... cookieFields) {
            return cookieFields(List.of(cookieFields));
        }

        public Builder disableApps(@Nullable Output disableApps) {
            $.disableApps = disableApps;
            return this;
        }

        public Builder disableApps(Boolean disableApps) {
            return disableApps(Output.of(disableApps));
        }

        public Builder disableRailgun(@Nullable Output disableRailgun) {
            $.disableRailgun = disableRailgun;
            return this;
        }

        public Builder disableRailgun(Boolean disableRailgun) {
            return disableRailgun(Output.of(disableRailgun));
        }

        public Builder disableZaraz(@Nullable Output disableZaraz) {
            $.disableZaraz = disableZaraz;
            return this;
        }

        public Builder disableZaraz(Boolean disableZaraz) {
            return disableZaraz(Output.of(disableZaraz));
        }

        public Builder edgeTtl(@Nullable Output edgeTtl) {
            $.edgeTtl = edgeTtl;
            return this;
        }

        public Builder edgeTtl(RulesetRuleActionParametersEdgeTtlArgs edgeTtl) {
            return edgeTtl(Output.of(edgeTtl));
        }

        public Builder emailObfuscation(@Nullable Output emailObfuscation) {
            $.emailObfuscation = emailObfuscation;
            return this;
        }

        public Builder emailObfuscation(Boolean emailObfuscation) {
            return emailObfuscation(Output.of(emailObfuscation));
        }

        public Builder fromList(@Nullable Output fromList) {
            $.fromList = fromList;
            return this;
        }

        public Builder fromList(RulesetRuleActionParametersFromListArgs fromList) {
            return fromList(Output.of(fromList));
        }

        public Builder fromValue(@Nullable Output fromValue) {
            $.fromValue = fromValue;
            return this;
        }

        public Builder fromValue(RulesetRuleActionParametersFromValueArgs fromValue) {
            return fromValue(Output.of(fromValue));
        }

        public Builder headers(@Nullable Output> headers) {
            $.headers = headers;
            return this;
        }

        public Builder headers(List headers) {
            return headers(Output.of(headers));
        }

        public Builder headers(RulesetRuleActionParametersHeaderArgs... headers) {
            return headers(List.of(headers));
        }

        public Builder hostHeader(@Nullable Output hostHeader) {
            $.hostHeader = hostHeader;
            return this;
        }

        public Builder hostHeader(String hostHeader) {
            return hostHeader(Output.of(hostHeader));
        }

        public Builder hotlinkProtection(@Nullable Output hotlinkProtection) {
            $.hotlinkProtection = hotlinkProtection;
            return this;
        }

        public Builder hotlinkProtection(Boolean hotlinkProtection) {
            return hotlinkProtection(Output.of(hotlinkProtection));
        }

        /**
         * @param id The ID of this resource.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id The ID of this resource.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        public Builder increment(@Nullable Output increment) {
            $.increment = increment;
            return this;
        }

        public Builder increment(Integer increment) {
            return increment(Output.of(increment));
        }

        public Builder matchedData(@Nullable Output matchedData) {
            $.matchedData = matchedData;
            return this;
        }

        public Builder matchedData(RulesetRuleActionParametersMatchedDataArgs matchedData) {
            return matchedData(Output.of(matchedData));
        }

        public Builder mirage(@Nullable Output mirage) {
            $.mirage = mirage;
            return this;
        }

        public Builder mirage(Boolean mirage) {
            return mirage(Output.of(mirage));
        }

        public Builder opportunisticEncryption(@Nullable Output opportunisticEncryption) {
            $.opportunisticEncryption = opportunisticEncryption;
            return this;
        }

        public Builder opportunisticEncryption(Boolean opportunisticEncryption) {
            return opportunisticEncryption(Output.of(opportunisticEncryption));
        }

        public Builder origin(@Nullable Output origin) {
            $.origin = origin;
            return this;
        }

        public Builder origin(RulesetRuleActionParametersOriginArgs origin) {
            return origin(Output.of(origin));
        }

        public Builder originErrorPagePassthru(@Nullable Output originErrorPagePassthru) {
            $.originErrorPagePassthru = originErrorPagePassthru;
            return this;
        }

        public Builder originErrorPagePassthru(Boolean originErrorPagePassthru) {
            return originErrorPagePassthru(Output.of(originErrorPagePassthru));
        }

        public Builder overrides(@Nullable Output overrides) {
            $.overrides = overrides;
            return this;
        }

        public Builder overrides(RulesetRuleActionParametersOverridesArgs overrides) {
            return overrides(Output.of(overrides));
        }

        public Builder phases(@Nullable Output> phases) {
            $.phases = phases;
            return this;
        }

        public Builder phases(List phases) {
            return phases(Output.of(phases));
        }

        public Builder phases(String... phases) {
            return phases(List.of(phases));
        }

        public Builder polish(@Nullable Output polish) {
            $.polish = polish;
            return this;
        }

        public Builder polish(String polish) {
            return polish(Output.of(polish));
        }

        public Builder products(@Nullable Output> products) {
            $.products = products;
            return this;
        }

        public Builder products(List products) {
            return products(Output.of(products));
        }

        public Builder products(String... products) {
            return products(List.of(products));
        }

        public Builder requestFields(@Nullable Output> requestFields) {
            $.requestFields = requestFields;
            return this;
        }

        public Builder requestFields(List requestFields) {
            return requestFields(Output.of(requestFields));
        }

        public Builder requestFields(String... requestFields) {
            return requestFields(List.of(requestFields));
        }

        public Builder respectStrongEtags(@Nullable Output respectStrongEtags) {
            $.respectStrongEtags = respectStrongEtags;
            return this;
        }

        public Builder respectStrongEtags(Boolean respectStrongEtags) {
            return respectStrongEtags(Output.of(respectStrongEtags));
        }

        public Builder responseFields(@Nullable Output> responseFields) {
            $.responseFields = responseFields;
            return this;
        }

        public Builder responseFields(List responseFields) {
            return responseFields(Output.of(responseFields));
        }

        public Builder responseFields(String... responseFields) {
            return responseFields(List.of(responseFields));
        }

        public Builder responses(@Nullable Output> responses) {
            $.responses = responses;
            return this;
        }

        public Builder responses(List responses) {
            return responses(Output.of(responses));
        }

        public Builder responses(RulesetRuleActionParametersResponseArgs... responses) {
            return responses(List.of(responses));
        }

        public Builder rocketLoader(@Nullable Output rocketLoader) {
            $.rocketLoader = rocketLoader;
            return this;
        }

        public Builder rocketLoader(Boolean rocketLoader) {
            return rocketLoader(Output.of(rocketLoader));
        }

        /**
         * @param rules List of rules to apply to the ruleset.
         * 
         * @return builder
         * 
         */
        public Builder rules(@Nullable Output> rules) {
            $.rules = rules;
            return this;
        }

        /**
         * @param rules List of rules to apply to the ruleset.
         * 
         * @return builder
         * 
         */
        public Builder rules(Map rules) {
            return rules(Output.of(rules));
        }

        public Builder ruleset(@Nullable Output ruleset) {
            $.ruleset = ruleset;
            return this;
        }

        public Builder ruleset(String ruleset) {
            return ruleset(Output.of(ruleset));
        }

        public Builder rulesets(@Nullable Output> rulesets) {
            $.rulesets = rulesets;
            return this;
        }

        public Builder rulesets(List rulesets) {
            return rulesets(Output.of(rulesets));
        }

        public Builder rulesets(String... rulesets) {
            return rulesets(List.of(rulesets));
        }

        public Builder securityLevel(@Nullable Output securityLevel) {
            $.securityLevel = securityLevel;
            return this;
        }

        public Builder securityLevel(String securityLevel) {
            return securityLevel(Output.of(securityLevel));
        }

        public Builder serveStale(@Nullable Output serveStale) {
            $.serveStale = serveStale;
            return this;
        }

        public Builder serveStale(RulesetRuleActionParametersServeStaleArgs serveStale) {
            return serveStale(Output.of(serveStale));
        }

        public Builder serverSideExcludes(@Nullable Output serverSideExcludes) {
            $.serverSideExcludes = serverSideExcludes;
            return this;
        }

        public Builder serverSideExcludes(Boolean serverSideExcludes) {
            return serverSideExcludes(Output.of(serverSideExcludes));
        }

        public Builder sni(@Nullable Output sni) {
            $.sni = sni;
            return this;
        }

        public Builder sni(RulesetRuleActionParametersSniArgs sni) {
            return sni(Output.of(sni));
        }

        public Builder ssl(@Nullable Output ssl) {
            $.ssl = ssl;
            return this;
        }

        public Builder ssl(String ssl) {
            return ssl(Output.of(ssl));
        }

        public Builder statusCode(@Nullable Output statusCode) {
            $.statusCode = statusCode;
            return this;
        }

        public Builder statusCode(Integer statusCode) {
            return statusCode(Output.of(statusCode));
        }

        public Builder sxg(@Nullable Output sxg) {
            $.sxg = sxg;
            return this;
        }

        public Builder sxg(Boolean sxg) {
            return sxg(Output.of(sxg));
        }

        public Builder uri(@Nullable Output uri) {
            $.uri = uri;
            return this;
        }

        public Builder uri(RulesetRuleActionParametersUriArgs uri) {
            return uri(Output.of(uri));
        }

        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        public Builder version(String version) {
            return version(Output.of(version));
        }

        public RulesetRuleActionParametersArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy