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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;


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

    public static final RegistryNetworkRuleSetVirtualNetworkArgs Empty = new RegistryNetworkRuleSetVirtualNetworkArgs();

    /**
     * The behaviour for requests matching this rule. At this time the only supported value is `Allow`
     * 
     */
    @Import(name="action", required=true)
    private Output<String> action;

    /**
     * @return The behaviour for requests matching this rule. At this time the only supported value is `Allow`
     * 
     */
    public Output<String> action() {
        return this.action;
    }

    /**
     * The subnet id from which requests will match the rule.
     * 
     */
    @Import(name="subnetId", required=true)
    private Output<String> subnetId;

    /**
     * @return The subnet id from which requests will match the rule.
     * 
     */
    public Output<String> subnetId() {
        return this.subnetId;
    }

    private RegistryNetworkRuleSetVirtualNetworkArgs() {}

    private RegistryNetworkRuleSetVirtualNetworkArgs(RegistryNetworkRuleSetVirtualNetworkArgs $) {
        this.action = $.action;
        this.subnetId = $.subnetId;
    }

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

    public static final class Builder {
        private RegistryNetworkRuleSetVirtualNetworkArgs $;

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

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

        /**
         * @param action The behaviour for requests matching this rule. At this time the only supported value is `Allow`
         * 
         * @return builder
         * 
         */
        public Builder action(Output<String> action) {
            $.action = action;
            return this;
        }

        /**
         * @param action The behaviour for requests matching this rule. At this time the only supported value is `Allow`
         * 
         * @return builder
         * 
         */
        public Builder action(String action) {
            return action(Output.of(action));
        }

        /**
         * @param subnetId The subnet id from which requests will match the rule.
         * 
         * @return builder
         * 
         */
        public Builder subnetId(Output<String> subnetId) {
            $.subnetId = subnetId;
            return this;
        }

        /**
         * @param subnetId The subnet id from which requests will match the rule.
         * 
         * @return builder
         * 
         */
        public Builder subnetId(String subnetId) {
            return subnetId(Output.of(subnetId));
        }

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

}
