// *** 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class EventHubNamespaceNetworkRulesetsVirtualNetworkRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final EventHubNamespaceNetworkRulesetsVirtualNetworkRuleArgs Empty = new EventHubNamespaceNetworkRulesetsVirtualNetworkRuleArgs();

    /**
     * Are missing virtual network service endpoints ignored?
     * 
     */
    @Import(name="ignoreMissingVirtualNetworkServiceEndpoint")
    private @Nullable Output<Boolean> ignoreMissingVirtualNetworkServiceEndpoint;

    /**
     * @return Are missing virtual network service endpoints ignored?
     * 
     */
    public Optional<Output<Boolean>> ignoreMissingVirtualNetworkServiceEndpoint() {
        return Optional.ofNullable(this.ignoreMissingVirtualNetworkServiceEndpoint);
    }

    /**
     * The id of the subnet to match on.
     * 
     */
    @Import(name="subnetId", required=true)
    private Output<String> subnetId;

    /**
     * @return The id of the subnet to match on.
     * 
     */
    public Output<String> subnetId() {
        return this.subnetId;
    }

    private EventHubNamespaceNetworkRulesetsVirtualNetworkRuleArgs() {}

    private EventHubNamespaceNetworkRulesetsVirtualNetworkRuleArgs(EventHubNamespaceNetworkRulesetsVirtualNetworkRuleArgs $) {
        this.ignoreMissingVirtualNetworkServiceEndpoint = $.ignoreMissingVirtualNetworkServiceEndpoint;
        this.subnetId = $.subnetId;
    }

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

    public static final class Builder {
        private EventHubNamespaceNetworkRulesetsVirtualNetworkRuleArgs $;

        public Builder() {
            $ = new EventHubNamespaceNetworkRulesetsVirtualNetworkRuleArgs();
        }

        public Builder(EventHubNamespaceNetworkRulesetsVirtualNetworkRuleArgs defaults) {
            $ = new EventHubNamespaceNetworkRulesetsVirtualNetworkRuleArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param ignoreMissingVirtualNetworkServiceEndpoint Are missing virtual network service endpoints ignored?
         * 
         * @return builder
         * 
         */
        public Builder ignoreMissingVirtualNetworkServiceEndpoint(@Nullable Output<Boolean> ignoreMissingVirtualNetworkServiceEndpoint) {
            $.ignoreMissingVirtualNetworkServiceEndpoint = ignoreMissingVirtualNetworkServiceEndpoint;
            return this;
        }

        /**
         * @param ignoreMissingVirtualNetworkServiceEndpoint Are missing virtual network service endpoints ignored?
         * 
         * @return builder
         * 
         */
        public Builder ignoreMissingVirtualNetworkServiceEndpoint(Boolean ignoreMissingVirtualNetworkServiceEndpoint) {
            return ignoreMissingVirtualNetworkServiceEndpoint(Output.of(ignoreMissingVirtualNetworkServiceEndpoint));
        }

        /**
         * @param subnetId The id of the subnet to match on.
         * 
         * @return builder
         * 
         */
        public Builder subnetId(Output<String> subnetId) {
            $.subnetId = subnetId;
            return this;
        }

        /**
         * @param subnetId The id of the subnet to match on.
         * 
         * @return builder
         * 
         */
        public Builder subnetId(String subnetId) {
            return subnetId(Output.of(subnetId));
        }

        public EventHubNamespaceNetworkRulesetsVirtualNetworkRuleArgs build() {
            $.subnetId = Objects.requireNonNull($.subnetId, "expected parameter 'subnetId' to be non-null");
            return $;
        }
    }

}
