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

com.pulumi.azure.appservice.outputs.GetLinuxWebAppSiteConfigIpRestriction Maven / Gradle / Ivy

// *** 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.GetLinuxWebAppSiteConfigIpRestrictionHeader;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetLinuxWebAppSiteConfigIpRestriction {
    /**
     * @return A `action` block as defined above.
     * 
     */
    private String action;
    /**
     * @return The description of the ip restriction rule.
     * 
     */
    private String description;
    private List headers;
    /**
     * @return The CIDR notation of the IP or IP Range to match.
     * 
     */
    private String ipAddress;
    /**
     * @return The name of this Linux Web App.
     * 
     */
    private String name;
    /**
     * @return The priority value of this `ip_restriction`.
     * 
     */
    private Integer priority;
    /**
     * @return The Service Tag used for this IP Restriction.
     * 
     */
    private String serviceTag;
    /**
     * @return The subnet id which the Linux Web App is vNet Integrated with.
     * 
     */
    private String virtualNetworkSubnetId;

    private GetLinuxWebAppSiteConfigIpRestriction() {}
    /**
     * @return A `action` block as defined above.
     * 
     */
    public String action() {
        return this.action;
    }
    /**
     * @return The description of the ip restriction rule.
     * 
     */
    public String description() {
        return this.description;
    }
    public List headers() {
        return this.headers;
    }
    /**
     * @return The CIDR notation of the IP or IP Range to match.
     * 
     */
    public String ipAddress() {
        return this.ipAddress;
    }
    /**
     * @return The name of this Linux Web App.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The priority value of this `ip_restriction`.
     * 
     */
    public Integer priority() {
        return this.priority;
    }
    /**
     * @return The Service Tag used for this IP Restriction.
     * 
     */
    public String serviceTag() {
        return this.serviceTag;
    }
    /**
     * @return The subnet id which the Linux Web App is vNet Integrated with.
     * 
     */
    public String virtualNetworkSubnetId() {
        return this.virtualNetworkSubnetId;
    }

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

    public static Builder builder(GetLinuxWebAppSiteConfigIpRestriction defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String action;
        private String description;
        private List headers;
        private String ipAddress;
        private String name;
        private Integer priority;
        private String serviceTag;
        private String virtualNetworkSubnetId;
        public Builder() {}
        public Builder(GetLinuxWebAppSiteConfigIpRestriction 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(String action) {
            if (action == null) {
              throw new MissingRequiredPropertyException("GetLinuxWebAppSiteConfigIpRestriction", "action");
            }
            this.action = action;
            return this;
        }
        @CustomType.Setter
        public Builder description(String description) {
            if (description == null) {
              throw new MissingRequiredPropertyException("GetLinuxWebAppSiteConfigIpRestriction", "description");
            }
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder headers(List headers) {
            if (headers == null) {
              throw new MissingRequiredPropertyException("GetLinuxWebAppSiteConfigIpRestriction", "headers");
            }
            this.headers = headers;
            return this;
        }
        public Builder headers(GetLinuxWebAppSiteConfigIpRestrictionHeader... headers) {
            return headers(List.of(headers));
        }
        @CustomType.Setter
        public Builder ipAddress(String ipAddress) {
            if (ipAddress == null) {
              throw new MissingRequiredPropertyException("GetLinuxWebAppSiteConfigIpRestriction", "ipAddress");
            }
            this.ipAddress = ipAddress;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetLinuxWebAppSiteConfigIpRestriction", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder priority(Integer priority) {
            if (priority == null) {
              throw new MissingRequiredPropertyException("GetLinuxWebAppSiteConfigIpRestriction", "priority");
            }
            this.priority = priority;
            return this;
        }
        @CustomType.Setter
        public Builder serviceTag(String serviceTag) {
            if (serviceTag == null) {
              throw new MissingRequiredPropertyException("GetLinuxWebAppSiteConfigIpRestriction", "serviceTag");
            }
            this.serviceTag = serviceTag;
            return this;
        }
        @CustomType.Setter
        public Builder virtualNetworkSubnetId(String virtualNetworkSubnetId) {
            if (virtualNetworkSubnetId == null) {
              throw new MissingRequiredPropertyException("GetLinuxWebAppSiteConfigIpRestriction", "virtualNetworkSubnetId");
            }
            this.virtualNetworkSubnetId = virtualNetworkSubnetId;
            return this;
        }
        public GetLinuxWebAppSiteConfigIpRestriction build() {
            final var _resultValue = new GetLinuxWebAppSiteConfigIpRestriction();
            _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