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

com.pulumi.azure.appservice.outputs.WindowsWebAppSiteConfigScmIpRestriction 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.azure.appservice.outputs.WindowsWebAppSiteConfigScmIpRestrictionHeaders;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class WindowsWebAppSiteConfigScmIpRestriction {
    /**
     * @return The action to take. Possible values are `Allow` or `Deny`. Defaults to `Allow`.
     * 
     */
    private @Nullable String action;
    /**
     * @return The Description of this IP Restriction.
     * 
     */
    private @Nullable String description;
    /**
     * @return A `headers` block as defined above.
     * 
     */
    private @Nullable WindowsWebAppSiteConfigScmIpRestrictionHeaders headers;
    /**
     * @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`
     * 
     */
    private @Nullable String ipAddress;
    /**
     * @return The name which should be used for this `ip_restriction`.
     * 
     */
    private @Nullable String name;
    /**
     * @return The priority value of this `ip_restriction`. Defaults to `65000`.
     * 
     */
    private @Nullable Integer priority;
    /**
     * @return The Service Tag used for this IP Restriction.
     * 
     */
    private @Nullable String serviceTag;
    /**
     * @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.
     * 
     */
    private @Nullable String virtualNetworkSubnetId;

    private WindowsWebAppSiteConfigScmIpRestriction() {}
    /**
     * @return The action to take. Possible values are `Allow` or `Deny`. Defaults to `Allow`.
     * 
     */
    public Optional action() {
        return Optional.ofNullable(this.action);
    }
    /**
     * @return The Description of this IP Restriction.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return A `headers` block as defined above.
     * 
     */
    public Optional headers() {
        return Optional.ofNullable(this.headers);
    }
    /**
     * @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);
    }
    /**
     * @return The name which should be used for this `ip_restriction`.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return The priority value of this `ip_restriction`. Defaults to `65000`.
     * 
     */
    public Optional priority() {
        return Optional.ofNullable(this.priority);
    }
    /**
     * @return The Service Tag used for this IP Restriction.
     * 
     */
    public Optional serviceTag() {
        return Optional.ofNullable(this.serviceTag);
    }
    /**
     * @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);
    }

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

    public static Builder builder(WindowsWebAppSiteConfigScmIpRestriction defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String action;
        private @Nullable String description;
        private @Nullable WindowsWebAppSiteConfigScmIpRestrictionHeaders headers;
        private @Nullable String ipAddress;
        private @Nullable String name;
        private @Nullable Integer priority;
        private @Nullable String serviceTag;
        private @Nullable String virtualNetworkSubnetId;
        public Builder() {}
        public Builder(WindowsWebAppSiteConfigScmIpRestriction defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.action = defaults.action;
    	      this.description = defaults.description;
    	      this.headers = defaults.headers;
    	      this.ipAddress = defaults.ipAddress;
    	      this.name = defaults.name;
    	      this.priority = defaults.priority;
    	      this.serviceTag = defaults.serviceTag;
    	      this.virtualNetworkSubnetId = defaults.virtualNetworkSubnetId;
        }

        @CustomType.Setter
        public Builder action(@Nullable String action) {

            this.action = action;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder headers(@Nullable WindowsWebAppSiteConfigScmIpRestrictionHeaders headers) {

            this.headers = headers;
            return this;
        }
        @CustomType.Setter
        public Builder ipAddress(@Nullable String ipAddress) {

            this.ipAddress = ipAddress;
            return this;
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder priority(@Nullable Integer priority) {

            this.priority = priority;
            return this;
        }
        @CustomType.Setter
        public Builder serviceTag(@Nullable String serviceTag) {

            this.serviceTag = serviceTag;
            return this;
        }
        @CustomType.Setter
        public Builder virtualNetworkSubnetId(@Nullable String virtualNetworkSubnetId) {

            this.virtualNetworkSubnetId = virtualNetworkSubnetId;
            return this;
        }
        public WindowsWebAppSiteConfigScmIpRestriction build() {
            final var _resultValue = new WindowsWebAppSiteConfigScmIpRestriction();
            _resultValue.action = action;
            _resultValue.description = description;
            _resultValue.headers = headers;
            _resultValue.ipAddress = ipAddress;
            _resultValue.name = name;
            _resultValue.priority = priority;
            _resultValue.serviceTag = serviceTag;
            _resultValue.virtualNetworkSubnetId = virtualNetworkSubnetId;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy