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

com.pulumi.azurenative.network.outputs.ApplicationRuleResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.network.outputs;

import com.pulumi.azurenative.network.outputs.FirewallPolicyHttpHeaderToInsertResponse;
import com.pulumi.azurenative.network.outputs.FirewallPolicyRuleApplicationProtocolResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ApplicationRuleResponse {
    /**
     * @return Description of the rule.
     * 
     */
    private @Nullable String description;
    /**
     * @return List of destination IP addresses or Service Tags.
     * 
     */
    private @Nullable List destinationAddresses;
    /**
     * @return List of FQDN Tags for this rule.
     * 
     */
    private @Nullable List fqdnTags;
    /**
     * @return List of HTTP/S headers to insert.
     * 
     */
    private @Nullable List httpHeadersToInsert;
    /**
     * @return Name of the rule.
     * 
     */
    private @Nullable String name;
    /**
     * @return Array of Application Protocols.
     * 
     */
    private @Nullable List protocols;
    /**
     * @return Rule Type.
     * Expected value is 'ApplicationRule'.
     * 
     */
    private String ruleType;
    /**
     * @return List of source IP addresses for this rule.
     * 
     */
    private @Nullable List sourceAddresses;
    /**
     * @return List of source IpGroups for this rule.
     * 
     */
    private @Nullable List sourceIpGroups;
    /**
     * @return List of FQDNs for this rule.
     * 
     */
    private @Nullable List targetFqdns;
    /**
     * @return List of Urls for this rule condition.
     * 
     */
    private @Nullable List targetUrls;
    /**
     * @return Terminate TLS connections for this rule.
     * 
     */
    private @Nullable Boolean terminateTLS;
    /**
     * @return List of destination azure web categories.
     * 
     */
    private @Nullable List webCategories;

    private ApplicationRuleResponse() {}
    /**
     * @return Description of the rule.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return List of destination IP addresses or Service Tags.
     * 
     */
    public List destinationAddresses() {
        return this.destinationAddresses == null ? List.of() : this.destinationAddresses;
    }
    /**
     * @return List of FQDN Tags for this rule.
     * 
     */
    public List fqdnTags() {
        return this.fqdnTags == null ? List.of() : this.fqdnTags;
    }
    /**
     * @return List of HTTP/S headers to insert.
     * 
     */
    public List httpHeadersToInsert() {
        return this.httpHeadersToInsert == null ? List.of() : this.httpHeadersToInsert;
    }
    /**
     * @return Name of the rule.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return Array of Application Protocols.
     * 
     */
    public List protocols() {
        return this.protocols == null ? List.of() : this.protocols;
    }
    /**
     * @return Rule Type.
     * Expected value is 'ApplicationRule'.
     * 
     */
    public String ruleType() {
        return this.ruleType;
    }
    /**
     * @return List of source IP addresses for this rule.
     * 
     */
    public List sourceAddresses() {
        return this.sourceAddresses == null ? List.of() : this.sourceAddresses;
    }
    /**
     * @return List of source IpGroups for this rule.
     * 
     */
    public List sourceIpGroups() {
        return this.sourceIpGroups == null ? List.of() : this.sourceIpGroups;
    }
    /**
     * @return List of FQDNs for this rule.
     * 
     */
    public List targetFqdns() {
        return this.targetFqdns == null ? List.of() : this.targetFqdns;
    }
    /**
     * @return List of Urls for this rule condition.
     * 
     */
    public List targetUrls() {
        return this.targetUrls == null ? List.of() : this.targetUrls;
    }
    /**
     * @return Terminate TLS connections for this rule.
     * 
     */
    public Optional terminateTLS() {
        return Optional.ofNullable(this.terminateTLS);
    }
    /**
     * @return List of destination azure web categories.
     * 
     */
    public List webCategories() {
        return this.webCategories == null ? List.of() : this.webCategories;
    }

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

    public static Builder builder(ApplicationRuleResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String description;
        private @Nullable List destinationAddresses;
        private @Nullable List fqdnTags;
        private @Nullable List httpHeadersToInsert;
        private @Nullable String name;
        private @Nullable List protocols;
        private String ruleType;
        private @Nullable List sourceAddresses;
        private @Nullable List sourceIpGroups;
        private @Nullable List targetFqdns;
        private @Nullable List targetUrls;
        private @Nullable Boolean terminateTLS;
        private @Nullable List webCategories;
        public Builder() {}
        public Builder(ApplicationRuleResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.description = defaults.description;
    	      this.destinationAddresses = defaults.destinationAddresses;
    	      this.fqdnTags = defaults.fqdnTags;
    	      this.httpHeadersToInsert = defaults.httpHeadersToInsert;
    	      this.name = defaults.name;
    	      this.protocols = defaults.protocols;
    	      this.ruleType = defaults.ruleType;
    	      this.sourceAddresses = defaults.sourceAddresses;
    	      this.sourceIpGroups = defaults.sourceIpGroups;
    	      this.targetFqdns = defaults.targetFqdns;
    	      this.targetUrls = defaults.targetUrls;
    	      this.terminateTLS = defaults.terminateTLS;
    	      this.webCategories = defaults.webCategories;
        }

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

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

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

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

            this.httpHeadersToInsert = httpHeadersToInsert;
            return this;
        }
        public Builder httpHeadersToInsert(FirewallPolicyHttpHeaderToInsertResponse... httpHeadersToInsert) {
            return httpHeadersToInsert(List.of(httpHeadersToInsert));
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {

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

            this.protocols = protocols;
            return this;
        }
        public Builder protocols(FirewallPolicyRuleApplicationProtocolResponse... protocols) {
            return protocols(List.of(protocols));
        }
        @CustomType.Setter
        public Builder ruleType(String ruleType) {
            if (ruleType == null) {
              throw new MissingRequiredPropertyException("ApplicationRuleResponse", "ruleType");
            }
            this.ruleType = ruleType;
            return this;
        }
        @CustomType.Setter
        public Builder sourceAddresses(@Nullable List sourceAddresses) {

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

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

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

            this.targetUrls = targetUrls;
            return this;
        }
        public Builder targetUrls(String... targetUrls) {
            return targetUrls(List.of(targetUrls));
        }
        @CustomType.Setter
        public Builder terminateTLS(@Nullable Boolean terminateTLS) {

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

            this.webCategories = webCategories;
            return this;
        }
        public Builder webCategories(String... webCategories) {
            return webCategories(List.of(webCategories));
        }
        public ApplicationRuleResponse build() {
            final var _resultValue = new ApplicationRuleResponse();
            _resultValue.description = description;
            _resultValue.destinationAddresses = destinationAddresses;
            _resultValue.fqdnTags = fqdnTags;
            _resultValue.httpHeadersToInsert = httpHeadersToInsert;
            _resultValue.name = name;
            _resultValue.protocols = protocols;
            _resultValue.ruleType = ruleType;
            _resultValue.sourceAddresses = sourceAddresses;
            _resultValue.sourceIpGroups = sourceIpGroups;
            _resultValue.targetFqdns = targetFqdns;
            _resultValue.targetUrls = targetUrls;
            _resultValue.terminateTLS = terminateTLS;
            _resultValue.webCategories = webCategories;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy