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

com.pulumi.azure.eventhub.outputs.EventHubNamespaceNetworkRulesets 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.eventhub.outputs;

import com.pulumi.azure.eventhub.outputs.EventHubNamespaceNetworkRulesetsIpRule;
import com.pulumi.azure.eventhub.outputs.EventHubNamespaceNetworkRulesetsVirtualNetworkRule;
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 EventHubNamespaceNetworkRulesets {
    /**
     * @return The default action to take when a rule is not matched. Possible values are `Allow` and `Deny`.
     * 
     */
    private String defaultAction;
    /**
     * @return One or more `ip_rule` blocks as defined below.
     * 
     */
    private @Nullable List ipRules;
    /**
     * @return Is public network access enabled for the EventHub Namespace? Defaults to `true`.
     * 
     * > **Note:** The public network access setting at the network rule sets level should be the same as it's at the namespace level.
     * 
     */
    private @Nullable Boolean publicNetworkAccessEnabled;
    /**
     * @return Whether Trusted Microsoft Services are allowed to bypass firewall.
     * 
     */
    private @Nullable Boolean trustedServiceAccessEnabled;
    /**
     * @return One or more `virtual_network_rule` blocks as defined below.
     * 
     */
    private @Nullable List virtualNetworkRules;

    private EventHubNamespaceNetworkRulesets() {}
    /**
     * @return The default action to take when a rule is not matched. Possible values are `Allow` and `Deny`.
     * 
     */
    public String defaultAction() {
        return this.defaultAction;
    }
    /**
     * @return One or more `ip_rule` blocks as defined below.
     * 
     */
    public List ipRules() {
        return this.ipRules == null ? List.of() : this.ipRules;
    }
    /**
     * @return Is public network access enabled for the EventHub Namespace? Defaults to `true`.
     * 
     * > **Note:** The public network access setting at the network rule sets level should be the same as it's at the namespace level.
     * 
     */
    public Optional publicNetworkAccessEnabled() {
        return Optional.ofNullable(this.publicNetworkAccessEnabled);
    }
    /**
     * @return Whether Trusted Microsoft Services are allowed to bypass firewall.
     * 
     */
    public Optional trustedServiceAccessEnabled() {
        return Optional.ofNullable(this.trustedServiceAccessEnabled);
    }
    /**
     * @return One or more `virtual_network_rule` blocks as defined below.
     * 
     */
    public List virtualNetworkRules() {
        return this.virtualNetworkRules == null ? List.of() : this.virtualNetworkRules;
    }

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

    public static Builder builder(EventHubNamespaceNetworkRulesets defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String defaultAction;
        private @Nullable List ipRules;
        private @Nullable Boolean publicNetworkAccessEnabled;
        private @Nullable Boolean trustedServiceAccessEnabled;
        private @Nullable List virtualNetworkRules;
        public Builder() {}
        public Builder(EventHubNamespaceNetworkRulesets defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.defaultAction = defaults.defaultAction;
    	      this.ipRules = defaults.ipRules;
    	      this.publicNetworkAccessEnabled = defaults.publicNetworkAccessEnabled;
    	      this.trustedServiceAccessEnabled = defaults.trustedServiceAccessEnabled;
    	      this.virtualNetworkRules = defaults.virtualNetworkRules;
        }

        @CustomType.Setter
        public Builder defaultAction(String defaultAction) {
            if (defaultAction == null) {
              throw new MissingRequiredPropertyException("EventHubNamespaceNetworkRulesets", "defaultAction");
            }
            this.defaultAction = defaultAction;
            return this;
        }
        @CustomType.Setter
        public Builder ipRules(@Nullable List ipRules) {

            this.ipRules = ipRules;
            return this;
        }
        public Builder ipRules(EventHubNamespaceNetworkRulesetsIpRule... ipRules) {
            return ipRules(List.of(ipRules));
        }
        @CustomType.Setter
        public Builder publicNetworkAccessEnabled(@Nullable Boolean publicNetworkAccessEnabled) {

            this.publicNetworkAccessEnabled = publicNetworkAccessEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder trustedServiceAccessEnabled(@Nullable Boolean trustedServiceAccessEnabled) {

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

            this.virtualNetworkRules = virtualNetworkRules;
            return this;
        }
        public Builder virtualNetworkRules(EventHubNamespaceNetworkRulesetsVirtualNetworkRule... virtualNetworkRules) {
            return virtualNetworkRules(List.of(virtualNetworkRules));
        }
        public EventHubNamespaceNetworkRulesets build() {
            final var _resultValue = new EventHubNamespaceNetworkRulesets();
            _resultValue.defaultAction = defaultAction;
            _resultValue.ipRules = ipRules;
            _resultValue.publicNetworkAccessEnabled = publicNetworkAccessEnabled;
            _resultValue.trustedServiceAccessEnabled = trustedServiceAccessEnabled;
            _resultValue.virtualNetworkRules = virtualNetworkRules;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy