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

com.pulumi.azure.appservice.inputs.WindowsWebAppSlotSiteConfigScmIpRestrictionArgs 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.WindowsWebAppSlotSiteConfigScmIpRestrictionHeadersArgs;
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 WindowsWebAppSlotSiteConfigScmIpRestrictionArgs extends com.pulumi.resources.ResourceArgs {

    public static final WindowsWebAppSlotSiteConfigScmIpRestrictionArgs Empty = new WindowsWebAppSlotSiteConfigScmIpRestrictionArgs();

    /**
     * The action to take. Possible values are `Allow` or `Deny`. Defaults to `Allow`.
     * 
     */
    @Import(name="action")
    private @Nullable Output action;

    /**
     * @return The action to take. Possible values are `Allow` or `Deny`. Defaults to `Allow`.
     * 
     */
    public Optional> action() {
        return Optional.ofNullable(this.action);
    }

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

    /**
     * @return The Description of this IP Restriction.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

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

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

    /**
     * The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32`
     * 
     */
    @Import(name="ipAddress")
    private @Nullable Output ipAddress;

    /**
     * @return The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32`
     * 
     */
    public Optional> ipAddress() {
        return Optional.ofNullable(this.ipAddress);
    }

    /**
     * The name which should be used for this `ip_restriction`.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this `ip_restriction`.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The priority value of this `ip_restriction`. Defaults to `65000`.
     * 
     */
    @Import(name="priority")
    private @Nullable Output priority;

    /**
     * @return The priority value of this `ip_restriction`. Defaults to `65000`.
     * 
     */
    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 and only one of `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 and only one of `ip_address`, `service_tag` or `virtual_network_subnet_id` must be specified.
     * 
     */
    public Optional> virtualNetworkSubnetId() {
        return Optional.ofNullable(this.virtualNetworkSubnetId);
    }

    private WindowsWebAppSlotSiteConfigScmIpRestrictionArgs() {}

    private WindowsWebAppSlotSiteConfigScmIpRestrictionArgs(WindowsWebAppSlotSiteConfigScmIpRestrictionArgs $) {
        this.action = $.action;
        this.description = $.description;
        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(WindowsWebAppSlotSiteConfigScmIpRestrictionArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private WindowsWebAppSlotSiteConfigScmIpRestrictionArgs $;

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

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

        /**
         * @param action The action to take. Possible values are `Allow` or `Deny`. Defaults to `Allow`.
         * 
         * @return builder
         * 
         */
        public Builder action(@Nullable Output action) {
            $.action = action;
            return this;
        }

        /**
         * @param action The action to take. Possible values are `Allow` or `Deny`. Defaults to `Allow`.
         * 
         * @return builder
         * 
         */
        public Builder action(String action) {
            return action(Output.of(action));
        }

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

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

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

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

        /**
         * @param ipAddress The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32`
         * 
         * @return builder
         * 
         */
        public Builder ipAddress(@Nullable Output ipAddress) {
            $.ipAddress = ipAddress;
            return this;
        }

        /**
         * @param ipAddress The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32`
         * 
         * @return builder
         * 
         */
        public Builder ipAddress(String ipAddress) {
            return ipAddress(Output.of(ipAddress));
        }

        /**
         * @param name The name which should be used for this `ip_restriction`.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this `ip_restriction`.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param priority The priority value of this `ip_restriction`. Defaults to `65000`.
         * 
         * @return builder
         * 
         */
        public Builder priority(@Nullable Output priority) {
            $.priority = priority;
            return this;
        }

        /**
         * @param priority The priority value of this `ip_restriction`. Defaults to `65000`.
         * 
         * @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 and only one of `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 and only one of `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 WindowsWebAppSlotSiteConfigScmIpRestrictionArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy