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

com.pulumi.azure.appservice.inputs.AppServiceSiteConfigIpRestrictionArgs 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.inputs;

import com.pulumi.azure.appservice.inputs.AppServiceSiteConfigIpRestrictionHeadersArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AppServiceSiteConfigIpRestrictionArgs Empty = new AppServiceSiteConfigIpRestrictionArgs();

    /**
     * Does this restriction `Allow` or `Deny` access for this IP range. Defaults to `Allow`.
     * 
     */
    @Import(name="action")
    private @Nullable Output action;

    /**
     * @return Does this restriction `Allow` or `Deny` access for this IP range. Defaults to `Allow`.
     * 
     */
    public Optional> action() {
        return Optional.ofNullable(this.action);
    }

    /**
     * The `headers` block for this specific `ip_restriction` as defined below.
     * 
     */
    @Import(name="headers")
    private @Nullable Output headers;

    /**
     * @return The `headers` block for this specific `ip_restriction` as defined below.
     * 
     */
    public Optional> headers() {
        return Optional.ofNullable(this.headers);
    }

    /**
     * The IP Address used for this IP Restriction in CIDR notation.
     * 
     */
    @Import(name="ipAddress")
    private @Nullable Output ipAddress;

    /**
     * @return The IP Address used for this IP Restriction in CIDR notation.
     * 
     */
    public Optional> ipAddress() {
        return Optional.ofNullable(this.ipAddress);
    }

    /**
     * The name for this IP Restriction.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name for this IP Restriction.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The priority for this IP Restriction. Restrictions are enforced in priority order. By default, priority is set to 65000 if not specified.
     * 
     */
    @Import(name="priority")
    private @Nullable Output priority;

    /**
     * @return The priority for this IP Restriction. Restrictions are enforced in priority order. By default, priority is set to 65000 if not specified.
     * 
     */
    public Optional> priority() {
        return Optional.ofNullable(this.priority);
    }

    /**
     * The Service Tag used for this IP Restriction.
     * 
     */
    @Import(name="serviceTag")
    private @Nullable Output serviceTag;

    /**
     * @return The Service Tag used for this IP Restriction.
     * 
     */
    public Optional> serviceTag() {
        return Optional.ofNullable(this.serviceTag);
    }

    /**
     * The Virtual Network Subnet ID used for this IP Restriction.
     * 
     * > **NOTE:** One of either `ip_address`, `service_tag` or `virtual_network_subnet_id` must be specified
     * 
     */
    @Import(name="virtualNetworkSubnetId")
    private @Nullable Output virtualNetworkSubnetId;

    /**
     * @return The Virtual Network Subnet ID used for this IP Restriction.
     * 
     * > **NOTE:** One of either `ip_address`, `service_tag` or `virtual_network_subnet_id` must be specified
     * 
     */
    public Optional> virtualNetworkSubnetId() {
        return Optional.ofNullable(this.virtualNetworkSubnetId);
    }

    private AppServiceSiteConfigIpRestrictionArgs() {}

    private AppServiceSiteConfigIpRestrictionArgs(AppServiceSiteConfigIpRestrictionArgs $) {
        this.action = $.action;
        this.headers = $.headers;
        this.ipAddress = $.ipAddress;
        this.name = $.name;
        this.priority = $.priority;
        this.serviceTag = $.serviceTag;
        this.virtualNetworkSubnetId = $.virtualNetworkSubnetId;
    }

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

    public static final class Builder {
        private AppServiceSiteConfigIpRestrictionArgs $;

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

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

        /**
         * @param action Does this restriction `Allow` or `Deny` access for this IP range. Defaults to `Allow`.
         * 
         * @return builder
         * 
         */
        public Builder action(@Nullable Output action) {
            $.action = action;
            return this;
        }

        /**
         * @param action Does this restriction `Allow` or `Deny` access for this IP range. Defaults to `Allow`.
         * 
         * @return builder
         * 
         */
        public Builder action(String action) {
            return action(Output.of(action));
        }

        /**
         * @param headers The `headers` block for this specific `ip_restriction` as defined below.
         * 
         * @return builder
         * 
         */
        public Builder headers(@Nullable Output headers) {
            $.headers = headers;
            return this;
        }

        /**
         * @param headers The `headers` block for this specific `ip_restriction` as defined below.
         * 
         * @return builder
         * 
         */
        public Builder headers(AppServiceSiteConfigIpRestrictionHeadersArgs headers) {
            return headers(Output.of(headers));
        }

        /**
         * @param ipAddress The IP Address used for this IP Restriction in CIDR notation.
         * 
         * @return builder
         * 
         */
        public Builder ipAddress(@Nullable Output ipAddress) {
            $.ipAddress = ipAddress;
            return this;
        }

        /**
         * @param ipAddress The IP Address used for this IP Restriction in CIDR notation.
         * 
         * @return builder
         * 
         */
        public Builder ipAddress(String ipAddress) {
            return ipAddress(Output.of(ipAddress));
        }

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

        /**
         * @param name The name for this IP Restriction.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param priority The priority for this IP Restriction. Restrictions are enforced in priority order. By default, priority is set to 65000 if not specified.
         * 
         * @return builder
         * 
         */
        public Builder priority(@Nullable Output priority) {
            $.priority = priority;
            return this;
        }

        /**
         * @param priority The priority for this IP Restriction. Restrictions are enforced in priority order. By default, priority is set to 65000 if not specified.
         * 
         * @return builder
         * 
         */
        public Builder priority(Integer priority) {
            return priority(Output.of(priority));
        }

        /**
         * @param serviceTag The Service Tag used for this IP Restriction.
         * 
         * @return builder
         * 
         */
        public Builder serviceTag(@Nullable Output serviceTag) {
            $.serviceTag = serviceTag;
            return this;
        }

        /**
         * @param serviceTag The Service Tag used for this IP Restriction.
         * 
         * @return builder
         * 
         */
        public Builder serviceTag(String serviceTag) {
            return serviceTag(Output.of(serviceTag));
        }

        /**
         * @param virtualNetworkSubnetId The Virtual Network Subnet ID used for this IP Restriction.
         * 
         * > **NOTE:** One of either `ip_address`, `service_tag` or `virtual_network_subnet_id` must be specified
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkSubnetId(@Nullable Output virtualNetworkSubnetId) {
            $.virtualNetworkSubnetId = virtualNetworkSubnetId;
            return this;
        }

        /**
         * @param virtualNetworkSubnetId The Virtual Network Subnet ID used for this IP Restriction.
         * 
         * > **NOTE:** One of either `ip_address`, `service_tag` or `virtual_network_subnet_id` must be specified
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkSubnetId(String virtualNetworkSubnetId) {
            return virtualNetworkSubnetId(Output.of(virtualNetworkSubnetId));
        }

        public AppServiceSiteConfigIpRestrictionArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy