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

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

There is a newer version: 2.78.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.DnsSettingsResponse;
import com.pulumi.azurenative.network.outputs.ExplicitProxyResponse;
import com.pulumi.azurenative.network.outputs.FirewallPolicyInsightsResponse;
import com.pulumi.azurenative.network.outputs.FirewallPolicyIntrusionDetectionResponse;
import com.pulumi.azurenative.network.outputs.FirewallPolicySNATResponse;
import com.pulumi.azurenative.network.outputs.FirewallPolicySQLResponse;
import com.pulumi.azurenative.network.outputs.FirewallPolicySkuResponse;
import com.pulumi.azurenative.network.outputs.FirewallPolicyThreatIntelWhitelistResponse;
import com.pulumi.azurenative.network.outputs.FirewallPolicyTransportSecurityResponse;
import com.pulumi.azurenative.network.outputs.ManagedServiceIdentityResponse;
import com.pulumi.azurenative.network.outputs.SubResourceResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetFirewallPolicyResult {
    /**
     * @return The parent firewall policy from which rules are inherited.
     * 
     */
    private @Nullable SubResourceResponse basePolicy;
    /**
     * @return List of references to Child Firewall Policies.
     * 
     */
    private List childPolicies;
    /**
     * @return DNS Proxy Settings definition.
     * 
     */
    private @Nullable DnsSettingsResponse dnsSettings;
    /**
     * @return A unique read-only string that changes whenever the resource is updated.
     * 
     */
    private String etag;
    /**
     * @return Explicit Proxy Settings definition.
     * 
     */
    private @Nullable ExplicitProxyResponse explicitProxy;
    /**
     * @return List of references to Azure Firewalls that this Firewall Policy is associated with.
     * 
     */
    private List firewalls;
    /**
     * @return Resource ID.
     * 
     */
    private @Nullable String id;
    /**
     * @return The identity of the firewall policy.
     * 
     */
    private @Nullable ManagedServiceIdentityResponse identity;
    /**
     * @return Insights on Firewall Policy.
     * 
     */
    private @Nullable FirewallPolicyInsightsResponse insights;
    /**
     * @return The configuration for Intrusion detection.
     * 
     */
    private @Nullable FirewallPolicyIntrusionDetectionResponse intrusionDetection;
    /**
     * @return Resource location.
     * 
     */
    private @Nullable String location;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return The provisioning state of the firewall policy resource.
     * 
     */
    private String provisioningState;
    /**
     * @return List of references to FirewallPolicyRuleCollectionGroups.
     * 
     */
    private List ruleCollectionGroups;
    /**
     * @return The Firewall Policy SKU.
     * 
     */
    private @Nullable FirewallPolicySkuResponse sku;
    /**
     * @return The private IP addresses/IP ranges to which traffic will not be SNAT.
     * 
     */
    private @Nullable FirewallPolicySNATResponse snat;
    /**
     * @return SQL Settings definition.
     * 
     */
    private @Nullable FirewallPolicySQLResponse sql;
    /**
     * @return Resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return The operation mode for Threat Intelligence.
     * 
     */
    private @Nullable String threatIntelMode;
    /**
     * @return ThreatIntel Whitelist for Firewall Policy.
     * 
     */
    private @Nullable FirewallPolicyThreatIntelWhitelistResponse threatIntelWhitelist;
    /**
     * @return TLS Configuration definition.
     * 
     */
    private @Nullable FirewallPolicyTransportSecurityResponse transportSecurity;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private GetFirewallPolicyResult() {}
    /**
     * @return The parent firewall policy from which rules are inherited.
     * 
     */
    public Optional basePolicy() {
        return Optional.ofNullable(this.basePolicy);
    }
    /**
     * @return List of references to Child Firewall Policies.
     * 
     */
    public List childPolicies() {
        return this.childPolicies;
    }
    /**
     * @return DNS Proxy Settings definition.
     * 
     */
    public Optional dnsSettings() {
        return Optional.ofNullable(this.dnsSettings);
    }
    /**
     * @return A unique read-only string that changes whenever the resource is updated.
     * 
     */
    public String etag() {
        return this.etag;
    }
    /**
     * @return Explicit Proxy Settings definition.
     * 
     */
    public Optional explicitProxy() {
        return Optional.ofNullable(this.explicitProxy);
    }
    /**
     * @return List of references to Azure Firewalls that this Firewall Policy is associated with.
     * 
     */
    public List firewalls() {
        return this.firewalls;
    }
    /**
     * @return Resource ID.
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return The identity of the firewall policy.
     * 
     */
    public Optional identity() {
        return Optional.ofNullable(this.identity);
    }
    /**
     * @return Insights on Firewall Policy.
     * 
     */
    public Optional insights() {
        return Optional.ofNullable(this.insights);
    }
    /**
     * @return The configuration for Intrusion detection.
     * 
     */
    public Optional intrusionDetection() {
        return Optional.ofNullable(this.intrusionDetection);
    }
    /**
     * @return Resource location.
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The provisioning state of the firewall policy resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return List of references to FirewallPolicyRuleCollectionGroups.
     * 
     */
    public List ruleCollectionGroups() {
        return this.ruleCollectionGroups;
    }
    /**
     * @return The Firewall Policy SKU.
     * 
     */
    public Optional sku() {
        return Optional.ofNullable(this.sku);
    }
    /**
     * @return The private IP addresses/IP ranges to which traffic will not be SNAT.
     * 
     */
    public Optional snat() {
        return Optional.ofNullable(this.snat);
    }
    /**
     * @return SQL Settings definition.
     * 
     */
    public Optional sql() {
        return Optional.ofNullable(this.sql);
    }
    /**
     * @return Resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return The operation mode for Threat Intelligence.
     * 
     */
    public Optional threatIntelMode() {
        return Optional.ofNullable(this.threatIntelMode);
    }
    /**
     * @return ThreatIntel Whitelist for Firewall Policy.
     * 
     */
    public Optional threatIntelWhitelist() {
        return Optional.ofNullable(this.threatIntelWhitelist);
    }
    /**
     * @return TLS Configuration definition.
     * 
     */
    public Optional transportSecurity() {
        return Optional.ofNullable(this.transportSecurity);
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetFirewallPolicyResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable SubResourceResponse basePolicy;
        private List childPolicies;
        private @Nullable DnsSettingsResponse dnsSettings;
        private String etag;
        private @Nullable ExplicitProxyResponse explicitProxy;
        private List firewalls;
        private @Nullable String id;
        private @Nullable ManagedServiceIdentityResponse identity;
        private @Nullable FirewallPolicyInsightsResponse insights;
        private @Nullable FirewallPolicyIntrusionDetectionResponse intrusionDetection;
        private @Nullable String location;
        private String name;
        private String provisioningState;
        private List ruleCollectionGroups;
        private @Nullable FirewallPolicySkuResponse sku;
        private @Nullable FirewallPolicySNATResponse snat;
        private @Nullable FirewallPolicySQLResponse sql;
        private @Nullable Map tags;
        private @Nullable String threatIntelMode;
        private @Nullable FirewallPolicyThreatIntelWhitelistResponse threatIntelWhitelist;
        private @Nullable FirewallPolicyTransportSecurityResponse transportSecurity;
        private String type;
        public Builder() {}
        public Builder(GetFirewallPolicyResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.basePolicy = defaults.basePolicy;
    	      this.childPolicies = defaults.childPolicies;
    	      this.dnsSettings = defaults.dnsSettings;
    	      this.etag = defaults.etag;
    	      this.explicitProxy = defaults.explicitProxy;
    	      this.firewalls = defaults.firewalls;
    	      this.id = defaults.id;
    	      this.identity = defaults.identity;
    	      this.insights = defaults.insights;
    	      this.intrusionDetection = defaults.intrusionDetection;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.ruleCollectionGroups = defaults.ruleCollectionGroups;
    	      this.sku = defaults.sku;
    	      this.snat = defaults.snat;
    	      this.sql = defaults.sql;
    	      this.tags = defaults.tags;
    	      this.threatIntelMode = defaults.threatIntelMode;
    	      this.threatIntelWhitelist = defaults.threatIntelWhitelist;
    	      this.transportSecurity = defaults.transportSecurity;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder basePolicy(@Nullable SubResourceResponse basePolicy) {

            this.basePolicy = basePolicy;
            return this;
        }
        @CustomType.Setter
        public Builder childPolicies(List childPolicies) {
            if (childPolicies == null) {
              throw new MissingRequiredPropertyException("GetFirewallPolicyResult", "childPolicies");
            }
            this.childPolicies = childPolicies;
            return this;
        }
        public Builder childPolicies(SubResourceResponse... childPolicies) {
            return childPolicies(List.of(childPolicies));
        }
        @CustomType.Setter
        public Builder dnsSettings(@Nullable DnsSettingsResponse dnsSettings) {

            this.dnsSettings = dnsSettings;
            return this;
        }
        @CustomType.Setter
        public Builder etag(String etag) {
            if (etag == null) {
              throw new MissingRequiredPropertyException("GetFirewallPolicyResult", "etag");
            }
            this.etag = etag;
            return this;
        }
        @CustomType.Setter
        public Builder explicitProxy(@Nullable ExplicitProxyResponse explicitProxy) {

            this.explicitProxy = explicitProxy;
            return this;
        }
        @CustomType.Setter
        public Builder firewalls(List firewalls) {
            if (firewalls == null) {
              throw new MissingRequiredPropertyException("GetFirewallPolicyResult", "firewalls");
            }
            this.firewalls = firewalls;
            return this;
        }
        public Builder firewalls(SubResourceResponse... firewalls) {
            return firewalls(List.of(firewalls));
        }
        @CustomType.Setter
        public Builder id(@Nullable String id) {

            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder identity(@Nullable ManagedServiceIdentityResponse identity) {

            this.identity = identity;
            return this;
        }
        @CustomType.Setter
        public Builder insights(@Nullable FirewallPolicyInsightsResponse insights) {

            this.insights = insights;
            return this;
        }
        @CustomType.Setter
        public Builder intrusionDetection(@Nullable FirewallPolicyIntrusionDetectionResponse intrusionDetection) {

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

            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetFirewallPolicyResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetFirewallPolicyResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder ruleCollectionGroups(List ruleCollectionGroups) {
            if (ruleCollectionGroups == null) {
              throw new MissingRequiredPropertyException("GetFirewallPolicyResult", "ruleCollectionGroups");
            }
            this.ruleCollectionGroups = ruleCollectionGroups;
            return this;
        }
        public Builder ruleCollectionGroups(SubResourceResponse... ruleCollectionGroups) {
            return ruleCollectionGroups(List.of(ruleCollectionGroups));
        }
        @CustomType.Setter
        public Builder sku(@Nullable FirewallPolicySkuResponse sku) {

            this.sku = sku;
            return this;
        }
        @CustomType.Setter
        public Builder snat(@Nullable FirewallPolicySNATResponse snat) {

            this.snat = snat;
            return this;
        }
        @CustomType.Setter
        public Builder sql(@Nullable FirewallPolicySQLResponse sql) {

            this.sql = sql;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

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

            this.threatIntelMode = threatIntelMode;
            return this;
        }
        @CustomType.Setter
        public Builder threatIntelWhitelist(@Nullable FirewallPolicyThreatIntelWhitelistResponse threatIntelWhitelist) {

            this.threatIntelWhitelist = threatIntelWhitelist;
            return this;
        }
        @CustomType.Setter
        public Builder transportSecurity(@Nullable FirewallPolicyTransportSecurityResponse transportSecurity) {

            this.transportSecurity = transportSecurity;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetFirewallPolicyResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetFirewallPolicyResult build() {
            final var _resultValue = new GetFirewallPolicyResult();
            _resultValue.basePolicy = basePolicy;
            _resultValue.childPolicies = childPolicies;
            _resultValue.dnsSettings = dnsSettings;
            _resultValue.etag = etag;
            _resultValue.explicitProxy = explicitProxy;
            _resultValue.firewalls = firewalls;
            _resultValue.id = id;
            _resultValue.identity = identity;
            _resultValue.insights = insights;
            _resultValue.intrusionDetection = intrusionDetection;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.ruleCollectionGroups = ruleCollectionGroups;
            _resultValue.sku = sku;
            _resultValue.snat = snat;
            _resultValue.sql = sql;
            _resultValue.tags = tags;
            _resultValue.threatIntelMode = threatIntelMode;
            _resultValue.threatIntelWhitelist = threatIntelWhitelist;
            _resultValue.transportSecurity = transportSecurity;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy