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

com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgs 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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgs Empty = new EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgs();

    /**
     * Action to be executed on a header value. Valid values are `Append`, `Delete` and `Overwrite`.
     * 
     */
    @Import(name="action", required=true)
    private Output action;

    /**
     * @return Action to be executed on a header value. Valid values are `Append`, `Delete` and `Overwrite`.
     * 
     */
    public Output action() {
        return this.action;
    }

    /**
     * The header name.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The header name.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The value of the header. Only needed when `action` is set to `Append` or `overwrite`.
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return The value of the header. Only needed when `action` is set to `Append` or `overwrite`.
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    private EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgs() {}

    private EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgs(EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgs $) {
        this.action = $.action;
        this.name = $.name;
        this.value = $.value;
    }

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

    public static final class Builder {
        private EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgs $;

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

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

        /**
         * @param action Action to be executed on a header value. Valid values are `Append`, `Delete` and `Overwrite`.
         * 
         * @return builder
         * 
         */
        public Builder action(Output action) {
            $.action = action;
            return this;
        }

        /**
         * @param action Action to be executed on a header value. Valid values are `Append`, `Delete` and `Overwrite`.
         * 
         * @return builder
         * 
         */
        public Builder action(String action) {
            return action(Output.of(action));
        }

        /**
         * @param name The header name.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The header name.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param value The value of the header. Only needed when `action` is set to `Append` or `overwrite`.
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value The value of the header. Only needed when `action` is set to `Append` or `overwrite`.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgs build() {
            if ($.action == null) {
                throw new MissingRequiredPropertyException("EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgs", "action");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy