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

com.pulumi.azurenative.eventhub.outputs.GetNamespaceNetworkRuleSetResult 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.azurenative.eventhub.outputs;

import com.pulumi.azurenative.eventhub.outputs.NWRuleSetIpRulesResponse;
import com.pulumi.azurenative.eventhub.outputs.NWRuleSetVirtualNetworkRulesResponse;
import com.pulumi.azurenative.eventhub.outputs.SystemDataResponse;
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 GetNamespaceNetworkRuleSetResult {
    /**
     * @return Default Action for Network Rule Set
     * 
     */
    private @Nullable String defaultAction;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return List of IpRules
     * 
     */
    private @Nullable List ipRules;
    /**
     * @return The geo-location where the resource lives
     * 
     */
    private String location;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return This determines if traffic is allowed over public network. By default it is enabled. If value is SecuredByPerimeter then Inbound and Outbound communication is controlled by the network security perimeter and profile's access rules.
     * 
     */
    private @Nullable String publicNetworkAccess;
    /**
     * @return The system meta data relating to this resource.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Value that indicates whether Trusted Service Access is Enabled or not.
     * 
     */
    private @Nullable Boolean trustedServiceAccessEnabled;
    /**
     * @return The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
     * 
     */
    private String type;
    /**
     * @return List VirtualNetwork Rules
     * 
     */
    private @Nullable List virtualNetworkRules;

    private GetNamespaceNetworkRuleSetResult() {}
    /**
     * @return Default Action for Network Rule Set
     * 
     */
    public Optional defaultAction() {
        return Optional.ofNullable(this.defaultAction);
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return List of IpRules
     * 
     */
    public List ipRules() {
        return this.ipRules == null ? List.of() : this.ipRules;
    }
    /**
     * @return The geo-location where the resource lives
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return This determines if traffic is allowed over public network. By default it is enabled. If value is SecuredByPerimeter then Inbound and Outbound communication is controlled by the network security perimeter and profile's access rules.
     * 
     */
    public Optional publicNetworkAccess() {
        return Optional.ofNullable(this.publicNetworkAccess);
    }
    /**
     * @return The system meta data relating to this resource.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Value that indicates whether Trusted Service Access is Enabled or not.
     * 
     */
    public Optional trustedServiceAccessEnabled() {
        return Optional.ofNullable(this.trustedServiceAccessEnabled);
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return List VirtualNetwork Rules
     * 
     */
    public List virtualNetworkRules() {
        return this.virtualNetworkRules == null ? List.of() : this.virtualNetworkRules;
    }

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

    public static Builder builder(GetNamespaceNetworkRuleSetResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String defaultAction;
        private String id;
        private @Nullable List ipRules;
        private String location;
        private String name;
        private @Nullable String publicNetworkAccess;
        private SystemDataResponse systemData;
        private @Nullable Boolean trustedServiceAccessEnabled;
        private String type;
        private @Nullable List virtualNetworkRules;
        public Builder() {}
        public Builder(GetNamespaceNetworkRuleSetResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.defaultAction = defaults.defaultAction;
    	      this.id = defaults.id;
    	      this.ipRules = defaults.ipRules;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.publicNetworkAccess = defaults.publicNetworkAccess;
    	      this.systemData = defaults.systemData;
    	      this.trustedServiceAccessEnabled = defaults.trustedServiceAccessEnabled;
    	      this.type = defaults.type;
    	      this.virtualNetworkRules = defaults.virtualNetworkRules;
        }

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

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

            this.ipRules = ipRules;
            return this;
        }
        public Builder ipRules(NWRuleSetIpRulesResponse... ipRules) {
            return ipRules(List.of(ipRules));
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetNamespaceNetworkRuleSetResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetNamespaceNetworkRuleSetResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder publicNetworkAccess(@Nullable String publicNetworkAccess) {

            this.publicNetworkAccess = publicNetworkAccess;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetNamespaceNetworkRuleSetResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder trustedServiceAccessEnabled(@Nullable Boolean trustedServiceAccessEnabled) {

            this.trustedServiceAccessEnabled = trustedServiceAccessEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetNamespaceNetworkRuleSetResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder virtualNetworkRules(@Nullable List virtualNetworkRules) {

            this.virtualNetworkRules = virtualNetworkRules;
            return this;
        }
        public Builder virtualNetworkRules(NWRuleSetVirtualNetworkRulesResponse... virtualNetworkRules) {
            return virtualNetworkRules(List.of(virtualNetworkRules));
        }
        public GetNamespaceNetworkRuleSetResult build() {
            final var _resultValue = new GetNamespaceNetworkRuleSetResult();
            _resultValue.defaultAction = defaultAction;
            _resultValue.id = id;
            _resultValue.ipRules = ipRules;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.publicNetworkAccess = publicNetworkAccess;
            _resultValue.systemData = systemData;
            _resultValue.trustedServiceAccessEnabled = trustedServiceAccessEnabled;
            _resultValue.type = type;
            _resultValue.virtualNetworkRules = virtualNetworkRules;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy