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

com.pulumi.azure.appservice.outputs.FunctionAppSlotSiteConfigIpRestrictionHeaders 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.appservice.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class FunctionAppSlotSiteConfigIpRestrictionHeaders {
    /**
     * @return A list of allowed Azure FrontDoor IDs in UUID notation with a maximum of 8.
     * 
     */
    private @Nullable List xAzureFdids;
    /**
     * @return A list to allow the Azure FrontDoor health probe header. Only allowed value is "1".
     * 
     */
    private @Nullable String xFdHealthProbe;
    /**
     * @return A list of allowed 'X-Forwarded-For' IPs in CIDR notation with a maximum of 8
     * 
     */
    private @Nullable List xForwardedFors;
    /**
     * @return A list of allowed 'X-Forwarded-Host' domains with a maximum of 8.
     * 
     */
    private @Nullable List xForwardedHosts;

    private FunctionAppSlotSiteConfigIpRestrictionHeaders() {}
    /**
     * @return A list of allowed Azure FrontDoor IDs in UUID notation with a maximum of 8.
     * 
     */
    public List xAzureFdids() {
        return this.xAzureFdids == null ? List.of() : this.xAzureFdids;
    }
    /**
     * @return A list to allow the Azure FrontDoor health probe header. Only allowed value is "1".
     * 
     */
    public Optional xFdHealthProbe() {
        return Optional.ofNullable(this.xFdHealthProbe);
    }
    /**
     * @return A list of allowed 'X-Forwarded-For' IPs in CIDR notation with a maximum of 8
     * 
     */
    public List xForwardedFors() {
        return this.xForwardedFors == null ? List.of() : this.xForwardedFors;
    }
    /**
     * @return A list of allowed 'X-Forwarded-Host' domains with a maximum of 8.
     * 
     */
    public List xForwardedHosts() {
        return this.xForwardedHosts == null ? List.of() : this.xForwardedHosts;
    }

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

    public static Builder builder(FunctionAppSlotSiteConfigIpRestrictionHeaders defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List xAzureFdids;
        private @Nullable String xFdHealthProbe;
        private @Nullable List xForwardedFors;
        private @Nullable List xForwardedHosts;
        public Builder() {}
        public Builder(FunctionAppSlotSiteConfigIpRestrictionHeaders defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.xAzureFdids = defaults.xAzureFdids;
    	      this.xFdHealthProbe = defaults.xFdHealthProbe;
    	      this.xForwardedFors = defaults.xForwardedFors;
    	      this.xForwardedHosts = defaults.xForwardedHosts;
        }

        @CustomType.Setter
        public Builder xAzureFdids(@Nullable List xAzureFdids) {

            this.xAzureFdids = xAzureFdids;
            return this;
        }
        public Builder xAzureFdids(String... xAzureFdids) {
            return xAzureFdids(List.of(xAzureFdids));
        }
        @CustomType.Setter
        public Builder xFdHealthProbe(@Nullable String xFdHealthProbe) {

            this.xFdHealthProbe = xFdHealthProbe;
            return this;
        }
        @CustomType.Setter
        public Builder xForwardedFors(@Nullable List xForwardedFors) {

            this.xForwardedFors = xForwardedFors;
            return this;
        }
        public Builder xForwardedFors(String... xForwardedFors) {
            return xForwardedFors(List.of(xForwardedFors));
        }
        @CustomType.Setter
        public Builder xForwardedHosts(@Nullable List xForwardedHosts) {

            this.xForwardedHosts = xForwardedHosts;
            return this;
        }
        public Builder xForwardedHosts(String... xForwardedHosts) {
            return xForwardedHosts(List.of(xForwardedHosts));
        }
        public FunctionAppSlotSiteConfigIpRestrictionHeaders build() {
            final var _resultValue = new FunctionAppSlotSiteConfigIpRestrictionHeaders();
            _resultValue.xAzureFdids = xAzureFdids;
            _resultValue.xFdHealthProbe = xFdHealthProbe;
            _resultValue.xForwardedFors = xForwardedFors;
            _resultValue.xForwardedHosts = xForwardedHosts;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy