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

com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleArgs Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 6.10.0-alpha.1731737215
Show 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.azure.cdn.inputs;

import com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleCacheExpirationActionArgs;
import com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleCacheKeyQueryStringActionArgs;
import com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleModifyRequestHeaderActionArgs;
import com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgs;
import com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleUrlRedirectActionArgs;
import com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleUrlRewriteActionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final EndpointGlobalDeliveryRuleArgs Empty = new EndpointGlobalDeliveryRuleArgs();

    /**
     * A `cache_expiration_action` block as defined above.
     * 
     */
    @Import(name="cacheExpirationAction")
    private @Nullable Output cacheExpirationAction;

    /**
     * @return A `cache_expiration_action` block as defined above.
     * 
     */
    public Optional> cacheExpirationAction() {
        return Optional.ofNullable(this.cacheExpirationAction);
    }

    /**
     * A `cache_key_query_string_action` block as defined above.
     * 
     */
    @Import(name="cacheKeyQueryStringAction")
    private @Nullable Output cacheKeyQueryStringAction;

    /**
     * @return A `cache_key_query_string_action` block as defined above.
     * 
     */
    public Optional> cacheKeyQueryStringAction() {
        return Optional.ofNullable(this.cacheKeyQueryStringAction);
    }

    /**
     * A `modify_request_header_action` block as defined below.
     * 
     */
    @Import(name="modifyRequestHeaderActions")
    private @Nullable Output> modifyRequestHeaderActions;

    /**
     * @return A `modify_request_header_action` block as defined below.
     * 
     */
    public Optional>> modifyRequestHeaderActions() {
        return Optional.ofNullable(this.modifyRequestHeaderActions);
    }

    /**
     * A `modify_response_header_action` block as defined below.
     * 
     */
    @Import(name="modifyResponseHeaderActions")
    private @Nullable Output> modifyResponseHeaderActions;

    /**
     * @return A `modify_response_header_action` block as defined below.
     * 
     */
    public Optional>> modifyResponseHeaderActions() {
        return Optional.ofNullable(this.modifyResponseHeaderActions);
    }

    /**
     * A `url_redirect_action` block as defined below.
     * 
     */
    @Import(name="urlRedirectAction")
    private @Nullable Output urlRedirectAction;

    /**
     * @return A `url_redirect_action` block as defined below.
     * 
     */
    public Optional> urlRedirectAction() {
        return Optional.ofNullable(this.urlRedirectAction);
    }

    /**
     * A `url_rewrite_action` block as defined below.
     * 
     */
    @Import(name="urlRewriteAction")
    private @Nullable Output urlRewriteAction;

    /**
     * @return A `url_rewrite_action` block as defined below.
     * 
     */
    public Optional> urlRewriteAction() {
        return Optional.ofNullable(this.urlRewriteAction);
    }

    private EndpointGlobalDeliveryRuleArgs() {}

    private EndpointGlobalDeliveryRuleArgs(EndpointGlobalDeliveryRuleArgs $) {
        this.cacheExpirationAction = $.cacheExpirationAction;
        this.cacheKeyQueryStringAction = $.cacheKeyQueryStringAction;
        this.modifyRequestHeaderActions = $.modifyRequestHeaderActions;
        this.modifyResponseHeaderActions = $.modifyResponseHeaderActions;
        this.urlRedirectAction = $.urlRedirectAction;
        this.urlRewriteAction = $.urlRewriteAction;
    }

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

    public static final class Builder {
        private EndpointGlobalDeliveryRuleArgs $;

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

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

        /**
         * @param cacheExpirationAction A `cache_expiration_action` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder cacheExpirationAction(@Nullable Output cacheExpirationAction) {
            $.cacheExpirationAction = cacheExpirationAction;
            return this;
        }

        /**
         * @param cacheExpirationAction A `cache_expiration_action` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder cacheExpirationAction(EndpointGlobalDeliveryRuleCacheExpirationActionArgs cacheExpirationAction) {
            return cacheExpirationAction(Output.of(cacheExpirationAction));
        }

        /**
         * @param cacheKeyQueryStringAction A `cache_key_query_string_action` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder cacheKeyQueryStringAction(@Nullable Output cacheKeyQueryStringAction) {
            $.cacheKeyQueryStringAction = cacheKeyQueryStringAction;
            return this;
        }

        /**
         * @param cacheKeyQueryStringAction A `cache_key_query_string_action` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder cacheKeyQueryStringAction(EndpointGlobalDeliveryRuleCacheKeyQueryStringActionArgs cacheKeyQueryStringAction) {
            return cacheKeyQueryStringAction(Output.of(cacheKeyQueryStringAction));
        }

        /**
         * @param modifyRequestHeaderActions A `modify_request_header_action` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder modifyRequestHeaderActions(@Nullable Output> modifyRequestHeaderActions) {
            $.modifyRequestHeaderActions = modifyRequestHeaderActions;
            return this;
        }

        /**
         * @param modifyRequestHeaderActions A `modify_request_header_action` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder modifyRequestHeaderActions(List modifyRequestHeaderActions) {
            return modifyRequestHeaderActions(Output.of(modifyRequestHeaderActions));
        }

        /**
         * @param modifyRequestHeaderActions A `modify_request_header_action` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder modifyRequestHeaderActions(EndpointGlobalDeliveryRuleModifyRequestHeaderActionArgs... modifyRequestHeaderActions) {
            return modifyRequestHeaderActions(List.of(modifyRequestHeaderActions));
        }

        /**
         * @param modifyResponseHeaderActions A `modify_response_header_action` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder modifyResponseHeaderActions(@Nullable Output> modifyResponseHeaderActions) {
            $.modifyResponseHeaderActions = modifyResponseHeaderActions;
            return this;
        }

        /**
         * @param modifyResponseHeaderActions A `modify_response_header_action` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder modifyResponseHeaderActions(List modifyResponseHeaderActions) {
            return modifyResponseHeaderActions(Output.of(modifyResponseHeaderActions));
        }

        /**
         * @param modifyResponseHeaderActions A `modify_response_header_action` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder modifyResponseHeaderActions(EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgs... modifyResponseHeaderActions) {
            return modifyResponseHeaderActions(List.of(modifyResponseHeaderActions));
        }

        /**
         * @param urlRedirectAction A `url_redirect_action` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder urlRedirectAction(@Nullable Output urlRedirectAction) {
            $.urlRedirectAction = urlRedirectAction;
            return this;
        }

        /**
         * @param urlRedirectAction A `url_redirect_action` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder urlRedirectAction(EndpointGlobalDeliveryRuleUrlRedirectActionArgs urlRedirectAction) {
            return urlRedirectAction(Output.of(urlRedirectAction));
        }

        /**
         * @param urlRewriteAction A `url_rewrite_action` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder urlRewriteAction(@Nullable Output urlRewriteAction) {
            $.urlRewriteAction = urlRewriteAction;
            return this;
        }

        /**
         * @param urlRewriteAction A `url_rewrite_action` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder urlRewriteAction(EndpointGlobalDeliveryRuleUrlRewriteActionArgs urlRewriteAction) {
            return urlRewriteAction(Output.of(urlRewriteAction));
        }

        public EndpointGlobalDeliveryRuleArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy